0 votes

To clarify my question here, is it safe to assume that:

Given that no autoload will care about inputs, the root of the scene will be the last to have its _UnhandledInput called?

The reason for my question is that I'm using C#, and Input Events tend to accumulate before the garbage collector takes it all in one go.

However, manually calling @event.Dispose() at the root of the scene seems to prevent accumulation of memory on every single input (mouse movements, key presses, etc).

I'm relatively new to programming and very new to Godot, so I guess I would like clarification as to whether or not my assumption is correct, and perhaps if there are some nuances I'm not aware of when I do this.

Godot version 3.3.2 Mono
in Engine by (12 points)

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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.