Skip to content

Commit

Permalink
[dxvk] Increase update buffer size
Browse files Browse the repository at this point in the history
Helps reduce the number of memory allocations further
when deferred contexts are used for rendering.
  • Loading branch information
doitsujin committed May 13, 2018
1 parent 9d4654f commit c17f4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d11/d3d11_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3007,7 +3007,7 @@ namespace dxvk {


DxvkDataSlice D3D11DeviceContext::AllocUpdateBufferSlice(size_t Size) {
constexpr size_t UpdateBufferSize = 4 * 1024 * 1024;
constexpr size_t UpdateBufferSize = 16 * 1024 * 1024;

if (Size >= UpdateBufferSize) {
Rc<DxvkDataBuffer> buffer = new DxvkDataBuffer(Size);
Expand Down

0 comments on commit c17f4e2

Please sign in to comment.