Godot Version
Godot 3.5.1, Mono
Question
So I made a game that has some king of auto mode, that create an UI, do something, and closes the UI.
This is working great, but I suspect this process still eats memory even if I take correctly care of Orphan node and if I queue_free any nodes of my UI.
Here is a Memory graph showing what happens after openning/closing this UI multiple times (each spike is one iteration).
We can see that there is no Orphan nodes, and the nodes are taken care correctly. But, the objects aren’t.
And i honestly don’t know what I do wrong. I’m coding on C# so the garbage collector should free everything I suppose. Just in case, I put all my scripts variables to null at the _ExitTree() call.
I’m using mutltiple AudioStreamPlayer, Particles2D, AnimationPlayer, Sprites with custom materials and UI nodes during the process. Is there something I must free in a specific way ?
Thanks,
Clement.