From 10c8a863d271dac1c51af73e0e7fb23784b6c13d Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Tue, 7 Apr 2026 09:15:29 -0400 Subject: [PATCH] config: move misc:vfr to debug: (#14021) this is a debug-only option and should never be turned off --- src/config/legacy/ConfigManager.cpp | 2 +- src/config/supplementary/ConfigDescriptions.hpp | 12 ++++++------ src/render/Renderer.cpp | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/config/legacy/ConfigManager.cpp b/src/config/legacy/ConfigManager.cpp index 9da42c4f2..a1ab4e1cf 100644 --- a/src/config/legacy/ConfigManager.cpp +++ b/src/config/legacy/ConfigManager.cpp @@ -504,7 +504,6 @@ CConfigManager::CConfigManager() { registerConfigVar("misc:splash_font_family", {STRVAL_EMPTY}); registerConfigVar("misc:font_family", {"Sans"}); registerConfigVar("misc:force_default_wallpaper", Hyprlang::INT{-1}); - registerConfigVar("misc:vfr", Hyprlang::INT{1}); registerConfigVar("misc:vrr", Hyprlang::INT{0}); registerConfigVar("misc:mouse_move_enables_dpms", Hyprlang::INT{0}); registerConfigVar("misc:key_press_enables_dpms", Hyprlang::INT{0}); @@ -579,6 +578,7 @@ CConfigManager::CConfigManager() { registerConfigVar("debug:log_damage", Hyprlang::INT{0}); registerConfigVar("debug:overlay", Hyprlang::INT{0}); registerConfigVar("debug:damage_blink", Hyprlang::INT{0}); + registerConfigVar("debug:vfr", Hyprlang::INT{1}); registerConfigVar("debug:pass", Hyprlang::INT{0}); registerConfigVar("debug:gl_debugging", Hyprlang::INT{0}); registerConfigVar("debug:disable_logs", Hyprlang::INT{1}); diff --git a/src/config/supplementary/ConfigDescriptions.hpp b/src/config/supplementary/ConfigDescriptions.hpp index c6b46b9b5..f02dac0af 100644 --- a/src/config/supplementary/ConfigDescriptions.hpp +++ b/src/config/supplementary/ConfigDescriptions.hpp @@ -1278,12 +1278,6 @@ namespace Config::Supplementary { .type = CONFIG_OPTION_INT, .data = SConfigOptionDescription::SRangeData{-1, -1, 2}, }, - SConfigOptionDescription{ - .value = "misc:vfr", - .description = "controls the VFR status of Hyprland. Heavily recommended to leave enabled to conserve resources.", - .type = CONFIG_OPTION_BOOL, - .data = SConfigOptionDescription::SBoolData{true}, - }, SConfigOptionDescription{ .value = "misc:vrr", .description = " controls the VRR (Adaptive Sync) of your monitors. 0 - off, 1 - on, 2 - fullscreen only, 3 - fullscreen with game or video content type [0/1/2/3]", @@ -1901,6 +1895,12 @@ namespace Config::Supplementary { .type = CONFIG_OPTION_BOOL, .data = SConfigOptionDescription::SBoolData{false}, }, + SConfigOptionDescription{ + .value = "debug:vfr", + .description = "controls the VFR status of Hyprland. Do not turn off unless debugging.", + .type = CONFIG_OPTION_BOOL, + .data = SConfigOptionDescription::SBoolData{true}, + }, SConfigOptionDescription{ .value = "debug:gl_debugging", .description = "enable OpenGL debugging and error checking, they hurt performance.", diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index d32379705..290b2633b 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1879,7 +1879,7 @@ void IHyprRenderer::renderMonitor(PHLMONITOR pMonitor, bool commit) { static auto PDAMAGETRACKINGMODE = CConfigValue("debug:damage_tracking"); static auto PDAMAGEBLINK = CConfigValue("debug:damage_blink"); static auto PSOLDAMAGE = CConfigValue("debug:render_solitary_wo_damage"); - static auto PVFR = CConfigValue("misc:vfr"); + static auto PVFR = CConfigValue("debug:vfr"); static int damageBlinkCleanup = 0; // because double-buffered