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:
parent
e6d93d6cfb
commit
0a2fa590f5
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user