From e4f08c85bbdb2f591601fa6b8cb1e398bb250c37 Mon Sep 17 00:00:00 2001 From: cdozdil Date: Mon, 18 May 2026 22:02:49 +0300 Subject: [PATCH] Start resource tracking as early as possible --- OptiScaler/inputs/NVNGX_DLSS_Dx12.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OptiScaler/inputs/NVNGX_DLSS_Dx12.cpp b/OptiScaler/inputs/NVNGX_DLSS_Dx12.cpp index 8e62d060..afb0f3e4 100644 --- a/OptiScaler/inputs/NVNGX_DLSS_Dx12.cpp +++ b/OptiScaler/inputs/NVNGX_DLSS_Dx12.cpp @@ -1060,6 +1060,9 @@ static NVSDK_NGX_Result TryEvaluateOptiFeature(ID3D12GraphicsCommandList* InCmdL // Evaluate the feature bool evalSuccess = false; { + // Resource tracking + UpscalerInputsDx12::UpscaleEnd(InCmdList, InParameters, feature); + ScopedSkipHeapCapture skip {}; evalSuccess = feature->Evaluate(InCmdList, InParameters); } @@ -1070,8 +1073,6 @@ static NVSDK_NGX_Result TryEvaluateOptiFeature(ID3D12GraphicsCommandList* InCmdL // Upscaler time calc // Record the second timestamp UpscalerTimeDx12::UpscaleEnd(InCmdList); - - UpscalerInputsDx12::UpscaleEnd(InCmdList, InParameters, feature); } else {