I believe this is due to a script-related memory leak. Is there any way to decipher which script is causing it? I’ve tried using LuauHeap “Memory Categories” section, but due to this bug, it is hard to tell which scripts are causing it.
Are there any other methods to figure out what exactly is leaking in the “UntrackedMemory” section?
Here is a graph of our server memory. The green line is the UntrackedMemory category, and the yellowish line is the total server memory. I also have seemed to realize that every spike in UntrackedMemory leads to an uptick in total memory, however it does not go down like UntrackedMemory does, which is strange and could be a bug? Not sure.
In a Live server, press F9 and select Server from the drop-down. Select Memory, choose Server or Client then scroll down till you find the PlaceMemory & PlaceScriptMemory. This will show you how much memory the actual game is using. See which one is the highest and track those that are increasing over time… Also check in the Scripts drop down for the Activity (%) and Rate (/s) your scripts are using. Anything high needs to be looked at.
tbh the quickest thing to do, is to remove shadows on items that don’t need them. Remove the CanTouch option and ensure everything is Anchored that doesn’t need to move. This can frequently fix slow downs and high memory usage.
If your game uses explosives, make sure to implement a raycasting system (might be overkill lol) but with that, you can see if the user is looking at the explosion or not, that makes it happen, or stops it