Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allocate smaller WebGPU dynamic buffers #6682

Merged
merged 1 commit into from
Jun 11, 2024
Merged

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Jun 10, 2024

  • allocate more smaller dynamic buffers instead of smaller number of large buffers (100kB instead of 1MB)
  • now that the dynamic buffers offset use has been reworked to avoid BindGroup reallocation when different buffer is used, this has no negative impact on performance, but allows us to save memory.
  • specifically in the Hierarchy engine example, before this change, just over 10MB of dynamic buffers were allocated over time, now around 6MB buffers are allocated.

This might help with #6676, even though the spec does not specify any special limits for Staging buffers.

@mvaligursky mvaligursky merged commit 31aa18b into main Jun 11, 2024
8 checks passed
@mvaligursky mvaligursky deleted the mv-dyn-buffer-size branch June 11, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants