From 779a5e56218b7fa2ab34ab22ab5b1b2aaa19346f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 12 Oct 2021 16:56:09 +0200 Subject: [PATCH] Change editor FPS limit for unfocused mode back to 20 FPS This was changed in 7991d0fb228c4bfb669a1a541267b8fbb1a78682 but seems to cause issues for some projects when using the profiler. Fixes #51222. --- editor/editor_settings.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 163213f22b9..a672aff6fb2 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -334,7 +334,9 @@ void EditorSettings::_load_defaults(Ref p_extra_config) { _initial_set("interface/editor/dim_editor_on_dialog_popup", true); _initial_set("interface/editor/low_processor_mode_sleep_usec", 6900); // ~144 FPS hints["interface/editor/low_processor_mode_sleep_usec"] = PropertyInfo(Variant::REAL, "interface/editor/low_processor_mode_sleep_usec", PROPERTY_HINT_RANGE, "1,100000,1", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED); - _initial_set("interface/editor/unfocused_low_processor_mode_sleep_usec", 100000); // 10 FPS + // Note: Don't go low on the editor unfocused FPS, as it seems to cause stalls in the game + // when using the profiler (see GH-51222). + _initial_set("interface/editor/unfocused_low_processor_mode_sleep_usec", 50000); // 20 FPS // Allow an unfocused FPS limit as low as 1 FPS for those who really need low power usage // (but don't need to preview particles or shaders while the editor is unfocused). // With very low FPS limits, the editor can take a small while to become usable after being focused again,