You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #98385 from RandomShaper/thread_yield
Rationalize busy waits
This commit is contained in:
@@ -398,9 +398,7 @@ void EditorLog::_add_log_line(LogMessage &p_message, bool p_replace_previous) {
|
||||
if (p_replace_previous) {
|
||||
// Force sync last line update (skip if number of unprocessed log messages is too large to avoid editor lag).
|
||||
if (log->get_pending_paragraphs() < 100) {
|
||||
while (!log->is_finished()) {
|
||||
::OS::get_singleton()->delay_usec(1);
|
||||
}
|
||||
log->wait_until_finished();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user