Merge pull request #98385 from RandomShaper/thread_yield

Rationalize busy waits
This commit is contained in:
Rémi Verschelde 2024-12-20 23:56:39 +01:00
commit 8a743f23e6
No known key found for this signature in database
GPG key ID: C3336907360768E1
7 changed files with 30 additions and 22 deletions

View file

@ -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()) {