From 547587af111506376f3ab2ea0d4805d481bd0880 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 25 May 2024 16:13:05 +1000 Subject: [PATCH] D3D11Device: Don't spin on CPU when GPU results aren't available --- src/util/d3d11_device.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/d3d11_device.cpp b/src/util/d3d11_device.cpp index 7a6698c16..9d23a627d 100644 --- a/src/util/d3d11_device.cpp +++ b/src/util/d3d11_device.cpp @@ -787,6 +787,11 @@ void D3D11Device::PopTimestampQuery() m_read_timestamp_query = (m_read_timestamp_query + 1) % NUM_TIMESTAMP_QUERIES; m_waiting_timestamp_queries--; } + else + { + // Data not ready yet. + break; + } } }