Don't apply target_fps in editor

This commit is contained in:
Timo Schwarzer 2019-01-03 18:22:42 +01:00
parent a58c3fb4b7
commit 8d79fea969
No known key found for this signature in database
GPG key ID: C4062DA320280737

View file

@ -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();