From ecd7ea7aa2094d4d340888e83d5a4b56d4ec24c7 Mon Sep 17 00:00:00 2001 From: cdozdil Date: Thu, 18 Sep 2025 00:17:37 +0300 Subject: [PATCH] Move start frame to SetUpscalerInputs --- OptiScaler/inputs/FG/FSR3_Dx12_FG.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OptiScaler/inputs/FG/FSR3_Dx12_FG.cpp b/OptiScaler/inputs/FG/FSR3_Dx12_FG.cpp index 0f73dd24..de3d9923 100644 --- a/OptiScaler/inputs/FG/FSR3_Dx12_FG.cpp +++ b/OptiScaler/inputs/FG/FSR3_Dx12_FG.cpp @@ -940,6 +940,12 @@ void FSR3FG::SetUpscalerInputs(ID3D12GraphicsCommandList* InCmdList, NVSDK_NGX_P if (State::Instance().activeFgInput != FGInput::FSRFG30 || fg == nullptr || _device == nullptr) return; + { + std::lock_guard lock(_newFrameMutex); + fg->StartNewFrame(); + _uiRes[fg->GetIndex()] = {}; + } + fg->EvaluateState(_device, _fgConst); // FSR Camera values