Lag in Studio Doesn't Make Sense

Hey there!

My team and I have been working on our game, which is a racing game. We have a bunch of maps, and we have all been noticing that studio is lagging considerably as we have added more and more. Here is the plot twist though, every single one of them are in server storage! In fact, besides the lobby(very little parts there are virtually no parts in the workspace. As if this wasn’t unusual enough, everybody is getting lag only when: joining or leaving studio, or starting a play test or ending a play test. On top of that there isn’t any lag like that in the middle of play testing or using the roblox player.

I am kinda at a loss of ideas as to what could be causing this as we have very little outside source scripts, and most parts are in server storage. We are seeking help here because no one on the team can figure this out, and because you veterans probably know the answer as to what could be causing this.

2 Likes

I have a very basic understanding of serverstorage and its effects on memory usage, but i always assumed anything stored in there needs to be replicated from server to you locally, even in studio. This would explain the lag if you have lots of things stored in there.

That being said i tried your game and no lag on mobile, so its only an issue with studio thankfully.

Anything in ServerScriptService and ServerStorage isn’t replicated to the client in a regular server, but I believe it’s all loaded in in Studio. You need to be able to drag things into and out of ServerStorage, so everything inside it needs to be loaded.

1 Like

Do tests in studio host the server on your machine? I assume that is also why it lags in some cases

Yes? Studio tests use an internal server on your machine. Roblox doesn’t host Studio tests on their servers, which is why you don’t need an internet connection to do a playtest in Studio.

2 Likes

wished Roblox actually allowed offline studio, i know it has to contact the mothership, but why not make it cut connections in some cases, or make pseudo local versions?

1 Like

But why would there be lag if the parts are just in serverstorage?? How do big map games like super doomspire do it?

if it’s being loaded in studio would that have an effect on joining studio?

In Studio, it’s being loaded in like everything in Workspace is, aka the more stuff the more lag, or longer loading times. I don’t get what’s so hard to understand about this.

I wanted to confirm that, but then what I don’t understand is how games like super doomspire can actually be worked on, if they have those mega maps, that are being loaded all in one game. If we are taking minutes to load our studio with only our maps which are nowhere close to the part count of super doomspire how come we are having so much trouble?

Are you sure this isn’t a hardware issue of yours? Or an issue with general optimization with your level? Maybe try changing the graphics mode setting in Studio to Vulkan (File>Studio Settings>Rendering>Graphics Mode>Vulkan and restart Studio)?

1 Like

This is has been highlighted by multiple members of our 10 dev team, but I will test that out.

This helped some, thanks for the tip!