Adaptive raster culling #41

Merged
embeddedt merged 9 commits from adaptive-raster-culling into stonecutter 2026-09-17 10:10:54 -04:00
9 Commits
Author SHA1 Message Date
embeddedt d9bbfd5f57 Keep raster disabled by default
ci / build (push) Successful in 6m15s
2026-09-17 10:08:28 -04:00
embeddedt 441443e310 Decide raster budget probes by sections removed rather than yield
ci / build (push) Successful in 6m2s
A cull also hides the search behind it, so yield cannot tell gentle hills, where a full pass barely pays for its tests, from terrain where it removes far more.
2026-09-16 13:57:49 -04:00
embeddedt 590e808b80 Reuse raster buffer arrays when the buffer shrinks and grows again
The raster budget's probes alternate between a small buffer and a large one, which reallocated both every time.
2026-09-16 13:57:49 -04:00
rdh 91184716c2 Bound the raster budget ceiling by the cylindrical search distance 2026-09-16 13:57:49 -04:00
rdh a0adff5158 Require the current frame's yield too before doubling the raster limit 2026-09-16 13:57:49 -04:00
rdh 7aea4244b6 Probe past the raster budget's limit every 64 frames 2026-09-16 13:57:49 -04:00
rdh ca420217e6 Add CLIFF bench world 2026-09-16 13:57:49 -04:00
rdh 1f9a13729a fix headless gl init for weird systems like macos 2026-09-16 13:57:49 -04:00
embeddedt 40eab968c3 Scale rasterized occlusion cost with what it culls
The raster was all-or-nothing: on open terrain it doubled the search
time and hid nothing. RasterBudget now limits how far from the camera
sections are tested and drawn, and grows or shrinks that limit each
frame from the fraction of tests that culled. Where the raster earns
its keep the search is identical to before; where it doesn't, the cost
drops to a small standing probe.

The coverage buffer is sized to the tested distance rather than the
render distance, so the probe draws into a much smaller buffer.

The option now defaults to on. Bench gains PLAINS/HILLS worlds where
the raster culls nothing, a budgeted column with timings, and a
transition trace between worlds. The report tasks read -Dreport.*
through a tracked provider so they work with the configuration cache.
2026-09-16 13:57:49 -04:00