1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 04:24:11 +01:00

[dxvk] Don't mark queries as stalling if DONOTFLUSH is set

This commit is contained in:
Philip Rebohle 2019-07-15 16:24:09 +02:00
parent 362ecf1e0e
commit ad8fdcac07
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -80,9 +80,15 @@ namespace dxvk {
HRESULT hr = query->GetData(pData, GetDataFlags);
// If we're likely going to spin on the asynchronous object,
// flush the context so that we're keeping the GPU busy
// flush the context so that we're keeping the GPU busy.
if (hr == S_FALSE) {
query->NotifyStall();
// Don't mark the event query as stalling if the app does
// not intend to spin on it. This reduces flushes on End.
if (!(GetDataFlags & D3D11_ASYNC_GETDATA_DONOTFLUSH))
query->NotifyStall();
// Ignore the DONOTFLUSH flag here as some games will spin
// on queries without ever flushing the context otherwise.
FlushImplicit(FALSE);
}