change low cpu delay to 1 usec, should make editor smoother and not really use

a lot more cpu. Fixes #11030
This commit is contained in:
Juan Linietsky 2017-11-17 21:21:54 -03:00
parent ebbe2bd572
commit ca19403306

View file

@ -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)