Is there anything I can do to make the game less laggy?

Greetings, Robloxians! So, there have been some lag issues for our studio team. Let it be know that the game currently is very high quality which natural does bring in some lag. It’s a a huge lag problem that result it being uncomfortable to play the game due to constant lag and the FPS occasionally drops to an extremely low level. It could be shown right here Lag Showcase.

We did tried a couple of approaches to fix these issues. Them being,

  • Turning off StarterCharacter
  • Turning off FirstPerson
  • Avoiding “While true do” loops
  • Removing unnecessary blocks

Your advice, help, and tips are incredibly valuable and greatly appreciated, Robloxians!

Thank you for all of your assistance.

3 Likes

Personally,

Here are some actions I’ve taken,

  • My game utilizes ACS “gun system,” I’ve completely gutted the system removing a majority of the loops or Remotes.
  • Changed StreamingTargetRadius to 900 instead of 1024
  • StreamOutBehavior set to Opportunistic
  • Majority of my models - ModelStreamingMode set to Atomic
  • If you have light poles in your game, and they have individual scripts that detect lighting changes, create a module or a core script to run a single loop to affect all light poles.
  • Run ‘Script Performance’ in studio on both Client and Server. Find scripts that are killing your game and re-work them as needed.
  • Avoid loops (While,for,repeat, etc) in loops and so on.

My game utilizes 45 player slots. I’ve found it useful for the UI NOT to be stored in the StarterGui as the server clones & tracks the UI for all clients. I’ve personally found, placing my UI in ReplicatedStorage. Then the client pulls the UI when needed. If the UI requires Server intervention, the Server can also clone it into the PlayerGui.

Removing unnecessary blocks is useful; however, find blocks that contribute lag elsewhere, for example, I have roadways in my game. The ‘CastShadow’ property for such items are disabled because they don’t need shadows.

:metal:Rock on brother

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.