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

Eliminate some redundant WebGPU buffer writes #227

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

rdw-software
Copy link
Member

Huh, this doesn't make any sense at all... The scenewide uniform data needs to be updated once per frame, not once per mesh. Perhaps this was supposed to be per-material or even per-mesh data, but I think it's just a copy/paste error.

Caught this thanks to tracing API calls, so etrace already paid off... These writes are wasteful and can safely be removed.

Huh, this doesn't make any sense at all... The scenewide uniform data needs to be updated once per frame, not once per mesh. Perhaps this was supposed to be per-material or even per-mesh data, but I think it's just a copy/paste error.

Caught this thanks to tracing API calls, so `etrace` already paid off... These writes are wasteful and can safely be removed.
@rdw-software rdw-software merged commit ee62f25 into main Dec 15, 2023
5 checks passed
@rdw-software rdw-software deleted the redundant-buffer-writes branch December 15, 2023 18:24
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.

1 participant