Renderer and tick performance: section arena with indirect multi-draw, dense occlusion graph, entity ticking within the simulation distance, fast chunk-map hashing
- Terrain sections live in one vertex arena (first-fit free list, grown on the GPU) and draw with one multi_draw_indexed_indirect per pass instead of a buffer bind and draw per section; per-frame scratch vectors are reused. - The SectionOcclusionGraph search runs over dense arrays around the camera instead of hash sets, with per-column visibility. - Mobs outside the entity-ticking chunks (Chebyshev distance of the simulation distance, DistanceManager.inEntityTickingRange) only check despawning, as in ServerLevel.tick; before, every loaded mob ticked. - World chunks use the Fx hash; sky darkening is sampled once per time and weather instead of once per mob; creaking-heart scans compare state ids. - Horizon-only graphics settings (horizon-graphics.txt): frame pacing without spinning, present mode, animated textures, worker threads. RD 32 village flight on the 4080: 3.1 -> 81 fps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -130,7 +130,7 @@ def main():
|
||||
p.add_argument("--build", default=str(ROOT / "target/release"))
|
||||
p.add_argument("--out", help="JSON file (default benchmarks/graphics/<label>.json)")
|
||||
args = p.parse_args()
|
||||
ctl = Path(args.build) / "horizon-ctl"
|
||||
ctl = Path(args.build).resolve() / "horizon-ctl"
|
||||
if not ctl.exists():
|
||||
sys.exit(f"{ctl} missing: cargo build --release -p horizon-client --bins")
|
||||
cwd = ROOT / ".local/graphics-bench"
|
||||
|
||||
Reference in New Issue
Block a user