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

WebGPU compute is broken on firefox nightly, and chrome / dawn has too severe of buffer limits: cannot run axon on web yet #1355

Open
rcoreilly opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working correctly confirmed This bug has been confirmed

Comments

@rcoreilly
Copy link
Member

rcoreilly commented Dec 4, 2024

Describe the bug

This is a tracking issue for issues running axon simulations under GPU on web browsers.

Firefox

Firefox nightly has webgpu support, and it is built on top of the rust wgpu that we successfully use in native mode: https://github.com/gfx-rs/wgpu

Unfortunately, it has a severe performance bug in mapAsync that makes it unusuable:

gpu/examples/compute has timing that demonstrates the bug.

Chrome

Chrome has production webgpu enabled, but it enforces an (unnecessary) limit of 10 buffers per stage, while axon requires 24.

Otherwise, on the compute example it is just as fast as wgpu native.

Safari

Production safari can enable webgpu in developer settings / feature flags, but it doesn't even work for basic graphics.

Technology preview does better, mostly working with the 2D Draw graphics, but the 3D netview is glitchy

The gpu/examples/compute runs, is 2x slower overall but the mapAsync part is reasonably fast / comparable to native.

How to reproduce

run axon/examples/ra25 using core run web

Example code

No response

Relevant output

No response

Platform

macOS

@rcoreilly rcoreilly added the bug Something isn't working correctly label Dec 4, 2024
@github-project-automation github-project-automation bot moved this to Todo in Bugs Dec 4, 2024
@kkoreilly kkoreilly added the confirmed This bug has been confirmed label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly confirmed This bug has been confirmed
Projects
Status: Todo
Development

No branches or pull requests

2 participants