0 votes

Good time of day. Friends, such a question of "optimization" (Yes, it sounds funny) is there a load on the system, from a disabled (Hidden, disabled, whatever) node?

Godot version 3.2.3 Stable
in Engine by (148 points)

1 Answer

+1 vote
Best answer

Hiding a node will generally improve performance, but only to a certain extent. Most importantly, hiding a node will not prevent its _process() and _physics_process() functions from running. If you want to prevent that, check whether the node is visible using is_visible_in_tree() before running tasks that are only useful when the node is visible. (Note that this check has a cost, so only do it if the node has a high likelihood to be hidden.)

by (10,952 points)
selected by
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.