[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.
This commit is contained in:
Philip Rebohle 2022-02-14 01:01:34 +01:00
parent 08ecd49c66
commit b5078a7ec0
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 1 additions and 1 deletions

View File

@ -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<DxvkDevice>& device);