config: nuke explicit_sync settings

were not used anymore, explicit is on by default
This commit is contained in:
Vaxry 2025-06-19 14:58:03 +02:00
parent 54ccf9c6b3
commit 86b5e3bfbc
No known key found for this signature in database
GPG key ID: 665806380871D640
5 changed files with 5 additions and 67 deletions

View file

@ -2347,33 +2347,6 @@ bool CHyprRenderer::isNvidia() {
return m_nvidia;
}
SExplicitSyncSettings CHyprRenderer::getExplicitSyncSettings(SP<Aquamarine::IOutput> output) {
static auto PENABLEEXPLICIT = CConfigValue<Hyprlang::INT>("render:explicit_sync");
static auto PENABLEEXPLICITKMS = CConfigValue<Hyprlang::INT>("render:explicit_sync_kms");
SExplicitSyncSettings settings;
settings.explicitEnabled = *PENABLEEXPLICIT;
settings.explicitKMSEnabled = *PENABLEEXPLICITKMS;
if (!output->supportsExplicit) {
settings.explicitEnabled = false;
settings.explicitKMSEnabled = false;
return settings;
}
if (*PENABLEEXPLICIT == 2 /* auto */)
settings.explicitEnabled = true;
if (*PENABLEEXPLICITKMS == 2 /* auto */) {
if (!m_nvidia)
settings.explicitKMSEnabled = true;
else {
settings.explicitKMSEnabled = isNvidiaDriverVersionAtLeast(560);
}
}
return settings;
}
void CHyprRenderer::addWindowToRenderUnfocused(PHLWINDOW window) {
static auto PFPS = CConfigValue<Hyprlang::INT>("misc:render_unfocused_fps");

View file

@ -41,10 +41,6 @@ class CToplevelExportProtocolManager;
class CInputManager;
struct SSessionLockSurface;
struct SExplicitSyncSettings {
bool explicitEnabled = false, explicitKMSEnabled = false;
};
struct SRenderWorkspaceUntilData {
PHLLS ls;
PHLWINDOW w;
@ -81,7 +77,6 @@ class CHyprRenderer {
bool isNvidia();
void makeEGLCurrent();
void unsetEGL();
SExplicitSyncSettings getExplicitSyncSettings(SP<Aquamarine::IOutput> output);
void addWindowToRenderUnfocused(PHLWINDOW window);
void makeSnapshot(PHLWINDOW);
void makeSnapshot(PHLLS);