0 votes

I see the "Static memory" number going up the entire time my game is running, particularly from mouse move events being generated.
It's just a C# class that has _Input function.

Am I understanding the profiler wrong?
If not, how does this memory get freed?
Calling GC.Collect doesn't seem to do anything, so does that mean the input event objects are still referenced somehow?

asked Feb 7, 2019 in Engine by Daimeng Chen (24 points)

We would need to see actual code here. If you are using something that inherits from Node or Object, you may have to manage memory yourself a tiny bit. Nodes are managed as long as they are in the tree. Godot.Objects may need some reference management or maybe a QueueFree call. I would need to see the code to actually, help, though.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.