I am super spooked after testing my game’s PlaceMemory with me and my friend, I am unsure, but I think I might have a memory leak. I am the most anxiety ridden person there is so I am not sure. Does script activity correlate to LuaHeap spiking? I dunno!
My goal is to have an optimized well running game, and since I don’t know the statistics of this, I am unsure of what measures to take. I am aware of garbage collection, I perform many script connections but always disconnect them when unused, and I use proper instance deletion (hopefully)!
Stays pretty consistent around ~50 to ~60 MB, I am still questioning though. The friend I tested with, his stayed up consistent to around ~100 to ~120MB, is that because he has the 64-bit client?
The best way to check if your game has a memory leak, is to simply just play it normally for a long period of time. And by a long period of time, I mean at least a minimum of an hour.
Additionally, the reason your friend has a different amount of memory compared to you is probably due to factors like the device he’s using, or the specifications of his device. Roblox allocates more memory to allow for the “optimal gaming experience”, which makes sense why there’s a memory difference.