I currently have a memory leak in my game. I tried looking and comparing snapshots in LuauHeap, but it doesn’t appear to be increasing. (Registry, objects, etc).
No objects, like RBXScriptConnections, appear to be increasing.
However, when I look at the memory graph of PlaceMemory, and Memory, it’s increasing and not coming down. I’m very confused, because my memory keeps going up but my LuaHeap doesn’t. I don’t think the other graphs have any effect because they’re so small in magnitude and don’t affect the total memory usage that much.
Does anyone know what I can do to find the cause of the memory leak?
Also, does anyone have any tips on how to reduce memory usage in general?
Any help would be appreciated!
If player joins memory usage increase. You cant do anything about this. It belong to roblox engine.
I understand that, but sometimes my memory also goes up when I’m in the game by myself, but LuauHeap stays the same.
If you have streaming enabled then parts are loading during the workspace exploring.
I don’t have streaming enabled on.
To be sure. How big amount memory your game use at start and how much usage is increasing?
It starts at 1500 mb and increases to 1600-1650
My LuauHeap graph in PlaceMemory slowly increases from 80 mb to up to 130 mb
It happens when you are static or while travelling the map?
It happens to me when I’m static. The map isn’t very big.
but it happens once after start or just during the long time?
It happens after a long time
thirtycharacters
I tought we are still talking about empty server. But if players join its normal that memory usage increasing and it stays on higher level even if they leave. If you dont have any starter character scripts or scripts using CharacerAdded then you can’t do much. Engine managing RAM on its own way.