Răsfoiți Sursa

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 ani în urmă
părinte
comite
779a5e5621
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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/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,