pilka
pilka copied to clipboard
wgpu: Add internal threadpool
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.