summaryrefslogtreecommitdiff
path: root/main/main.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-11-19 21:40:25 +0100
committerRémi Verschelde <rverschelde@gmail.com>2017-11-19 21:40:25 +0100
commitd40b1825fc7c21b80a9482ff7e3ee571dc237d17 (patch)
tree1d6f567c588e37a9ec91c54f7d29b6664a1b75af /main/main.cpp
parent469cff734f7d76aac3457f89a0b5986898bb7efe (diff)
Revert "change low cpu delay to 1 usec, should make editor smoother and not really use"
This reverts commit ca194033061b4b29fe00d8e9bddf2f0478b3c3f0. See discussion in https://github.com/godotengine/godot/commit/ca194033061b4b29fe00d8e9bddf2f0478b3c3f0#commitcomment-25715906 It also did not fix the issue it claimed to fix.
Diffstat (limited to 'main/main.cpp')
-rw-r--r--main/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 023520017b..f6b11bc3ca 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1766,8 +1766,7 @@ 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(1000); //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)
else {
uint32_t frame_delay = Engine::get_singleton()->get_frame_delay();
if (frame_delay)