Aggressively optimize multidraw command emission #32

Merged
embeddedt merged 5 commits from command-emit-opts into stonecutter 2026-08-11 18:46:23 -04:00
Owner

This consists of multiple core architectural changes:

  • Unsorted passes now use a more compact memory layout in SectionRenderDataUnsafe
  • Runs of consecutive visible facings are merged into single draw commands (supersedes #31)
  • Command assembly now uses multiple specialized loops depending on the region's properties, with computations that were previously per-section hoisted as far as possible
  • Iterator allocations and virtual dispatch are avoided

One casualty is that the indirect multidraw emitter is likely slightly less efficient as a result of allowing higher-level code to exclusively work with MultiDrawBatch.

This consists of multiple core architectural changes: - Unsorted passes now use a more compact memory layout in SectionRenderDataUnsafe - Runs of consecutive visible facings are merged into single draw commands (supersedes #31) - Command assembly now uses multiple specialized loops depending on the region's properties, with computations that were previously per-section hoisted as far as possible - Iterator allocations and virtual dispatch are avoided One casualty is that the indirect multidraw emitter is likely slightly less efficient as a result of allowing higher-level code to exclusively work with MultiDrawBatch.
embeddedt added 1 commit 2026-07-31 22:00:53 -04:00
This consists of multiple core architectural changes:

- Unsorted passes now use a more compact memory layout in SectionRenderDataUnsafe
- Runs of consecutive visible facings are merged into single draw commands (supersedes #31)
- Command assembly now uses multiple specialized loops depending on the region's properties, with computations that were previously per-section hoisted as far as possible
- Iterator allocations and virtual dispatch are avoided

One casualty is that the indirect multidraw emitter is likely slightly less efficient as a result of allowing higher-level code to exclusively work with MultiDrawBatch.
rdh added 1 commit 2026-08-09 23:50:51 -04:00
coalesce more adjacent multidraw commands
ci / build (push) Successful in 2m31s
d34a4f6e2a
rdh added 1 commit 2026-08-10 00:15:21 -04:00
compact unsorted render data
ci / build (push) Successful in 2m37s
ea12c39da3
embeddedt added 1 commit 2026-08-10 21:44:01 -04:00
Refactor Strategy APIs a bit
ci / build (push) Successful in 2m56s
52d5989258
embeddedt added 1 commit 2026-08-11 18:46:00 -04:00
embeddedt merged commit a517fb5cd3 into stonecutter 2026-08-11 18:46:23 -04:00
embeddedt deleted branch command-emit-opts 2026-08-11 18:46:23 -04:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: embeddedt/celeritas#32