Skip to content

Commit

Permalink
Allocate smaller WebGPU dynamic buffers (#6682)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky committed Jun 11, 2024
1 parent b66533c commit 31aa18b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/graphics/webgpu/webgpu-graphics-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ class WebgpuGraphicsDevice extends GraphicsDevice {

this.gpuProfiler = new WebgpuGpuProfiler(this);

// init dynamic buffer using 1MB allocation
this.dynamicBuffers = new WebgpuDynamicBuffers(this, 1024 * 1024, this.limits.minUniformBufferOffsetAlignment);
// init dynamic buffer using 100kB allocation
this.dynamicBuffers = new WebgpuDynamicBuffers(this, 100 * 1024, this.limits.minUniformBufferOffsetAlignment);

// empty bind group
this.emptyBindGroup = new BindGroup(this, new BindGroupFormat(this, []));
Expand Down

0 comments on commit 31aa18b

Please sign in to comment.