mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-30 13:24:10 +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:
parent
43cbe42ea8
commit
87b5161b2a
@ -103,11 +103,10 @@ namespace dxvk {
|
|||||||
|
|
||||||
FlushCsChunk();
|
FlushCsChunk();
|
||||||
|
|
||||||
}
|
// Reset flush timer used for implicit flushes
|
||||||
|
|
||||||
// Reset optimization info
|
|
||||||
m_csIsBusy = false;
|
|
||||||
m_lastFlush = std::chrono::high_resolution_clock::now();
|
m_lastFlush = std::chrono::high_resolution_clock::now();
|
||||||
|
m_csIsBusy = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user