From 5dc1167fa88cad4e1c32d7801497cbe768c1d8d3 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 26 May 2024 12:35:23 +1000 Subject: [PATCH] GS/DX11: Don't spin on CPU when GPU results aren't available Backport of https://github.com/stenzek/duckstation/commit/547587af111506376f3ab2ea0d4805d481bd0880 --- pcsx2/GS/Renderers/DX11/GSDevice11.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcsx2/GS/Renderers/DX11/GSDevice11.cpp b/pcsx2/GS/Renderers/DX11/GSDevice11.cpp index e08825528a..6d5a6ee246 100644 --- a/pcsx2/GS/Renderers/DX11/GSDevice11.cpp +++ b/pcsx2/GS/Renderers/DX11/GSDevice11.cpp @@ -1051,6 +1051,10 @@ void GSDevice11::PopTimestampQuery() m_read_timestamp_query = (m_read_timestamp_query + 1) % NUM_TIMESTAMP_QUERIES; m_waiting_timestamp_queries--; } + else + { + break; + } } }