Kawe Mazidjatari 4927654da0 Bugfix: only run NVIDIA Reflex if we ran an actual engine frame
CEngine::Frame() tends to return out early if we are ahead of frame time, and therefore need to sleep. In this particular engine, CEngine::Frame() returns true if it had actually executed an engine frame, else it returns false.

Therefore, we end up calling 'NvAPI_D3D_Sleep()' multiple times a frame, and thus causing a major loss in performance. Now we check if we have actually ran a frame (incrementing reflex frame if so). If the frame was not incremented, but 'GFX_RunLowLatencyFrame()' was called, it will not call 'NvAPI_D3D_Sleep()'.

Code has been tested and appears to work on my system (never called twice or more per frame). Needs more testing on other systems to make sure its good.
2023-09-12 20:50:38 +02:00
..
2023-09-12 17:13:12 +02:00
2023-08-31 00:16:25 +02:00
2023-07-22 21:15:01 +02:00
2023-08-04 10:49:39 +02:00
2023-09-05 17:34:22 +02:00
2023-09-05 17:34:22 +02:00
2022-10-23 23:47:27 +02:00
2023-01-25 02:26:52 +01:00
2023-01-25 02:26:52 +01:00
2023-01-25 02:26:52 +01:00
2022-04-18 03:35:24 +02:00
2023-01-25 02:26:52 +01:00
2023-06-18 22:16:43 +02:00
2023-08-31 00:16:25 +02:00
2023-02-19 09:43:12 +01:00
2023-01-25 02:26:52 +01:00
2023-01-22 16:48:16 +01:00
2023-01-25 02:26:52 +01:00
2023-08-21 16:28:04 +02:00
2023-07-11 08:42:02 +02:00
2023-05-10 00:05:38 +02:00
2023-06-19 13:53:56 +02:00
2023-09-11 20:38:18 +02:00
2023-07-22 21:14:04 +02:00