فهرست منبع

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.
Rémi Verschelde 3 سال پیش
والد
کامیت
779a5e5621
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      editor/editor_settings.cpp

+ 3 - 1
editor/editor_settings.cpp

@@ -334,7 +334,9 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
 	_initial_set("interface/editor/dim_editor_on_dialog_popup", true);
 	_initial_set("interface/editor/dim_editor_on_dialog_popup", true);
 	_initial_set("interface/editor/low_processor_mode_sleep_usec", 6900); // ~144 FPS
 	_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);
 	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
 	// 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).
 	// (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,
 	// With very low FPS limits, the editor can take a small while to become usable after being focused again,