Instance Count Goes Up Indefinitely

Memory usage is 3000MB in studio but much lower in game.
Data received and sent are relatively optimized
Lua heap goes up with instance count

How to emulate the problem:

How To

Join the game and press “L” to open performance stats., then wait 5 minutes and the instance count will go up by 20000.

Fixes I have tried:

Fixes

I have tried fixing the problem by using Maid Cleaner literally any chance I have (Didn’t Work)
Tried deleting most or all of the scripts and it was still going up.
Cleaned my studio and reinstalled, as well as wiping my plugins folder.
Used another performance UI and same thing shown.

HELPPP MY GAME’S PERFORMANCE SUCKS!!!

Have you tried debugging by checking whats summoning the instances? It looks like you have a memory leak that’s just summoning a large amount of instances.

Asking “help” yet not providing any further details doesn’t make it any easier to help.

Ah sorry, I was making this pretty stressed and forgot to put in those details… Will put them in later

How do you find whats summoning the instance? I do have multiple scripts that summon instances but theyre all debrisservice or Destroyed

Sorry about the late reply. If you check lua heap, you can check what part of the game is increasing. You can’t necessarily check what’s actually summoning them, though if you know the ins and outs of the game you shuold know where an instance would be spawning.

Try coursing through all of your files.

I coursed through 400 files and found the main things…
Hopefully its good now. Instance count is stable between 35500- 35800

Hopefully, once you find the issue let me know and mark the post as solved to prevent necroposting :sweat:

Thank you, Recently found it… It was… A dummy…

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.