[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
1 changed files with 3 additions and 4 deletions

View File

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