Why does yield/return to skip a frame takes so long?

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

I’ve been trying to skip a frame while waiting my popup menu to show.However,when I tried using return and yield, it feels it’s taking more than one frame(around a few seconds) to continue.
I’m doing this following the background loading tutorial from the Godot documentation,which uses return.For me,I’ve changed to using yield,but the problem still persist.

what are you yielding on?

yield(get_tree(), "idle_frame")

rakkarage | 2020-06-27 13:00

Yup…I did that…
Actually I don’t even know why I need return/yield…
If I dint use them,my popup is showing up late…that’s why used it…
What is it for?
Even when updating progress bar,it does’nt update when I did not call yield().If I call yield,there are chances that it will disrupt the order of execution.

God Of Theory | 2020-06-27 13:56