mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-28 17:16:46 +00:00
Try to avoid having no nvngx replacement selected when the GPU doesn't support DLSSG
This commit is contained in:
@@ -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() ||
|
||||
|
||||
Reference in New Issue
Block a user