about call_deferred() in godot

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By phucotaku

call_deferred(), can you help me explain what this function means
i understand calling this command will delay the execution of the job but other than that i don’t know anything more about this function
How long is the delay?
when does it run?

:bust_in_silhouette: Reply From: jujumumu

A simple answer is that call_deffered() calls a function in the main thread when it is not doing anything / idle. There is no specific delay length, it just runs when there is nothing on the main thread. For more information read Zylann’s answer from this question.

1 Like