Problem description
As a developer in the beginning stage of building a prototype, I wish to utilize Server Authority (SA) as I’ve deemed it vital in ensuring a smooth gameplay experience, and matches exactly with how I envisioned the networking to function prior to discovering its existence.
SA depends on Streaming Enabled (SE) and will not function without it, which isn’t a problem on its own, until I held the integration of SE against the concept of how I intend to structure my “world environment”. My ambitions using SA quickly fell apart.
Many Roblox games, including mine-to-be, selectively load maps on request.
The core idea is that the area in which a number of players can interact in is restricted and manually swapped out in the same location as the previous area on demand.
Comparable examples with this type of behavior include:
Natural Disaster Survival, Survive the Disasters 2, Black Magic, Roblox Karts, The Stalker: Reborn, Murder Mystery 2, You VS Homer, and BloxStrike among many other games.
The key takeaway from this type of behavior is that areas are too small to warrant or benefit from proximity-based streaming.
Additionally, SE requires the streamable instances to be parented to workspace.
As my game grows in content (e.g. to the point where I have 20+ maps), the development experience would worsen dramatically due to the in-studio rendered maps’ effect on performance and start-up times.
Having worked on a game that heavily suffers from this issue to the point of start-up times taking over a minute, I would like to avoid ending up in this situation again at all costs while still being able to profit from the benefits of SE.
Otherwise, I would have to position all of my maps away from one another in workspace if I wanted non-relevant maps to be streamed out, which feels like I’m fighting against the system, or fall back to having everything parented to ReplicatedStorage from the beginning, which renders SE completely unutilized (I also can’t guess what kind of side effects the latter would have in the context of SA).
TL;DR: I can’t utilize Server Authority, because it relies on Streaming Enabled, which conflicts with the structure of my world, while the benefits of Server Authority are an absolute necessity for the style of gameplay I aim to create due to how it handles physical interactions between players.
I could work around this issue using ReplicatedStorage, but this may be paired with side effects in terms of server performance and gameplay behavior, while rendering the benefits of SE unutilized.
The request
The aforementioned problems could be resolved should there be a way for developers to manually request a transfer/download of an asset or model from server to (a specific) client.
To get a better idea of what I’m asking for, you can compare it to I/O behavior (reading from disk), except instead of reading from disk, you’re requesting the asset that’s stored on the server (e.g. ServerStorage) to be streamed to the player in question.
The server would keep track of the asset’s state (e.g. position and who it’s streamed to). It would be nice if it could be specifically chosen which players something is streamed to, which allows for more complex game scenarios like players experiencing different visuals and behaviors while in the same location as someone else.
Should it be streamed out, it is gone from memory and would need to be re-downloaded for future use, compared to simply parenting to ReplicatedStorage which keeps it in memory instead.
This gives developers the following benefits:
- Developers have precise control over which assets are streamed in/out at any time.
- (+) Streamed assets vary per player despite possibly overlapping in position/bounds, allowing one set of players to be playing on map X while another set plays on map Y, all in the same location. The same concept would apply to player-to-player visibility depending on who you’re playing with on a map.
- Streamable instances are not required to be parented under workspace, eliminating the threat of developer experiences worsening as their maps grow in quantity and quality.
- The concept is easy to grasp and integrate with, since it’s very similar if not identical to the current standard that involved parenting between ReplicatedStorage<- ->Workspace, with only the upsides.
TL;DR: I am requesting for additions to the APIs that gives developers the ability to manually stream assets in/out to/from specific clients, regardless of locations and proximity.
This is a contrast to the current SE implementation, which is purely proximity-based.
Temporary workaround
For now, I can proceed with a ReplicatedStorage<- ->Workspace loading/unloading approach, while adhering to the design guidelines of Server Authority in hopes of future APIs becoming available that would allow me to smoothly transition my systems to it.
This comes with the downside of not being able to build my game with and learn a specific foundational API in the process, potentially complicating future integration.
-
Thank you for taking the time to read through my request.