summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-02-23 19:06:59 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-02-23 19:08:24 -0300
commitaae399c1a8496875813e4dc9bbdf5b6ac915295a (patch)
tree081dc2c6732831e4309199dfc4c138f9eaf7a9e2
parentae876ed0476c8d40185c28d69113982bd9ac4043 (diff)
vk_command_pool: Reduce the command pool size from 4096 to 4
This allows drivers to reuse memory more easily and preallocate less. The optimal number has been measured booting Pokémon Sword.
-rw-r--r--src/video_core/renderer_vulkan/vk_command_pool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_command_pool.cpp b/src/video_core/renderer_vulkan/vk_command_pool.cpp
index a99df9323..d8e92ac0e 100644
--- a/src/video_core/renderer_vulkan/vk_command_pool.cpp
+++ b/src/video_core/renderer_vulkan/vk_command_pool.cpp
@@ -10,7 +10,7 @@
namespace Vulkan {
-constexpr size_t COMMAND_BUFFER_POOL_SIZE = 0x1000;
+constexpr size_t COMMAND_BUFFER_POOL_SIZE = 4;
struct CommandPool::Pool {
vk::CommandPool handle;