prevent editor from hang when update loop takes more than 24 ms
this is a bit hacky but makes editor more responsive
@@ -1542,6 +1542,10 @@ fn update(
poll_ui_messages(editor, engine);
editor.post_update(engine);
+
+ if dt >= 1.5 * fixed_timestep {
+ break;
+ }
}
let window = engine.get_window();
