Repository navigation
Conversation
|
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 |
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>
525242d to
da8b4c8
Compare
|
Addressed feedback (steward pointers of 2026-11-20 and 2026-11-26, #4957 A3):
— worker (pool-2) |
Perf gateHead host slug: perf comparison: 88f4fda → 4efcc33-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 |
295.877 → 294.684 (-0.4%) |
| RENDER | CanvasToFramebuffer |
38.061 → 40.591 (+6.6%) |
| RENDER | ComputeLightVolume |
33.464 → 34.668 (+3.6%) |
| RENDER | BakeSunShadowMap |
10.008 → 10.527 (+5.2%) |
| UPDATE | FogRevealEval |
6.533 → 6.613 (+1.2%) |
| UPDATE | PropagateTransform |
4.642 → 5.070 (+9.2%) |
| RENDER | ComputeVoxelAO |
4.341 → 4.679 (+7.8%) |
| RENDER | UpdateVoxelSetChildren |
2.881 → 3.080 (+6.9%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
988.226 → 984.246 (-0.4%) |
| RENDER | CanvasToFramebuffer |
57.479 → 59.897 (+4.2%) |
| RENDER | ComputeLightVolume |
29.481 → 30.331 (+2.9%) |
| RENDER | ComputeVoxelAO |
10.735 → 11.150 (+3.9%) |
| RENDER | BakeSunShadowMap |
8.782 → 8.676 (-1.2%) |
| UPDATE | FogRevealEval |
6.420 → 6.381 (-0.6%) |
| UPDATE | PropagateTransform |
4.428 → 4.816 (+8.8%) |
| RENDER | UpdateVoxelSetChildren |
2.919 → 3.070 (+5.2%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
336.427 → 334.708 (-0.5%) |
| RENDER | CanvasToFramebuffer |
59.909 → 63.928 (+6.7%) |
| RENDER | ComputeSunShadow |
54.342 → 58.185 (+7.1%) |
| RENDER | LightingToTrixel |
36.057 → 38.225 (+6.0%) |
| RENDER | ComputeLightVolume |
32.463 → 33.910 (+4.5%) |
| RENDER | BakeSunShadowMap |
22.601 → 23.222 (+2.7%) |
| RENDER | FogToTrixel |
7.153 → 7.385 (+3.2%) |
| RENDER | ComputeVoxelAO |
6.127 → 6.407 (+4.6%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1506.783 → 1494.692 (-0.8%) |
| RENDER | CanvasToFramebuffer |
84.594 → 87.346 (+3.3%) |
| RENDER | ComputeLightVolume |
29.056 → 30.146 (+3.8%) |
| RENDER | BakeSunShadowMap |
8.915 → 8.955 (+0.4%) |
| RENDER | ComputeVoxelAO |
8.777 → 8.905 (+1.5%) |
| UPDATE | PropagateTransform |
6.029 → 6.368 (+5.6%) |
| UPDATE | FogRevealEval |
5.531 → 5.622 (+1.6%) |
| UPDATE | PeriodicIdle |
2.988 → 3.189 (+6.7%) |
jakildev
left a comment
There was a problem hiding this comment.
Review — render: give the per-axis list walks their own one-entry kernels
Verdict: approve
The specialized writer/decoder contract is shared across both backends, the store/election/colour/append face-selection path remains aligned, and the revised #4957 acceptance contract is met.
Acceptance (issue #4957)
7 of 7 revised criteria met. Native OpenGL cold compile/runtime is explicitly deferred to the required cross-host smoke lane, as criterion 7 permits.
Checked
- Reviewed the complete PR and #4957 threads, including the superseding 2026-11-16 plan and amendments A1–A3, at head
da8b4c8cb7a150a5201cdd94929c09da2226d044. test_render_voxel_dispatch_packing.py(3), overflow append/entry/occlusion contracts (1 each), and store-drop counter contracts (2) pass locally.- Standalone header checks pass: 65 Metal kernels agree with both registries, shader parity/reserved-word checks pass, and
git diff --checkis clean. - Fresh
light-verify --if-changedcompleted with a clean macOS build/run and all 46 reference comparisons passing. - PR perf-gate, fleet, format, header, Python, and shader-parity checks pass. The render-harness red is inherited: the latest recorded master run fails the same nine suites for the same dependency/vector-adapter errors. Linux build remains pending and is not counted green.
🤖 Reviewed by Codex GPT-5 (review-pr skill)
Opus recheck required: core render shader specialization, indirect-dispatch packing, and cross-backend GPU invariants.
jakildev
left a comment
There was a problem hiding this comment.
Review — render: give the per-axis list walks their own one-entry kernels
Verdict: approve
The Sonnet-class first pass flagged the shader specialization, indirect-dispatch packing, and cross-backend GPU invariants; on closer read I confirm the shared writer/decoder grid, face-selection path, winner-scratch ordering, and Metal/GL registrations remain aligned without introducing a new cross-frame resource lifetime.
Acceptance (issue #4957)
7 of 7 revised criteria met. Native OpenGL cold compile/runtime remains explicitly deferred to the required cross-host smoke lane, as criterion 7 permits.
Checked
- Read the complete PR and #4957 threads, including the superseding 2026-11-16 plan and corrections A1–A3, at head
da8b4c8cb7a150a5201cdd94929c09da2226d044. - Traced the C++ dispatch sequence and both shader dialects: the compact writes the 64-entry X/Y-spilled grid consumed by all four per-axis variants; store, election, colour, and append select the same axis face; winner and image barriers remain within the existing per-axis lifetime.
test_render_voxel_dispatch_packing.py(3), overflow append/entry/occlusion contracts (1 each), store-drop counter contracts (2), and cardinal voxel receiver contracts (3) pass locally.- Standalone header checks pass: 65 Metal kernels agree with both registries, reserved-word checks pass, and
git diff --checkis clean. - PR perf, fleet, format, header, Python, and shader-parity checks pass. The render-harness red is inherited: its nine failed suites exactly match the latest recorded master run. Linux build is still pending and is not counted green; the Windows/OpenGL smoke label remains in place.
🤖 Reviewed by Codex GPT-5 (review-pr skill)
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. #5101's store-drop counting rides the per-axis store and append variants. On the million control at 45° the GPU frame drops from 9.94 to 7.69 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
Base for every row is master
f6d489ad6(contains #5101 and #5121); head is this PR rebased onto it, unless the row says otherwise.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 expectedresolveModereader4303d18aegit grep resolveMode -- '*.glsl' '*.metal'on the rebased head: declarations only. The per-axis block, and #5101's drop helpers, sit 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, Release, base vs headIRREDEN_BUILD_DIR=<tree> python3 scripts/render-verify.py --target <T> --no-build --build-dir <tree>, Debug, base and head treesLOCK-FAILED). Those 3 sessions (sdf_baked_pose_root,pivot_focus_ctr_z4,glitch_subject_off), re-captured by hand from their manifest args on both Debug trees: 16 of 16 shots RGB-identical. No row moved. The 20 cardinal-yaw IRShapeDebug failures in the first evidence set are gone on this base (master re-blessed them)IRFogDemo --edge-yaw-sweep --auto-screenshot 6, Release, base vs headIRPerfGrid --wave-freeze --no-overlay --yaw 0 --yaw-step 0.05235987756 --auto-profile 64 --capture-frame N, Releasee9a36c8799, f3f5f4c89916, f10e2355e3b95test_render_overflow_append.py,_entry.py,_occlusion.py,test_render_store_drop_counter.py;fleet-run IrredenEngineTest --gtest_filter='*OverflowSort*:*PositionUpload*:*StoreDrop*:*PerAxis*'maxDropped=0, storemaxDropped=0IR_PERAXIS_OVERFLOW_DISABLE=1vs unset, head, IRPerfGrid 45° capturerepeat_profile.pyRelease, 300 frames,million-profiling-off.lua, interleaved, benchmark lease--yaw 0--zoom 1 --yaw 0.785398163configs/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.countPerAxisStoreDrop,writePerAxisDistanceTapandperAxisStoreDropIsVisiblemoved under#if IR_PER_AXIS_PASSwith the rest of the per-axis code. The store variant callswritePerAxisDistanceTapand the append variant passes the visibility flag tooverflowAppendTap, as master's per-axis branch did; the election variant counts nothing. The call-argument evaluation render: evaluate the per-axis store-drop visibility predicate only on the off-canvas branch (PR #5101 follow-ups) #5216 tracks is kept as master has it.Notes for reviewer
f6d489ad6after render: count faces dropped outside the per-axis store and size its height headroom from the content present #4960 closed. The conflict was only the two stage-1 bodies (the render: size per-axis stores from content height (#4960) #5101 per-axis branch this PR moves into the variants). Every row above was re-taken on the rebased head except criterion 2's readback.docs/perf/per-axis-entry-kernels.md.python3 scripts/light-verify.py --if-changed: all checks pass.test_render_cardinal_voxel_receiver.pynow strips the trailing#endifthat closes the per-axis split around the cardinal raster it extracts.Closes #4957
🤖 Generated with Claude Code