From acbf0352daafb6aab28c912e7e02852edebea78e Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 25 Dec 2023 19:24:42 +0100 Subject: [PATCH] NVIDIA: always run PC Latency stats PCLStats is not NVIDIA hardware bound as per Reflex's documentation, and runs separately from the NVIDIA Reflex code. Always enable! --- src/geforce/reflex.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/geforce/reflex.cpp b/src/geforce/reflex.cpp index 56947b5a..cbb4c041 100644 --- a/src/geforce/reflex.cpp +++ b/src/geforce/reflex.cpp @@ -123,14 +123,16 @@ void GFX_SetLatencyMarker(IUnknown* const device, { Assert(device); - if (!GFX_IsLowLatencySDKEnabled()) - return; + if (GFX_IsLowLatencySDKEnabled()) + { + NV_LATENCY_MARKER_PARAMS params = {}; + params.version = NV_LATENCY_MARKER_PARAMS_VER1; + params.frameID = frameID; + params.markerType = markerType; - NV_LATENCY_MARKER_PARAMS params = {}; - params.version = NV_LATENCY_MARKER_PARAMS_VER1; - params.frameID = frameID; - params.markerType = markerType; + NvAPI_D3D_SetLatencyMarker(device, ¶ms); + } - NvAPI_D3D_SetLatencyMarker(device, ¶ms); + // PCLStats is supported on non-NVIDIA hardware. PCLSTATS_MARKER(markerType, frameID); }