Start resource tracking as early as possible

This commit is contained in:
cdozdil
2026-06-11 01:31:06 +02:00
committed by FakeMichau
parent a09546fab6
commit e4f08c85bb
+3 -2
View File
@@ -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
{