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

Handling multi-threaded WebGPU #21

Open
greggman opened this issue Dec 12, 2022 · 0 comments
Open

Handling multi-threaded WebGPU #21

greggman opened this issue Dec 12, 2022 · 0 comments

Comments

@greggman
Copy link
Collaborator

I'm curious if we can think of a way to support multi-threaded WebGPU. Basically I don't want to find that the only way to debug multi-threaded WebGPU is to NOT use this debugger 😅 Or to put another way, I'd be nice to avoid this code becoming obsolete if and when WebGPU supports multi-threading.

I can't really imagine an efficient way to do it though. Could put the capture in a worker and send messages for each cmd, would make debugging slow but at least it would let you capture all the commands in one place. Unfortunately it would also affect timing so race bugs that show up without the debugger might disappear with it.

I suppose another option is to turn this into a devtools extension and have the capture portion be built into the browser. It's nice not to have to wait for all the browser to support something though so if we can manage to get multi-threaded debugging to work from JS alone that would be great!

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

No branches or pull requests

1 participant