From 8c14c2a5f472cf3d361d3cbb90ee7d2d455aae08 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 30 Dec 2024 11:57:55 +0100 Subject: ctm: disable fade animation by default on nvidia Fixes #8891, the nvidia driver dies when we spam CTM too much. --- src/config/ConfigDescriptions.hpp | 18 ++++++++++++++++++ src/config/ConfigManager.cpp | 1 + 2 files changed, 19 insertions(+) (limited to 'src/config') diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp index e1c9cb46..17657983 100644 --- a/src/config/ConfigDescriptions.hpp +++ b/src/config/ConfigDescriptions.hpp @@ -1289,6 +1289,24 @@ inline static const std::vector CONFIG_OPTIONS = { .type = CONFIG_OPTION_BOOL, .data = SConfigOptionDescription::SBoolData{false}, }, + SConfigOptionDescription{ + .value = "render:expand_undersized_textures", + .description = "Whether to expand textures that have not yet resized to be larger, or to just stretch them instead.", + .type = CONFIG_OPTION_BOOL, + .data = SConfigOptionDescription::SBoolData{true}, + }, + SConfigOptionDescription{ + .value = "render:xp_mode", + .description = "Disable back buffer and bottom layer rendering.", + .type = CONFIG_OPTION_BOOL, + .data = SConfigOptionDescription::SBoolData{true}, + }, + SConfigOptionDescription{ + .value = "render:ctm_animation", + .description = "Whether to enable a fade animation for CTM changes (hyprsunset). 2 means 'auto' (Yes on everything but Nvidia).", + .type = CONFIG_OPTION_INT, + .data = SConfigOptionDescription::SRangeData{2, 0, 2}, + }, /* * cursor: diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 0b8e68f6..67df5bf4 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -614,6 +614,7 @@ CConfigManager::CConfigManager() { m_pConfig->addConfigValue("render:direct_scanout", Hyprlang::INT{0}); m_pConfig->addConfigValue("render:expand_undersized_textures", Hyprlang::INT{1}); m_pConfig->addConfigValue("render:xp_mode", Hyprlang::INT{0}); + m_pConfig->addConfigValue("render:ctm_animation", Hyprlang::INT{2}); m_pConfig->addConfigValue("ecosystem:no_update_news", Hyprlang::INT{0}); -- cgit v1.2.3