Memory usage optimization

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want my game usage memory not to getting higher

  2. What is the issue? Include enough details if possible!
    well, i notice that the more time player play the game , the higher the memory usage of player got

  3. What solutions have you thought of so far?
    im looking for it

This issue is likely caused by memory leaks as objects like parts, connections, or instances are not being properly cleaned up over time, in order to fix this you need to make sure you’re disconnecting any unused event connections, destroying temporary objects (e.g. cloned parts or effects) and avoiding continuous creation of things without removing old ones

Use tools like the Microprofiler (Ctrl + F6 in Studio) or the MemoryStoreService for diagnostics

1 Like