summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorBernhard Liebl <Bernhard.Liebl@gmx.org>2018-01-03 15:59:10 +0100
committerBernhard Liebl <Bernhard.Liebl@gmx.org>2018-01-03 15:59:10 +0100
commitbd5e3052aca8495f04552b81b2a03917f9387717 (patch)
tree7069ed3b4615c14157df7dc8eee1b401a7816071 /editor
parent99960d929435423b25e9bfb55051af60edbfcca9 (diff)
Fix Godot getting swamped by debug events
Diffstat (limited to 'editor')
-rw-r--r--editor/script_editor_debugger.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp
index a1c1ec3351..b4b186f898 100644
--- a/editor/script_editor_debugger.cpp
+++ b/editor/script_editor_debugger.cpp
@@ -1052,6 +1052,8 @@ void ScriptEditorDebugger::_notification(int p_what) {
break;
};
+ const uint64_t until = OS::get_singleton()->get_ticks_msec() + 20;
+
while (ppeer->get_available_packet_count() > 0) {
if (pending_in_queue) {
@@ -1116,6 +1118,9 @@ void ScriptEditorDebugger::_notification(int p_what) {
break;
}
}
+
+ if (OS::get_singleton()->get_ticks_msec() > until)
+ break;
}
} break;