(Obsolete) Performance Goals and How to Actually Improve Performance in Your Games

I MADE THIS POST GOOD: [Improved] How to Actually Improve Performance in Your Games

52 Likes

Thanks, this helped a lot, will bookmark for future uses.

1 Like

A thing to note is that lower memory usage doesn’t necessarily equal better performance. Everything in your memory is just data until it is accessed.

Issues most frequently appear when Roblox tries to load a model, but something is hogging all of the memory. What happens then is Roblox has to unload some unused models, which will result FPS dips if they have to be loaded again. It’s frequently seen in open world games as stutters while rotating the camera.

There is also the rare “Ran out of memory” error, but you shouldn’t be able to reach that without some seriously bad scripting.

2 Likes

That’s a good point! I should’ve included that in my post, thank you for the response!

2 Likes

I think it’s worth elaborating on this, what exactly do you mean here (ignoring instances)? Sometimes using loops helps improve the code, and having “too many scripts” is kind of vague; is too many when performance takes a hit?

Loops shorten code (like saving your variables in a table instead), and on top of that, they help to avoid your note on variable name size impacting performance. I feel like based on your words, it would be better to refrain from underusing loops rather than overuse.

It’s kind of a rough scale to compare isn’t it?

How would I check how much MB my game is consuming?
And would there be a way to check how many threads a specific script in my game connected?

1 Like

Pressing F9 while in-game should open the developer console where you can check client and server memory

1 Like

I should’ve been more specific. I will update it!

It depends on the wait time between it, as it is almost always better to use functions if possible