mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-25 07:36:45 +00:00
Start resource tracking as early as possible
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user