pilka icon indicating copy to clipboard operation
pilka copied to clipboard

wgpu: Add internal threadpool

Open pudnax opened this issue 2 years ago • 0 comments

Reading from the device buffer in wgpu is an async task. And for decent video recording I'm thinking of adding thread pool and pushing tasks in it for resolving. But I'm losing ordering this way. First idea that come to my mind is attaching frame number to the task and when it's ready I send it to the another thread with channel. On the other end receiving bytes+frame number to BinaryHeap restoring the right ordering.

pudnax avatar Oct 23 '21 06:10 pudnax