mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-04 00:31:35 +00:00
Correct a menu warning about FSR FG + Reflex
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user