瀏覽代碼

Merge pull request #24748 from timoschwarzer/no-target-fps-in-editor

Don't apply target_fps in editor
Rémi Verschelde 6 年之前
父節點
當前提交
bea0a579b7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main/main.cpp

+ 1 - 1
main/main.cpp

@@ -1932,7 +1932,7 @@ bool Main::iteration() {
 	}
 
 	int target_fps = Engine::get_singleton()->get_target_fps();
-	if (target_fps > 0) {
+	if (target_fps > 0 && !Engine::get_singleton()->is_editor_hint()) {
 		uint64_t time_step = 1000000L / target_fps;
 		target_ticks += time_step;
 		uint64_t current_ticks = OS::get_singleton()->get_ticks_usec();