Map 3D: cull decal and see-through meshes one by one too #491
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!491
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-491"
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 18:49 UTC · original
holdmysocks:six-map3d-latecull→master· +45 −17 · 3 files · 1 commits · merged 2026-11-27 19:23 UTC#485 culls the opaque, fallback and shadow meshes of models placed at most 8 times, one by one. Decal and see-through meshes were left out, and they make 680 to 1,550 draws a frame in the city views.
What changes:
meshes culled [main, fb, shadow, late] [..], where late is decal and see-through.Results (RTX 3090, master vs this PR, four city views plus a 30 s fly, path off, 18 runs, no panics or validation errors; the cull, order and cells unit tests pass):
The decal and see-through draws fall by exactly the number of meshes culled, so the cull never split a draw. Opaque, fallback and shadow draws are unchanged. Encoder finish time drops 500 to 960 µs in every view; GPU time moves within noise and VRAM is unchanged. In a 30 s fly from s3 the mean frame time falls from 21.4 to 19.4 ms (p99 41.9 to 38.3 ms, frames over 33 ms 4.9 % to 2.3 %).
Images: s3, dtst and rs match master exactly; wide differs in 19 isolated far pixels (0.002 %). No road markings, crossings, grime, glass or water go missing at the screen edges, and the fly shows no pop-in.