mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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!
This commit is contained in:
parent
735a9e0489
commit
b162b10598
@ -123,14 +123,16 @@ void GFX_SetLatencyMarker(IUnknown* const device,
|
|||||||
{
|
{
|
||||||
Assert(device);
|
Assert(device);
|
||||||
|
|
||||||
if (!GFX_IsLowLatencySDKEnabled())
|
if (GFX_IsLowLatencySDKEnabled())
|
||||||
return;
|
{
|
||||||
|
NV_LATENCY_MARKER_PARAMS params = {};
|
||||||
|
params.version = NV_LATENCY_MARKER_PARAMS_VER1;
|
||||||
|
params.frameID = frameID;
|
||||||
|
params.markerType = markerType;
|
||||||
|
|
||||||
NV_LATENCY_MARKER_PARAMS params = {};
|
NvAPI_D3D_SetLatencyMarker(device, ¶ms);
|
||||||
params.version = NV_LATENCY_MARKER_PARAMS_VER1;
|
}
|
||||||
params.frameID = frameID;
|
|
||||||
params.markerType = markerType;
|
|
||||||
|
|
||||||
NvAPI_D3D_SetLatencyMarker(device, ¶ms);
|
// PCLStats is supported on non-NVIDIA hardware.
|
||||||
PCLSTATS_MARKER(markerType, frameID);
|
PCLSTATS_MARKER(markerType, frameID);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user