diff options
author | Timo Schwarzer <me@timoschwarzer.com> | 2019-01-03 18:22:42 +0100 |
---|---|---|
committer | Timo Schwarzer <me@timoschwarzer.com> | 2019-01-03 18:22:42 +0100 |
commit | 8d79fea9694dad7433cb67a5079ae84e254e6848 (patch) | |
tree | c584adf8b451a38fd0f02668a2c661c0c5ab6467 /main/main.cpp | |
parent | a58c3fb4b7a9efa23546b71b4875360d7c8fc27d (diff) |
Don't apply target_fps in editor
Diffstat (limited to 'main/main.cpp')
-rw-r--r-- | main/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index dcac2ff170..e0f9cfb9d9 100644 --- a/main/main.cpp +++ b/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(); |