Repository navigation
Conversation
The per-axis store, winner election and colour pass ran through the general stage-1/stage-2 kernels, selected at run time by perAxisRoute and resolveMode, on the 2x3xN voxel lattice: six invocations per list entry on Metal and 48 on OpenGL, of which four fail the axis test and two repeat one tap. Each per-axis pass is now its own IR_PER_AXIS_PASS variant of the shared bodies (store, election, colour, and the existing overflow append) that launches one invocation per entry in 1-D groups of 64. The compact writes those dimensions and every variant decodes its entry through the shared ir_voxel_dispatch helpers; the entry's face is the visible slot on the list's axis, so the store, election and colour pass keep one face and one cell per entry (the occupied-cell store reset depends on it). The general kernels compile with the per-axis code absent, and no shader reads resolveMode, which stays a reserved field. Million control at 45 degrees, Metal Release: GPU frame envelope 10.61 -> 8.87 ms over five guarded pairs; images are byte-identical base to head. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Parked
After #4960 merges: rebase onto master. Put #5101's — worker (pool-3) |
Perf gateHead host slug: perf comparison: ea61318 → c6c802e-cibaseline: host calibration
thresholds: regress ≥ 10%, improve ≥ 5% voxel cull effectiveness
frame timing (ms)
GPU frame timing (ms; separate from stage samples)
GPU stage timing (avg ms per sampled invocation)
top CPU systems by avg ms (head)
|
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
221.614 → 230.942 (+4.2%) |
| RENDER | ComputeLightVolume |
32.776 → 31.881 (-2.7%) |
| RENDER | ComputeSunShadow |
16.312 → 16.243 (-0.4%) |
| RENDER | CanvasToFramebuffer |
15.157 → 15.054 (-0.7%) |
| RENDER | BakeSunShadowMap |
7.768 → 7.767 (-0.0%) |
| UPDATE | FogRevealEval |
3.244 → 4.511 (+39.1%) ⚠ |
| UPDATE | PropagateTransform |
3.750 → 3.990 (+6.4%) |
| RENDER | LightingToTrixel |
3.419 → 3.410 (-0.3%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
697.514 → 706.224 (+1.2%) |
| RENDER | ComputeSunShadow |
32.671 → 32.361 (-0.9%) |
| RENDER | ComputeLightVolume |
29.268 → 28.592 (-2.3%) |
| RENDER | CanvasToFramebuffer |
14.307 → 14.207 (-0.7%) |
| RENDER | LightingToTrixel |
7.151 → 7.024 (-1.8%) |
| RENDER | ComputeVoxelAO |
7.149 → 6.805 (-4.8%) |
| RENDER | BakeSunShadowMap |
6.664 → 6.461 (-3.0%) |
| UPDATE | FogRevealEval |
3.278 → 4.246 (+29.5%) ⚠ |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
235.226 → 278.174 (+18.3%) ⚠ |
| RENDER | ComputeSunShadow |
38.752 → 40.302 (+4.0%) |
| RENDER | ComputeLightVolume |
30.436 → 30.051 (-1.3%) |
| RENDER | LightingToTrixel |
19.417 → 20.014 (+3.1%) |
| RENDER | CanvasToFramebuffer |
15.402 → 15.459 (+0.4%) |
| RENDER | BakeSunShadowMap |
9.598 → 9.924 (+3.4%) |
| UPDATE | PropagateTransform |
5.394 → 5.251 (-2.7%) |
| RENDER | FogToTrixel |
4.567 → 4.623 (+1.2%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1045.059 → 1046.813 (+0.2%) |
| RENDER | ComputeSunShadow |
43.619 → 43.788 (+0.4%) |
| RENDER | ComputeLightVolume |
30.826 → 31.567 (+2.4%) |
| RENDER | CanvasToFramebuffer |
14.061 → 14.025 (-0.3%) |
| RENDER | BakeSunShadowMap |
6.511 → 6.588 (+1.2%) |
| RENDER | LightingToTrixel |
5.891 → 5.883 (-0.1%) |
| RENDER | ComputeVoxelAO |
5.813 → 5.786 (-0.5%) |
| UPDATE | PropagateTransform |
5.405 → 5.237 (-3.1%) |
Steward pointer: #4960 shipped (PR #5101,
|
Steward pointer: #4960 closed, park lifted (update to the 2026-11-20 pointer)
Master is now
— epic-steward |
Summary
While the camera yaws, the per-axis store, winner election and colour pass ran through the general stage kernels: mode picked by runtime uniforms, and each list entry launched on the 2×3×N voxel lattice (6 invocations on Metal, 48 on OpenGL). Each per-axis pass, the overflow append included, is now its own
IR_PER_AXIS_PASSkernel that launches one invocation per entry. The general kernels compile with no per-axis code. On the million control at 45° the GPU frame drops from 10.61 to 8.87 ms on Metal. Images are byte-identical.Screenshots
No visual change: nine-yaw IRCanvasStress 9 of 9, IRFogDemo edge-yaw 24 of 24 and IRPerfGrid sparse-reset frames 7 of 7 are RGB-identical base to head.
Acceptance evidence
python3 scripts/tests/test_render_voxel_dispatch_packing.pywritePerAxisDispatchDims/perAxisDispatchDimswriter and both stage decoders, GLSL and Metal, at counts 0, 1, 63/64/65, 65,535/65,536/65,537 (1024-group row spill) and 131,077. Each entry is visited once. The lost-row, duplicated-group, lost-tail and wrong-row-width mutations exit 3/3/4/5 as expectedresolveModereadergit grep resolveMode -- '*.glsl' '*.metal': declarations only. The per-axis block sits under#if IR_PER_AXIS_PASSin both bodies on both backendsIRCanvasStress --no-auto-rotate --no-spin --frozen-pose 0.47 --sweep-yaw 0 6.2831853 9 --auto-screenshot 6, base vs headpython3 scripts/render-verify.py --target <T> --no-buildIRFogDemo --edge-yaw-sweep --auto-screenshot 6, base vs headIRPerfGrid --wave-freeze --no-overlay --yaw 0 --yaw-step 0.05235987756 --capture-frame N, Releasea409dd8f09, f3e97275693a, f10d3891ba2e5test_render_overflow_append.py,_entry.py,_occlusion.py;fleet-run IrredenEngineTest --gtest_filter='*OverflowSort*:*PositionUpload*'maxDropped=0IR_PERAXIS_OVERFLOW_DISABLE=1vs unset, head, 45° capturerepeat_profile.pyRelease, 300 frames, interleaved, benchmark lease--yaw 0--zoom 1 --yaw 0.785398163frame avg16.670 → 16.668 ms. Envelope 8.495 → 8.815 ms (1.04x, sd 0.58)configs/perf/million.lua, 3 pairscmake -DPROJECT_ROOT=$PWD -P cmake/run_header_checks_standalone.cmakeReviewer notes
Plan departures
0route intoselectVoxelFaceandvoxelDispatchMicroSliceCount, and that helper loses its route parameter. Every general dispatch already runs withperAxisRoute_ == 0(the compact's stride use resets it before stage 1). This is the likeliest source of the 0° gain.4303d18ae, before the six commits that have landed since. None of them touches these kernels; the overlap is a comment inir_render_types.hpp. I did not rebase so the evidence stays valid.Notes for reviewer
docs/perf/per-axis-entry-kernels.md.trixelToFb+0.63,computeSunShadow+0.29,perAxisScatter+0.17 ms). Those same rows are flat on the GPU-bound million control, and the touched rows fell. I read it as host or GPU clock state, but these runs do not prove that. The envelope is within the 1.05x frame gate used before (sun-face-index-capacity.md).test_render_cardinal_voxel_receiver.pynow strips the trailing#endifthat closes the per-axis split around the cardinal raster it extracts.fleet-pr-overlap --base masterblocks on render: size per-axis stores from content height (#4960) #5101 (render: count faces dropped outside the per-axis store and size its height headroom from the content present #4960,fleet:wip). Both stage-1 bodies conflict there: render: size per-axis stores from content height (#4960) #5101 adds store-drop counting inside the per-axis branch this PR moves into theIR_PER_AXIS_PASSvariants. The docs: capture overflow-rejection camera ordering in docs/design/per-axis-trixel-canvas-rotation.md (#5086) #5124 rows are inherited, because docs: capture overflow-rejection camera ordering in docs/design/per-axis-trixel-canvas-rotation.md (#5086) #5124 is stacked on render: size per-axis stores from content height (#4960) #5101's branch. Its other shared paths merge cleanly, and so do render: preserve per-light propagation falloff (#4967) #5036, render: report Metal device failures in Release #5076, lighting: one sun-shadow receiver model on voxel faces across cardinal camera yaws (#4965) #5119 and render: restore cross-axis contact ao during camera yaw (#5015) #5121. Stacking on render: size per-axis stores from content height (#4960) #5101 is the gate's sibling remedy, but plan criterion 5 pins the perf base to master plus merged work, never render: size per-axis stores from content height (#4960) #5101's unmerged head. So this PR is parked until render: count faces dropped outside the per-axis store and size its height headroom from the content present #4960 lands. After that it rebases, threads render: size per-axis stores from content height (#4960) #5101's drop counting through the per-axis store and append variants, and re-takes the A/B evidence.Parked-until: #4960
Closes #4957
🤖 Generated with Claude Code