Currently, rasterized occlusion culling costs the same amount of CPU time regardless of how much geometry it manages to remove. This algorithm attempts to make its cost proportional to the benefit, so raster culling can default to on.
RasterBudget sets a distance limit each frame. Sections inside it use rasterized occlusion culling. Sections beyond it are simply treated as visible by the raster system. After each frame, the limit doubles if raster culled enough sections and halves if not enough did. Otherwise, it stays the same. If it reaches the render distance, the search is exactly the same as the old full pass.
Numbers (search time per frame, rd 32, synthetic worlds):
Scene
No raster
Old raster
Adaptive
Old raster culls
Open plains
0.31 ms
0.62 ms
0.37 ms
0%
Hills, no caves
0.31 ms
0.65 ms
0.41 ms
3%
Forest over caves
0.46 ms
0.74 ms
0.74 ms
27%
Cave
0.09 ms
0.06 ms
0.06 ms
99%
In general, where rasterization helps, adaptive matches the old always-on approach in both culling and cost. Where it doesn't, adaptive pays roughly a fifth of the old overhead.
This technique is due to Claude Fable 5.1.
Currently, rasterized occlusion culling costs the same amount of CPU time regardless of how much geometry it manages to remove. This algorithm attempts to make its cost proportional to the benefit, so raster culling can default to on.
RasterBudget sets a distance limit each frame. Sections inside it use rasterized occlusion culling. Sections beyond it are simply treated as visible by the raster system. After each frame, the limit doubles if raster culled enough sections and halves if not enough did. Otherwise, it stays the same. If it reaches the render distance, the search is exactly the same as the old full pass.
Numbers (search time per frame, rd 32, synthetic worlds):
| Scene | No raster | Old raster | Adaptive | Old raster culls |
| ----------------- | --------- | ---------- | -------- | ---------------- |
| Open plains | 0.31 ms | 0.62 ms | 0.37 ms | 0% |
| Hills, no caves | 0.31 ms | 0.65 ms | 0.41 ms | 3% |
| Forest over caves | 0.46 ms | 0.74 ms | 0.74 ms | 27% |
| Cave | 0.09 ms | 0.06 ms | 0.06 ms | 99% |
In general, where rasterization helps, adaptive matches the old always-on approach in both culling and cost. Where it doesn't, adaptive pays roughly a fifth of the old overhead.
This technique is due to Claude Fable 5.1.
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.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Currently, rasterized occlusion culling costs the same amount of CPU time regardless of how much geometry it manages to remove. This algorithm attempts to make its cost proportional to the benefit, so raster culling can default to on.
RasterBudget sets a distance limit each frame. Sections inside it use rasterized occlusion culling. Sections beyond it are simply treated as visible by the raster system. After each frame, the limit doubles if raster culled enough sections and halves if not enough did. Otherwise, it stays the same. If it reaches the render distance, the search is exactly the same as the old full pass.
Numbers (search time per frame, rd 32, synthetic worlds):
In general, where rasterization helps, adaptive matches the old always-on approach in both culling and cost. Where it doesn't, adaptive pays roughly a fifth of the old overhead.
This technique is due to Claude Fable 5.1.
c1cc6cf284to441443e310