From 8e50f8eb503b862b5220694c07c8214d3472f7a2 Mon Sep 17 00:00:00 2001 From: FakeMichau <49685661+FakeMichau@users.noreply.github.com> Date: Sun, 22 Mar 2026 14:04:13 +0100 Subject: [PATCH] Correct a menu warning about FSR FG + Reflex --- OptiScaler/hooks/Reflex_Hooks.cpp | 14 +++++++------- OptiScaler/menu/menu_common.cpp | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/OptiScaler/hooks/Reflex_Hooks.cpp b/OptiScaler/hooks/Reflex_Hooks.cpp index 181f81bf..72fa3a2e 100644 --- a/OptiScaler/hooks/Reflex_Hooks.cpp +++ b/OptiScaler/hooks/Reflex_Hooks.cpp @@ -350,7 +350,7 @@ bool ReflexHooks::updateTimingData() } // For updating information about Reflex hooks -void ReflexHooks::update(bool optiFg_FgState, bool isVulkan) +void ReflexHooks::update(bool fgActive, bool isVulkan) { // We can still use just the markers to limit the fps with Reflex disabled // But need to fallback in case a game stops sending them for some reason @@ -366,17 +366,17 @@ void ReflexHooks::update(bool optiFg_FgState, bool isVulkan) if (isVulkan) { - // optiFg_FgState doesn't matter for vulkan + // fgActive doesn't matter for vulkan // isUsingAsMainNvapi() because fakenvapi might override the reflex' setting and we don't know it State::Instance().reflexLimitsFps = fakenvapi::isUsingAsMainNvapi() || _lastVkSleepParams.bLowLatencyMode; } else { - // Don't use when: Real Reflex markers + OptiFG + Reflex disabled, causes huge input latency + // Don't use when: Real Reflex markers + FSR FG + Reflex disabled, causes huge input latency State::Instance().reflexLimitsFps = - fakenvapi::isUsingAsMainNvapi() || !optiFg_FgState || _lastSleepParams.bLowLatencyMode; - State::Instance().reflexShowWarning = State::Instance().activeFgOutput != FGOutput::XeFG && - !fakenvapi::isUsingAsMainNvapi() && optiFg_FgState && + fakenvapi::isUsingAsMainNvapi() || !fgActive || _lastSleepParams.bLowLatencyMode; + State::Instance().reflexShowWarning = State::Instance().activeFgOutput == FGOutput::FSRFG && + !fakenvapi::isUsingAsMainNvapi() && fgActive && _lastSleepParams.bLowLatencyMode; } @@ -421,7 +421,7 @@ void ReflexHooks::update(bool optiFg_FgState, bool isVulkan) LOG_DEBUG("DLSS FG no longer detected"); } - if ((optiFg_FgState && State::Instance().activeFgOutput == FGOutput::FSRFG) || + if ((fgActive && State::Instance().activeFgOutput == FGOutput::FSRFG) || (_dlssgDetected && fakenvapi::isUsingAsMainNvapi())) currentFps /= 2; diff --git a/OptiScaler/menu/menu_common.cpp b/OptiScaler/menu/menu_common.cpp index f0c35509..fe14632b 100644 --- a/OptiScaler/menu/menu_common.cpp +++ b/OptiScaler/menu/menu_common.cpp @@ -4255,7 +4255,7 @@ bool MenuCommon::RenderMenu() if (state.reflexShowWarning) { ImGui::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), - "Using Reflex's limit with OptiFG has performance overhead"); + "Using Reflex's limit with FSR FG has performance overhead"); ImGui::Spacing(); }