This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
–1 vote

I know that the Node._process() method runs whenever possible, while the Node._physics_process() method runs at regular intervals.
Suppose we are in the following scenario (where the red lines indicate when Node._process() is executed and the blue lines when Node._physics_process() is executed):

https://imgur.com/2xM1Tc6

My question is: if at time t1 user input arrives, when is Node._input() executed? at time t1? at time t2 or maybe at time t3?

Godot version 3.5.1
in Engine by (11 points)
edited by

1 Answer

–1 vote

Node._process() run every frame not whenever possible
Node._process() and Node._physics_process() run on deffrent threads
but Node._process() CALLS whenever possible as delta < 0.02 ms
_input() virtual function calls when an inputevent pressed on the mainloop
after that Node._process() and Node._physics_process() will be able to know if the is an Inputevent thats mean :

_Input() -> _physics_process() -> _process()
by (16 points)
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 Frequently asked questions and 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 [email protected] with your username.