Memory leak when running my game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By LaranjoLouco

So, when I try to load my game, it consumes MASSIVE memory, the ram consume goes 200 mb up every 1.5 seconds. It’s a dragon ball fight game, and it happens when the match starts. all the scenes that aren’t being loaded are being freed. i don’t know what’s happening, it’s a simple 2d game.

Solved. I was instancing nodes on every frame instead of just instancing them when i needed,

LaranjoLouco | 2020-10-10 20:09

i thought it was something like that lol

veridical | 2020-10-12 02:50