ci / build (push) Successful in 6m16s
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. 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. 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. There are unfortunately still a few edge cases where this is not true. Co-authored-by: rdh <me@rdh540.dev> Assisted-by: Claude Fable 5.1 Reviewed-on: #41 Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>