Try to avoid having no nvngx replacement selected when the GPU doesn't support DLSSG

This commit is contained in:
FakeMichau
2026-08-18 01:55:09 +02:00
parent fb1262e9d5
commit 9cf0e21fb0
+14
View File
@@ -3197,6 +3197,20 @@ void MenuCommon::RenderFrameGenerationSelection(RenderMenuContext& ctx)
ShowTooltip("What backend to use instead of the real DLSSG");
}
// Try to avoid having None selected when the gpu doesn't support DLSSG + some fallbacks
if (!supportsDlssg && (replaceFgOutputWithNvngx || showNvngxFgDowndown) &&
config->FGNvngxReplacement.value_or_default() == FGNvngxReplacement::None)
{
if (state.nukemsFgFileAvailable)
config->FGNvngxReplacement.set_volatile_value(FGNvngxReplacement::Nukems);
else if (state.artursFgFileAvailable)
config->FGNvngxReplacement.set_volatile_value(FGNvngxReplacement::Arturs);
else if (FfxApiProxy::IsFGReady(false))
config->FGNvngxReplacement.set_volatile_value(FGNvngxReplacement::FFX);
}
const bool nvngxFgChanged = (replaceFgOutputWithNvngx || showNvngxFgDowndown) &&
state.activeFgNvngx != config->FGNvngxReplacement.value_or_default();
state.fgSettingsChanged = state.activeFgOutput != config->FGOutput.value_or_default() ||