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

wgpu: Add internal threadpool #46

Open
pudnax opened this issue Oct 23, 2021 · 0 comments
Open

wgpu: Add internal threadpool #46

pudnax opened this issue Oct 23, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@pudnax
Copy link
Owner

pudnax commented Oct 23, 2021

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 pudnax added the enhancement New feature or request label Oct 23, 2021
@pudnax pudnax self-assigned this Oct 23, 2021
@pudnax pudnax added this to To do in Pilka via automation Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Pilka
To do
Development

No branches or pull requests

1 participant