So when I open the Developer Console in Studio, My memory is constantly going up. In Core Memory, physics/step and default memory is responsible for the memory going up the longer the game stays open. Another thing is when i leave Studio and come back, the memory is saved, so each time i come back to work on the game it goes up and up. It went from 500Mb to 2000Mb in just a few days. When i play the game (not in studio) its usually around 480Mb. I tried optimizing my scripts but still cannot find the problem. If anyone could tell me what “physics/step” is and what i could try to look into to solve this problem.
Core memory is a little-understood thing and every time someone makes a post about it has incorrect or conflicting information, followed by a “solution” that doesn’t make sense. So be careful listening to wisdom
Anyways though, it might be (and personally I bet it probably is) just random. High RAM isn’t necessarily a problem and who knows what nonsense roblox does behind the scenes.
In case it’s not random, you may have a memory leak somewhere, which are hard to track down because there’s no good memory tools in Roblox at the moment. Got any huge tables that never get dereferenced?
Otherwise unless you actually run into problems, don’t worry about it. High memory usage doesn’t slow down games.
I may be wrong with what’s Physics/Step but I’d say it’s just the real time simulation of Physics, just saying based on the name, but the important fact here is that it isn’t your scripts that are affecting this unless you are constantly unanchoring things
If you already optimized your scripts the most probable conclusion is that the buildings or meshes you have for your game may terribly eat your Memory easily.
I just found something interesting… Physics/step only ramps up when i stand on a spawn part. Im using roblox’s team change. so why would this cause the issue?
Edit: my game uses pets, and only when both the player and their pet are both touching the Spawn part, it ramps up. Im assuming “Body Gyro” and “Body Position” are causing this.