mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-03 07:29:14 +01:00
[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:
parent
e05c961b9e
commit
86db5aab67
@ -12,6 +12,7 @@ namespace dxvk {
|
|||||||
MaxNumViewports = 16,
|
MaxNumViewports = 16,
|
||||||
MaxNumResourceSlots = 1096,
|
MaxNumResourceSlots = 1096,
|
||||||
MaxNumActiveBindings = 128,
|
MaxNumActiveBindings = 128,
|
||||||
|
MaxNumQueuedCommandBuffers = 8,
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
@ -26,7 +26,7 @@ namespace dxvk {
|
|||||||
{ std::unique_lock<std::mutex> lock(m_mutex);
|
{ std::unique_lock<std::mutex> lock(m_mutex);
|
||||||
|
|
||||||
m_condOnTake.wait(lock, [this] {
|
m_condOnTake.wait(lock, [this] {
|
||||||
return m_entries.size() < 4;
|
return m_entries.size() < MaxNumQueuedCommandBuffers;
|
||||||
});
|
});
|
||||||
|
|
||||||
m_entries.push({ fence, cmdList });
|
m_entries.push({ fence, cmdList });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user