Skip to content

Commit

Permalink
disable fsr swapchain when dlssg is active
Browse files Browse the repository at this point in the history
  • Loading branch information
cdozdil committed Jan 19, 2025
1 parent 64e3e5e commit 76044df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions OptiScaler/imgui/imgui_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2571,8 +2571,15 @@ bool ImGuiCommon::RenderMenu()
SeparatorWithHelpMarker("Enable DLSSG", "These settings will be active on next boot!");
auto dlssgEnabled = Config::Instance()->DLSSGMod.value_or(false);
if (ImGui::Checkbox("DLSSG Enabled", &dlssgEnabled))
{
Config::Instance()->DLSSGMod = dlssgEnabled;

if (dlssgEnabled)
Config::Instance()->FGUseFGSwapChain = false;
else
Config::Instance()->FGUseFGSwapChain.reset();
}

auto hagsSpoofing = Config::Instance()->SpoofHAGS.value_or(dlssgEnabled);
if (ImGui::Checkbox("HAGS Spoofing Enabled", &hagsSpoofing))
Config::Instance()->SpoofHAGS = hagsSpoofing;
Expand Down

0 comments on commit 76044df

Please sign in to comment.