diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-11-17 21:21:54 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-11-17 21:22:37 -0300 |
commit | ca194033061b4b29fe00d8e9bddf2f0478b3c3f0 (patch) | |
tree | 7e8be827d0baffb9d7ed50acb0b90982a9bbec7a | |
parent | ebbe2bd57235fcbd2edb82c05bb9d7d768b3e7ca (diff) |
change low cpu delay to 1 usec, should make editor smoother and not really use
a lot more cpu. Fixes #11030
-rw-r--r-- | main/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index cc6e66d352..3a87742528 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1764,7 +1764,8 @@ bool Main::iteration() { return exit; if (OS::get_singleton()->is_in_low_processor_usage_mode() || !OS::get_singleton()->can_draw()) - OS::get_singleton()->delay_usec(16600); //apply some delay to force idle time (results in about 60 FPS max) + //OS::get_singleton()->delay_usec(16600); //apply some delay to force idle time (results in about 60 FPS max) + OS::get_singleton()->delay_usec(1000); //apply some delay to force idle time (results in about 60 FPS max) else { uint32_t frame_delay = Engine::get_singleton()->get_frame_delay(); if (frame_delay) |