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

Multithread AABB drawing #9

Open
scallyw4g opened this issue Jun 4, 2023 · 0 comments
Open

Multithread AABB drawing #9

scallyw4g opened this issue Jun 4, 2023 · 0 comments

Comments

@scallyw4g
Copy link
Owner

scallyw4g commented Jun 4, 2023

Because the actual operation of buffering an AABB is quite cheap, we'll need to pack a lot of the operations together. Doing this amortizes the cost of the worker thread starting up the job, which is also cheap, but not free.

We probably want to go with a two-step approach:

  1. Start with creating a thread job that just buffers a single AABB
  2. Make a job that packs multiple of those jobs togetherj

There's an example of doing this already; grep for work_queue_entry_copy_buffer_set

Alternatively, we could implement instanced drawing, which is probably what we should actually do..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant