-
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,
wgpu
supports 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 ofwgpu
also currently have more exclusive locking than is ideal, if I understand correctly. None of this prevents you from usingwgpu
from 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.