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

[d3d11] Reset implicit flush timer only when actually flushing

In some situations, calling Flush without any commands that
could be flushed would unnecessarily prevent the implicit
flush heuristic from kicking in properly.
This commit is contained in:
Philip Rebohle 2018-07-09 20:31:54 +02:00
parent 43cbe42ea8
commit 87b5161b2a
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -103,11 +103,10 @@ namespace dxvk {
FlushCsChunk();
}
// Reset optimization info
m_csIsBusy = false;
// Reset flush timer used for implicit flushes
m_lastFlush = std::chrono::high_resolution_clock::now();
m_csIsBusy = false;
}
}