You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Establish trustworthy LOD-specific measurements before changing CPU/GPU ownership. This phase is the dependency for every later optimization.
Current evidence
The current benchmark aggregates the whole renderer, while LOD work spans LODManager.update, worker generation/meshing, LODRenderer, Vulkan uploads, cache I/O, and deferred destruction. We cannot yet attribute frame time or memory specifically to distant terrain.
Parallel workstreams
Add CPU timings for scheduling/state scans, terrain sampling, mesh construction, visibility/coverage checks, cache load/store, upload preparation, and lock wait/hold time.
Add GPU timestamp scopes for LOD opaque terrain and LOD water, separate from normal chunks.
Track LOD regions by state/level, draws, vertices, visible/rejected counts, coverage checks, upload bytes, pending CPU bytes, GPU pool/direct-buffer bytes, deferred deletion bytes, and pool growth/compaction.
Count and identify runtime waitIdle calls and staging-pressure events.
Define reproducible stationary, traversal, rapid-turn, and teleport/eviction scenarios.
Capture visual baselines for seams, transitions, water, fog, and full-detail handoff.
Goal
Establish trustworthy LOD-specific measurements before changing CPU/GPU ownership. This phase is the dependency for every later optimization.
Current evidence
The current benchmark aggregates the whole renderer, while LOD work spans
LODManager.update, worker generation/meshing,LODRenderer, Vulkan uploads, cache I/O, and deferred destruction. We cannot yet attribute frame time or memory specifically to distant terrain.Parallel workstreams
waitIdlecalls and staging-pressure events.Relevant code
modules/world-lod/src/lod_manager_core_ops.zigmodules/world-lod/src/lod_manager_generation_ops.zigmodules/world-lod/src/lod_renderer.zigmodules/world-lod/src/lod_manager_upload_ops.zigmodules/world-lod/src/lod_manager_eviction_ops.zigmodules/engine-graphics/src/vulkan/src/lod_bench_main.zigAcceptance criteria
Validation
Run
nix develop --command zig build test,nix develop --command zig build lod-bench, and boundedzig build benchmarkscenarios. Record hardware, preset, render distance, seed, duration, and build mode.