I’m working on a train simulator here, the only place I’ve seen this happen because I haven’t checked other games: Newport Av Lines Development - Roblox
Whenever I drive across the map, after what seems to be an arbitrary amount of time, parts that I have passed by long ago refuse to stream out.
Eventually, this adds up and causes performance – in particular, frame rate – to suffer because half of the map will be loaded instead of just what is needed.
I first noticed this issue last night. I’m unsure when it began but streaming functioned normally on the 15th, which was 2 days prior.
I’ve also noticed that initially streaming in parts takes slightly but noticeably longer than usual.
^ Far-off parts of the map (seen as lights), still loaded in after teleporting across it. It took several minutes for these to stream out, as I noticed while typing a message on Discord with the Roblox client open.
My system information:
Intel Xeon CPU E3-1241 v3 @ 3.50 GHz
16 GB RAM
NVIDIA GeForce GTX 1650 Super GPU
I’ve been able to replicate this on my PC by simply spawning a train (at one of the spawn pads in the map) and driving across the map for about 10 minutes or so.
Eventually lag just gets worse and worse, and using freecam to look behind you will show you parts that should have streamed out still being there, which explains the lag.
Teleporting around the map (via the menu) does not cause parts to stream out.
I notice that the behavior I am seeing now is similar to when StreamingEnabled was first introduced and there was not yet an option to stream parts out at all.
A friend of mine attempted to reproduce this and was unable to.
Here are the affected game’s Workspace properties for Streaming:
Expected behavior
I expect parts to stream out in a timely fashion when I get far away from them.
Images I’ve taken ingame just now to better illustrate what’s going on.
I have also noticed that parts which would have streamed in before must now be approached from closer. I did adjust the StreamingTargetRadius, but by only one stud (to 2047).
I have better luck looking behind me and finding where I teleported from minutes ago rather than the building that is much closer and just ahead of me:
The only reason I ask, I’ve seen similar behavior on mobile devices where the device cache had to be cleared for newer objects to show up properly in the game after a new release was published for the game, etc.
I’m not sure how to clear the cache in PC other than removing the game and installing it again, which might produce a similar effect. I am surprised that Roblox has no easy “clear cache” button for the PC version in settings somewhere.
It does make sense what you say. The only way to describe the behavior I’ve seen that sounds similar to what you experienced is that Roblox loads the “old” objects from cache and when it comes time to “remove” those objects later from memory, maybe it is only looking for the “new” version of those objects to remove due to a type of cache mis-match. Just a theory though, it could be a deeper underlining issue.