Don't apply frame delay project setting to the editor

This appears to already be the case for the Max FPS project setting.

(cherry picked from commit a63556212d)
This commit is contained in:
Hugo Locurcio
2023-10-06 21:51:26 +02:00
committed by Yuri Sizov
parent c5e94ad9de
commit b468496700
2 changed files with 5 additions and 1 deletions

View File

@@ -1962,6 +1962,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
if (frame_delay == 0) {
frame_delay = GLOBAL_DEF(PropertyInfo(Variant::INT, "application/run/frame_delay_msec", PROPERTY_HINT_RANGE, "0,100,1,or_greater"), 0);
if (Engine::get_singleton()->is_editor_hint()) {
frame_delay = 0;
}
}
OS::get_singleton()->set_low_processor_usage_mode(GLOBAL_DEF("application/run/low_processor_mode", false));