Map 3D: join map-cell batches into fewer draws #475
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!475
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-475"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-27 14:23 UTC · original
holdmysocks:six-map3d-celldraws→master· +86 −8 · 3 files · 1 commits · merged 2026-11-27 14:54 UTCMap cells drew one call per batch, and a batch is one (distance group, texture chunk, pass). In the city views that was 345 to 676 cell batches a frame in the main pass, plus the same again in each shadow cascade, each with its own texture bind group.
What changes:
The draw budget counts calls, so fewer cell calls leave room for more model detail in views where draws were the limit.
Results (RTX 3090, master vs this PR, four city views, path off, 16 runs, no validation errors; the cells unit tests pass):
Cells drawn, cell batches and model draws are the same on both, so the whole drop is cell draws: 54 to 165 fewer in the main pass and 72 to 136 fewer in shadows. CPU and GPU times move within noise (the 1556 µs submit before at s3 is an outlier) and VRAM is unchanged. Images are pixel-equal at s3, dtst and wide. rs differs by 0.25 % because it settles into one of a few prop-trim states on either build; each build matches the earlier run in the same state.