diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index f29a267c221b..52f5b35a43ac 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -475,6 +475,10 @@ var fps_limit := 0: ## Found in Preferences. Affects the per_pixel_transparency project setting. ## If [code]true[/code], it allows for the window to be transparent. ## This affects performance, so keep it [code]false[/code] if you don't need it. +var update_continuously := false: + set(value): + update_continuously = value + OS.low_processor_usage_mode = !value var window_transparency := false: set(value): if value == window_transparency: diff --git a/src/Preferences/PreferencesDialog.gd b/src/Preferences/PreferencesDialog.gd index 8272434081f8..bea75ff3eb13 100644 --- a/src/Preferences/PreferencesDialog.gd +++ b/src/Preferences/PreferencesDialog.gd @@ -175,6 +175,12 @@ var preferences: Array[Preference] = [ "button_pressed", true ), + Preference.new( + "update_continuously", + "Performance/PerformanceContainer/UpdateContinuously", + "button_pressed", + false + ), Preference.new( "window_transparency", "Performance/PerformanceContainer/WindowTransparency", diff --git a/src/Preferences/PreferencesDialog.tscn b/src/Preferences/PreferencesDialog.tscn index 2d3a404a9ed5..dd1a040fdab7 100644 --- a/src/Preferences/PreferencesDialog.tscn +++ b/src/Preferences/PreferencesDialog.tscn @@ -1058,6 +1058,19 @@ mouse_default_cursor_shape = 2 button_pressed = true text = "On" +[node name="UpdateContinuouslyLabel" type="Label" parent="HSplitContainer/VBoxContainer/ScrollContainer/RightSide/Performance/PerformanceContainer"] +layout_mode = 2 +tooltip_text = "If this is toggled on, the application will redraw the screen continuously, even while it's not used. Turning this off helps lower CPU and GPU usage when idle." +mouse_filter = 0 +text = "Update Continuously" + +[node name="UpdateContinuously" type="CheckBox" parent="HSplitContainer/VBoxContainer/ScrollContainer/RightSide/Performance/PerformanceContainer"] +layout_mode = 2 +tooltip_text = "If this is toggled on, the application will redraw the screen continuously, even while it's not used. Turning this off helps lower CPU and GPU usage when idle." +mouse_default_cursor_shape = 2 +button_pressed = true +text = "On" + [node name="WindowTransparencyLabel" type="Label" parent="HSplitContainer/VBoxContainer/ScrollContainer/RightSide/Performance/PerformanceContainer"] layout_mode = 2 tooltip_text = "If enabled, the application window can become transparent. This affects performance, so keep it off if you don't need it."