mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Merge pull request #98385 from RandomShaper/thread_yield
Rationalize busy waits
This commit is contained in:
commit
8a743f23e6
7 changed files with 30 additions and 22 deletions
|
|
@ -5497,7 +5497,6 @@ bool EditorNode::immediate_confirmation_dialog(const String &p_text, const Strin
|
|||
cd->popup_centered();
|
||||
|
||||
while (true) {
|
||||
OS::get_singleton()->delay_usec(1);
|
||||
DisplayServer::get_singleton()->process_events();
|
||||
Main::iteration();
|
||||
if (singleton->immediate_dialog_confirmed || !cd->is_visible()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue