You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Don't apply target_fps in editor
This commit is contained in:
@@ -1932,7 +1932,7 @@ bool Main::iteration() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int target_fps = Engine::get_singleton()->get_target_fps();
|
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;
|
uint64_t time_step = 1000000L / target_fps;
|
||||||
target_ticks += time_step;
|
target_ticks += time_step;
|
||||||
uint64_t current_ticks = OS::get_singleton()->get_ticks_usec();
|
uint64_t current_ticks = OS::get_singleton()->get_ticks_usec();
|
||||||
|
|||||||
Reference in New Issue
Block a user