From 86db5aab675b9dbd57c5765f293c22267df6fe7a Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 14 Jan 2018 11:23:14 +0100 Subject: [PATCH] [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. --- src/dxvk/dxvk_limits.h | 1 + src/dxvk/dxvk_queue.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_limits.h b/src/dxvk/dxvk_limits.h index 617501dd..22865bbe 100644 --- a/src/dxvk/dxvk_limits.h +++ b/src/dxvk/dxvk_limits.h @@ -12,6 +12,7 @@ namespace dxvk { MaxNumViewports = 16, MaxNumResourceSlots = 1096, MaxNumActiveBindings = 128, + MaxNumQueuedCommandBuffers = 8, }; } \ No newline at end of file diff --git a/src/dxvk/dxvk_queue.cpp b/src/dxvk/dxvk_queue.cpp index a09d76d8..483f4f63 100644 --- a/src/dxvk/dxvk_queue.cpp +++ b/src/dxvk/dxvk_queue.cpp @@ -26,7 +26,7 @@ namespace dxvk { { std::unique_lock lock(m_mutex); m_condOnTake.wait(lock, [this] { - return m_entries.size() < 4; + return m_entries.size() < MaxNumQueuedCommandBuffers; }); m_entries.push({ fence, cmdList });