D3D11Device: Don't spin on CPU when GPU results aren't available

This commit is contained in:
Stenzek 2024-05-25 16:13:05 +10:00
parent 2ff1f398a3
commit 547587af11
No known key found for this signature in database

View file

@ -787,6 +787,11 @@ void D3D11Device::PopTimestampQuery()
m_read_timestamp_query = (m_read_timestamp_query + 1) % NUM_TIMESTAMP_QUERIES; m_read_timestamp_query = (m_read_timestamp_query + 1) % NUM_TIMESTAMP_QUERIES;
m_waiting_timestamp_queries--; m_waiting_timestamp_queries--;
} }
else
{
// Data not ready yet.
break;
}
} }
} }