Map 3D: cull the meshes of few-placement models one by one #485
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!485
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-485"
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:11 UTC · original
holdmysocks:six-map3d-meshcull→master· +144 −3 · 3 files · 1 commits · merged 2026-11-27 18:43 UTCThe city views' coverage fallbacks (coarse SLOD tiles drawn near the camera where nothing finer covers the ground) cost 400 to 970 draws a frame. They are whole-area tiles, so the camera sits inside or next to them and many of their meshes are behind it or off to the side, but every mesh was drawn. The same holds for the busiest normally drawn models: SLOD tiles and buildings with one placement and 50 to 110 meshes.
What changes:
meshes culled [main, fallbacks, shadows].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):
Draws fall by 630 to 680 per frame in every view. Encoder finish time drops 270 to 660 µs; pass time rises in three views (the sphere tests), by less than finish falls in two of them. GPU time is unchanged within noise. In a 30 s fly from s3 the mean frame time falls from 26.8 to 22.1 ms (p99 55.6 to 46.2 ms, frames over 33 ms 13.0 % to 5.2 %).
Images: s3, dtst and wide match master (at most 6 pixels over 16 levels, none at the image border). At rs the freed draw budget lets more detail load (1171 models instead of 952), so small props such as café furniture and rooftop units show, with their shadows. Nothing is missing at the edges, and there are no shadow holes, in the still views or the fly.