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

View File

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