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:
parent
ebbe2bd572
commit
ca19403306
1 changed files with 2 additions and 1 deletions
|
@ -1764,7 +1764,8 @@ bool Main::iteration() {
|
||||||
return exit;
|
return exit;
|
||||||
|
|
||||||
if (OS::get_singleton()->is_in_low_processor_usage_mode() || !OS::get_singleton()->can_draw())
|
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 {
|
else {
|
||||||
uint32_t frame_delay = Engine::get_singleton()->get_frame_delay();
|
uint32_t frame_delay = Engine::get_singleton()->get_frame_delay();
|
||||||
if (frame_delay)
|
if (frame_delay)
|
||||||
|
|
Loading…
Reference in a new issue