Recently I noticed a spike in ping and memory in my game. I am unsure where it is coming from and was wondering if there is a fast way of locating what script in my game is causing the leak. I am pretty new to the performance stats interface and it seems like a big confusing mess right now.
A few other things to note:
My game uses a lot of humanoid controlled NPCs (30 npcs at a time + 10 players)
I recently turned collision fidelity to box on all parts which brought the lag down a bit but there is still memory issues.
Your best choice is using some sort of version-comparing software on each individual script between two versions; the one where you are facing the issue and the first one you know does not.
What kind of memory usage are you looking at, and is the problem client or server-side?
That’s the client you’re looking at. In the future, you may want to press F9 to open the developer console, where you should head to the Memory tab. In there, you can find more details on how server and client memory are being used.