I come to you for help or advice with great delays in my game. Since the release of Update 1, the game has been extremely lagging behind. Everyone who has played is complaining about why my game activity has dropped. I added an Anti-Lag script, it helped a bit, but it still happens. After the Update was released, I didn’t add anything new, everything was ready. After the game was released, everything worked perfectly with no stuttering.
I’m giving you a link to the game, it’s not about getting popular, but for some tips on how I can fix it. https://www.roblox.com/games/5874486873/
Thanks for any answers.
Have a nice day/afternoon/night!
If you have lots of while loops running that could slow down performance, if you had a lot of while wait() loops that could be a problem if they are used excessively.
I prefer using UnionOperation this will create a solid part Union that is connected with more parts and this will improve performance and remove a lag a bit. For example a wall for window.
That is a massive, massive number! Anything above 3% is a cause for rethinking the Script. Please rethink this script. Does it have many loops? Does it check for something many times a second?
Careful, the spawn() function has a built-in wait(). Make sure you do not use spawn() excessively! Overall, you should avoid spawn() unless necessary as it can cause lag.
I honestly cannot tell as I do not know what you want to achieve. Do you need to check/activate a function tens of times per second? Could it not operate a bit slower?
I didn’t need this snippet at all, I added it in another script sometime. Now the script has less than 1% activity. I don’t think I need to explain anything else.
Thanks to everyone for your time and for learning. It will definitely come in handy in the future!