浏览代码

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

Juan Linietsky 7 年之前
父节点
当前提交
ca19403306
共有 1 个文件被更改,包括 2 次插入1 次删除
  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)