Forráskód Böngészése

change low cpu delay to 1 usec, should make editor smoother and not really use
a lot more cpu. Fixes #11030

Juan Linietsky 7 éve
szülő
commit
ca19403306
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      main/main.cpp

+ 2 - 1
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)