[dxvk] Increased queued command submission limit

Potentially reduces the number of sync points when a game
is primarily GPU limited. Improves performance in Nier by
a few frames per second.
This commit is contained in:
Philip Rebohle 2018-01-14 11:23:14 +01:00
parent e05c961b9e
commit 86db5aab67
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ namespace dxvk {
MaxNumViewports = 16,
MaxNumResourceSlots = 1096,
MaxNumActiveBindings = 128,
MaxNumQueuedCommandBuffers = 8,
};
}

View File

@ -26,7 +26,7 @@ namespace dxvk {
{ std::unique_lock<std::mutex> lock(m_mutex);
m_condOnTake.wait(lock, [this] {
return m_entries.size() < 4;
return m_entries.size() < MaxNumQueuedCommandBuffers;
});
m_entries.push({ fence, cmdList });