mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[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:
parent
08ecd49c66
commit
b5078a7ec0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user