1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 19:24:12 +01:00

[d3d11] Reset busy flag after emitting the Flush command

Fixes a general performance regression in games
that call WaitForResources a lot.
This commit is contained in:
Philip Rebohle 2018-03-23 11:54:19 +01:00
parent e6d93d6cfb
commit 0a2fa590f5
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -49,9 +49,6 @@ namespace dxvk {
m_parent->FlushInitContext(); m_parent->FlushInitContext();
if (m_csIsBusy || m_csChunk->commandCount() != 0) { if (m_csIsBusy || m_csChunk->commandCount() != 0) {
m_csIsBusy = false;
m_drawCount = 0;
// Add commands to flush the threaded // Add commands to flush the threaded
// context, then flush the command list // context, then flush the command list
EmitCs([dev = m_device] (DxvkContext* ctx) { EmitCs([dev = m_device] (DxvkContext* ctx) {
@ -64,6 +61,10 @@ namespace dxvk {
}); });
FlushCsChunk(); FlushCsChunk();
// Reset optimization info
m_drawCount = 0;
m_csIsBusy = false;
} }
} }