mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
NVIDIA: only run latency on success
Only run latency markers if NvAPI_D3D_SetSleepMode returned NVAPI_OK.
This commit is contained in:
parent
af8a3add00
commit
10017fd84e
@ -123,7 +123,7 @@ void GFX_SetLatencyMarker(IUnknown* const device,
|
||||
{
|
||||
Assert(device);
|
||||
|
||||
if (GFX_IsLowLatencySDKEnabled())
|
||||
if (GFX_ParameterUpdateWasSuccessful() && GFX_IsLowLatencySDKEnabled())
|
||||
{
|
||||
NV_LATENCY_MARKER_PARAMS params = {};
|
||||
params.version = NV_LATENCY_MARKER_PARAMS_VER1;
|
||||
@ -133,6 +133,6 @@ void GFX_SetLatencyMarker(IUnknown* const device,
|
||||
NvAPI_D3D_SetLatencyMarker(device, ¶ms);
|
||||
}
|
||||
|
||||
// PCLStats is supported on non-NVIDIA hardware.
|
||||
// PCLStats runs separately and is supported on non-NVIDIA hardware.
|
||||
PCLSTATS_MARKER(markerType, frameID);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user