From b5078a7ec0e9a5c25c068ce1ce36d625f82acbfd Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 14 Feb 2022 01:01:34 +0100 Subject: [PATCH] [dxvk] Reduce context staging buffer size to 4 MiB Same idea as before, just create a temporary buffer for larger resources. This can avoid frequent Vulkan memory allocations and deallocations since many small buffers are more likely to fit into a single memory chunk than a small number of large buffers, thus reducing the overall memory footprint. --- src/dxvk/dxvk_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_context.h b/src/dxvk/dxvk_context.h index 9456b4e6..9a4e74d9 100644 --- a/src/dxvk/dxvk_context.h +++ b/src/dxvk/dxvk_context.h @@ -19,7 +19,7 @@ namespace dxvk { * recorded. */ class DxvkContext : public RcObject { - constexpr static VkDeviceSize StagingBufferSize = 32ull << 20; + constexpr static VkDeviceSize StagingBufferSize = 4ull << 20; public: DxvkContext(const Rc& device);