1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Fix editor log flicker.

This commit is contained in:
bruvzg
2023-06-07 20:09:09 +03:00
parent 593d5ca29f
commit 488626701d
3 changed files with 21 additions and 1 deletions

View File

@@ -346,6 +346,15 @@ void EditorLog::_add_log_line(LogMessage &p_message, bool p_replace_previous) {
}
log->add_newline();
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_ready()) {
::OS::get_singleton()->delay_usec(1);
}
}
}
}
void EditorLog::_set_filter_active(bool p_active, MessageType p_message_type) {