mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
D3D11Device: Don't spin on CPU when GPU results aren't available
This commit is contained in:
parent
2ff1f398a3
commit
547587af11
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue