-
|
Hi guys, i'm planning to develop an app which has a few threads: UI / video player / rendering. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
As long as you're not actually running your application in a web page, |
Beta Was this translation helpful? Give feedback.
As long as you're not actually running your application in a web page,
wgpusupports use from multiple threads. The caveat is that there is currently only oneQueue, so work cannot actually be submitted to the GPU truly in parallel; there will be some unnecessary synchronization. The internals ofwgpualso currently have more exclusive locking than is ideal, if I understand correctly. None of this prevents you from usingwgpufrom multiple threads; it just will not be as high-performance as it theoretically could be. And, of course, the GPU itself is still doing its actual work asynchronously.