Skip to content

render: stabilize the sun shadow lattice - #5223

Merged
jakildev merged 4 commits into
masterfrom
codex/4964-world-stable-sun-shadow-lattice-wip
Nov 23, 2026
Merged

jakildev merged 4 commits into
masterfrom
codex/4964-world-stable-sun-shadow-lattice-wip

Conversation

@jakildev

@jakildev jakildev commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

Sun-shadow cascades now use a translation-invariant quarter-octave texel ladder and integer lattice origins, eliminating sampled-route shadow crawl during camera pans. Bake, sample, and feeder-density calculations share that lattice contract.

The A1 shade-only direction is implemented: the superseded exact-RGB window metric is replaced by an exact per-pixel shade-direction validator with hermetic controls. Of the original 144 reblessed references, 29 that are identical to the same-session parent capture are restored; the remaining 115 moved rows are the only references retained by this PR.

Screenshots

The crops below are centered on the deepest changed region. They show the three deepest directly graded rows per demo, with ties broken by changed-pixel count. Parent is same-session parent-code SHA eea79792d; head is this PR.

fog_demo

Row Parent Head
fog_zoom8_origin parent fog_zoom8_origin head fog_zoom8_origin
fog_zoom4_origin parent fog_zoom4_origin head fog_zoom4_origin
fog_zoom2_origin parent fog_zoom2_origin head fog_zoom2_origin

lighting

Row Parent Head
domain_z8_yaw0_inwin parent domain_z8_yaw0_inwin head domain_z8_yaw0_inwin
domain_z8_yaw30_inwin parent domain_z8_yaw30_inwin head domain_z8_yaw30_inwin
domain_z4_yaw0_band parent domain_z4_yaw0_band head domain_z4_yaw0_band

perf_grid

Row Parent Head
cycle_zoom4_rot_pan parent cycle_zoom4_rot_pan head cycle_zoom4_rot_pan
cycle_zoom4_rot parent cycle_zoom4_rot head cycle_zoom4_rot
cycle_zoom4_pan parent cycle_zoom4_pan head cycle_zoom4_pan

shape_debug

Row Parent Head
lod_scene_fine_yaw90 parent lod_scene_fine_yaw90 head lod_scene_fine_yaw90
lod_scene_coarse parent lod_scene_coarse head lod_scene_coarse
lod_scene_restored parent lod_scene_restored head lod_scene_restored

Acceptance evidence

Criterion Check run Observed
1. Stable 17-shot pans at zoom 1 and 4; parent positive fire render-shadow-pan-stability-metric.py on parent and head sweeps parent maxima: 4,208 / 21,876 changed pixels and 15.5563 / 35.7771 px edge displacement; head: 0 changed pixels and 0 displacement for all 34 comparisons
2. Hermetic controls and validation registration python3 scripts/tests/test_render_shadow_pan_stability_metric.py; python3 scripts/tests/test_render_shadow_shade_metric.py both suites pass 3/3; shade controls cover a valid lighter/darker pair, one opposed-channel pixel, and an identical pair reported as not moved
3. Exact route unchanged terminal render-verify jobs for IRCanvasStress, IRShapeDebug, IRFogDemo, IRPerfGrid; terminal light-verify; receiver/index/grazing suites 59/59, 186/186, 69/69, 35/35, and 46/46 checks pass; Python suites pass 40/40, 4/4, and 3/3
4. Every moved row changes shade only render-shadow-shade-metric.py against same-session parent-code SHA eea79792d 115 moved rows: all 110 direct rows pass exact comparison with zero opposed-channel pixels; five post-process rows pass on their named effect-off twins; 29 non-moved references restored
5. No cost on million control sun_depth_slab_timing.py --pairs 5 --cells perf-grid-million five guarded interleaved Release pairs; frame mean 1.000x, p99 1.052x, voxelSunFaces 0.984x, computeSunShadow 1.043x: all pass the 1.10x lane ratio
6. Fit invariants fleet-run IrredenEngineTest '--gtest_filter=SunShadowCascadePolicy.*' 3/3 pass; fractional positions keep size fixed, origin integral, padded bounds covered

The native terminal jobs were 20261120T043215Z-render-verify-cd79eb, 20261120T045228Z-render-verify-5094b6, 20261120T050037Z-render-verify-ac4437, 20261120T050415Z-render-verify-d04fde, and 20261120T043041Z-light-verify-70e2de. IRPerfGrid static_cycle used its required 48-frame warmup.

Per-row shade readings for all 115 moved rows

Depth is the number of zero-padded 3×3 erosions needed to empty the changed set. For the five channel-mixing post rows, the raw presentation reading is shown and the Grade column names the effect-off twin used by A1.

Demo Row Changed Lighter Darker Opposed Depth Grade
fog_demo fog_zoom8_origin 48,320 21,592 26,728 0 10 PASS
fog_demo fog_zoom4_origin 15,464 7,440 8,024 0 6 PASS
fog_demo fog_zoom2_origin 5,736 2,496 3,240 0 5 PASS
fog_demo fog_explored_decay_tiers_yaw 2,352 888 1,464 0 4 PASS
fog_demo fog_explored_decay_before 1,216 1,080 136 0 2 PASS
fog_demo fog_explored_decay_after 960 824 136 0 2 PASS
fog_demo fog_explored_decay_return 960 824 136 0 2 PASS
lighting domain_z8_yaw0_inwin 7,376 3,072 4,304 0 15 PASS
lighting domain_z8_yaw30_inwin 3,608 1,660 1,948 0 12 PASS
lighting domain_z4_yaw0_band 2,168 928 1,240 0 12 PASS
lighting domain_z8_yaw45_inwin 2,048 1,392 656 0 11 PASS
lighting hover_h000 2,224 1,056 1,168 0 9 PASS
lighting hover_h008 2,224 1,056 1,168 0 9 PASS
lighting hover_h016 2,224 1,056 1,168 0 9 PASS
lighting hover_h024 2,224 1,056 1,168 0 9 PASS
lighting hover_h032 2,224 1,056 1,168 0 9 PASS
lighting domain_z4_yaw0_inwin 2,144 992 1,152 0 8 PASS
lighting domain_z1_yaw0_inwin 1,912 1,000 912 0 6 PASS
lighting domain_z1_yaw0_band 1,904 1,000 904 0 6 PASS
lighting domain_z1_yaw0_beyond 1,848 928 920 0 6 PASS
lighting domain_z2_yaw0_inwin 568 424 144 0 6 PASS
lighting light_boundary_d000 568 424 144 0 6 PASS
lighting light_boundary_d088 568 360 208 0 6 PASS
lighting domain_z2_yaw0_band 560 352 208 0 6 PASS
lighting light_boundary_d040 560 344 216 0 6 PASS
lighting light_boundary_d070 560 352 208 0 6 PASS
lighting domain_z2_yaw0_beyond 560 352 208 0 5 PASS
lighting light_boundary_d110 560 352 208 0 5 PASS
lighting domain_z4_yaw45_band 536 312 224 0 5 PASS
lighting domain_z4_yaw45_beyond 504 360 144 0 5 PASS
lighting domain_z4_yaw45_inwin 496 272 224 0 4 PASS
lighting domain_z8_yaw45_band 516 402 114 0 2 PASS
lighting domain_z4_yaw30_inwin 320 144 176 0 2 PASS
lighting domain_z4_yaw30_band 308 132 176 0 2 PASS
lighting domain_z8_yaw30_band 240 168 72 0 2 PASS
lighting domain_z2_yaw30_band 56 32 24 0 2 PASS
lighting domain_z2_yaw30_beyond 56 24 32 0 2 PASS
lighting domain_z2_yaw30_inwin 56 24 32 0 2 PASS
lighting domain_z1_yaw30_band 16 16 0 0 2 PASS
lighting domain_z1_yaw30_inwin 16 16 0 0 2 PASS
lighting domain_z2_yaw45_beyond 48 24 24 0 1 PASS
lighting domain_z2_yaw45_band 40 24 16 0 1 PASS
lighting domain_z4_yaw30_beyond 40 32 8 0 1 PASS
lighting domain_z2_yaw45_inwin 32 16 16 0 1 PASS
lighting domain_z1_yaw30_beyond 8 8 0 0 1 PASS
perf_grid cycle_zoom4_rot_pan 6,656 3,448 3,208 0 3 PASS
perf_grid cycle_zoom4_rot 6,036 3,188 2,848 0 3 PASS
perf_grid cycle_zoom4_pan 1,068 620 448 0 2 PASS
perf_grid cycle_zoom1_rot 1,344 728 616 0 1 PASS
perf_grid cycle_fit_grid 196 116 80 0 1 PASS
perf_grid cycle_profiler_overlay 196 116 80 0 1 PASS
perf_grid cycle_zoom1_origin 196 116 80 0 1 PASS
shape_debug lod_scene_fine_yaw90 61,588 35,904 25,684 0 22 PASS
shape_debug post_effects_bloom 21,380 13,276 7,972 132 20 twin post_effects_off PASS
shape_debug post_effects_all 17,844 11,728 5,584 532 15 twin post_effects_off PASS
shape_debug post_effects_blur 12,300 6,480 5,808 12 13 twin post_effects_off PASS
shape_debug lod_scene_coarse 8,080 3,528 4,552 0 13 PASS
shape_debug lod_scene_restored 8,080 3,528 4,552 0 13 PASS
shape_debug zoom4_yaw270 8,260 3,280 4,980 0 11 PASS
shape_debug prefab_flower_z16 5,472 1,512 3,960 0 11 PASS
shape_debug glitch_split 11,024 5,340 4,520 1,164 10 twin glitch_off PASS
shape_debug lod_scene_medium_yaw45 21,212 8,188 13,024 0 9 PASS
shape_debug zoom1_origin 6,332 2,900 3,432 0 9 PASS
shape_debug zoom1_odd_offset 6,324 2,904 3,420 0 9 PASS
shape_debug lod_scene_coarse_yaw270 6,672 2,800 3,872 0 8 PASS
shape_debug lod_swap_zoom4_cone 4,668 2,536 2,132 0 8 PASS
shape_debug zoom4_yaw180 3,152 916 2,236 0 8 PASS
shape_debug lod_scene_return_yaw180 13,536 5,548 7,988 0 7 PASS
shape_debug lod_swap_zoom1_cube 6,300 2,892 3,408 0 7 PASS
shape_debug glitch_bars 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_depth_tear 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_off 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_choreo_tick_n 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_choreo_tick_n1 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_depth 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_dissolve 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_echo 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_hold 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_off 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_spill_far_off 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_spill_far_on 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_spill_near_off 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_spill_near_on 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_split 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_subject_tear 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_tear 4,588 2,424 2,164 0 7 PASS
shape_debug post_effects_grade 4,588 2,396 2,116 76 7 twin post_effects_off PASS
shape_debug post_effects_off 4,588 2,424 2,164 0 7 PASS
shape_debug zoom4_origin 4,588 2,424 2,164 0 7 PASS
shape_debug glitch_hold 4,292 2,116 2,176 0 7 PASS
shape_debug glitch_hold_divisor2 4,228 2,116 2,112 0 7 PASS
shape_debug zoom4_yaw45_inter_cardinal 3,688 1,108 2,580 0 7 PASS
shape_debug glitch_cells 7,248 3,968 3,280 0 6 PASS
shape_debug zoom4_pan16_yaw0_pivot 5,308 2,888 2,420 0 6 PASS
shape_debug glitch_subject_yaw22_all 4,736 2,148 2,588 0 6 PASS
shape_debug glitch_subject_yaw22_depth 4,736 2,148 2,588 0 6 PASS
shape_debug glitch_subject_yaw22_dissolve 4,736 2,148 2,588 0 6 PASS
shape_debug glitch_subject_yaw22_echo 4,736 2,148 2,588 0 6 PASS
shape_debug glitch_subject_yaw22_hold 4,736 2,148 2,588 0 6 PASS
shape_debug glitch_subject_yaw22_off 4,736 2,148 2,588 0 6 PASS
shape_debug glitch_subject_yaw22_spill_far_on 4,736 2,148 2,588 0 6 PASS
shape_debug glitch_subject_yaw22_spill_near_on 4,736 2,148 2,588 0 6 PASS
shape_debug glitch_subject_yaw22_split 4,736 2,148 2,588 0 6 PASS
shape_debug glitch_subject_yaw22_tear 4,736 2,148 2,588 0 6 PASS
shape_debug zoom4_offset_3_5 4,596 2,668 1,928 0 6 PASS
shape_debug zoom4_pan16_yaw180_pivot 4,348 768 3,580 0 6 PASS
shape_debug zoom4_pan16_yaw45_pivot 4,024 1,428 2,596 0 6 PASS
shape_debug zoom4_pan16_yaw90_pivot 2,916 864 2,052 0 6 PASS
shape_debug lod_swap_zoom2_cube 2,876 1,136 1,740 0 6 PASS
shape_debug zoom2_origin 2,856 1,044 1,812 0 6 PASS
shape_debug glitch_depth_hold 2,468 1,544 924 0 6 PASS
shape_debug zoom4_yaw90 2,120 808 1,312 0 6 PASS
shape_debug prefab_flower_z1 152 56 96 0 2 PASS
shape_debug zoom8_yaw180 32 16 16 0 1 PASS
shape_debug prefab_flower_z4 8 8 0 0 1 PASS
Reviewer notes

Plan departures

  • Lattice-coordinate arithmetic was also required in the bake and sample shaders; subtracting world-space floats first left a deterministic 4×2 boundary step.
  • A1 supersedes the exact-RGB locality window with the exact shade-direction clause. The old validator and --footprint-px interface are removed.
  • 29 previously reblessed references were identical to the same-session parent arm and are restored, leaving exactly the 115 rows this change moves.

Overlap

  • #5103 rows are upstream by construction: this PR targets codex/4904-refresh-macos-references.
  • #5195 docs/agents/VALIDATION-RENDER-FEATURES.md base-conflict is inherited from the parent base; this PR adds a distinct validator row.

Part of #4961

Refs #4964

🤖 Authored with Codex (GPT-5)

@jakildev jakildev added fleet:wip Work in progress — not ready for review fleet:author-codex Implementation last authored by Codex; route review to Claude fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend labels Nov 20, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

NEEDS-DESIGN

Criterion 4 cannot be honoured as written. The completed lattice change passes the stability, exact-route, fit, and five-pair Release performance gates, but the reblessed sampled-route images contain changed RGB values absent anywhere in the parent image. For IRShapeDebug/zoom1_origin, 2,168 changed head pixels have no exact-RGB match anywhere in the parent (2,176 in reverse), so increasing the window from one sun texel cannot make the required exact-colour locality oracle pass.

  • Should criterion 4 grade shadow classification/edge placement independently of continuously shaded RGB (recommended), or should the intended output be constrained so sampled shadow changes preserve the parent's exact RGB palette?

The implementation, validators, 144 macOS reference updates, screenshots, and machine-readable performance evidence are preserved in this WIP. No merge or review is requested until the criterion is resolved.

@jakildev jakildev added the fleet:design-blocked Worker escalated for architectural input mid-task; architect should respond label Nov 20, 2026
@github-actions

Copy link
Copy Markdown

Perf gate

Head host slug: linux-x86_64-epyc-7763-64-unknown

perf comparison: 88f4fda → 9696bcd-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-epyc-7763-64-unknown/88f4fdad81700c6642641ec83222e29e6a61f45d
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/9696bcde2-ci

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 105.11 vs baseline 105.03 (load_factor 1.00×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@88f4fdad8 (branch tip); master 34bdd153d, finished 2026-11-19T22:41:39Z, 0.2 d before the head run, ref_ms 105.03
  • weighting: raw (class-matched capture; load_factor 1.00×; no calibration-scaling entry)
  • attribution: improvement withheld, stacked: merge base 6c4ecf30d is not on refs/remotes/origin/master, so the run measured the base branch's unmerged changes

thresholds: regress ≥ 10%, improve ≥ 5%

voxel cull effectiveness

cell ratio (base→head) avg visible total avg feeder
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 1024 → 1024 0 → 0
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.598 → 0.598 (+0.0pp) 156637 → 156637 1024 → 1024 0 → 0
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 1024 → 1024 0 → 0
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.975 → 0.975 (+0.0pp) 255592 → 255592 1024 → 1024 0 → 0

frame timing (ms)

cell avg p99
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 541.23 → 540.97 (-0.0%) 1913.83 → 1978.56 (+3.4%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1250.91 → 1262.82 (+1.0%) 2508.81 → 2582.69 (+2.9%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 735.85 → 746.37 (+1.4%) 14970.35 → 15162.84 (+1.3%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1814.79 → 1816.27 (+0.1%) 3050.38 → 3034.42 (-0.5%)

GPU frame timing (ms; separate from stage samples)

cell envelope (base→head) buffer spans (base→head) coverage (base→head)
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable

GPU stage timing (avg ms per sampled invocation)

cell canvasClear voxelCompact voxelStage1 voxelCardinalElect voxelStage2 voxelSunFaces textToTrixel buildLightOcclusionGrid computeVoxelAO bakeSunShadowMap computeSunShadow computeLightVolume lightingToTrixel fogToTrixel trixelToFb cardinalSurfaceFb resolvePerAxisScreenDepth fbToScreen
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 22.18→21.97 65.86→65.65 55.49→55.22 1.28→1.32 50.40→50.73 95.27→89.30 ↓ — 0.00→0.00 4.16→4.31 11.82→12.08 0.40→0.41 33.43→33.39 1.64→1.67 1.24→1.28 0.17→0.22 ⚠ 0.25→0.27 — 8.08→8.14
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 22.63→21.91 323.79→326.35 260.00→260.25 4.09→4.06 225.58→227.86 146.94→145.65 — 0.00→0.00 10.42→10.62 10.67→10.90 0.32→0.33 29.44→29.44 1.86→2.19 ⚠ 1.39→1.38 0.16→0.19 ⚠ 0.40→0.40 — 7.60→7.83
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 20.56→20.45 81.07→80.85 62.20→63.08 13.03→12.89 48.49→49.07 89.37→85.75 1.11→1.14 0.00→0.00 16.62→16.74 63.77→63.31 0.61→0.61 67.29→68.30 7.43→7.46 1.81→1.82 0.16→0.17 0.62→0.88 ⚠ 0.00→0.00 9.02→9.29
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 21.90→20.81 530.39→531.97 425.15→424.49 6.40→6.37 363.80→364.57 153.61→148.08 1.12→1.15 0.00→0.00 8.54→8.78 10.87→10.98 0.31→0.34 28.98→29.73 1.89→2.03 1.46→1.37 ↓ 0.18→0.17 ↓ 1.06→1.15 0.00→0.00 7.67→7.87

top CPU systems by avg ms (head)

target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 295.877 → 289.687 (-2.1%)
RENDER CanvasToFramebuffer 38.061 → 39.305 (+3.3%)
RENDER ComputeLightVolume 33.464 → 33.410 (-0.2%)
RENDER BakeSunShadowMap 10.008 → 10.144 (+1.4%)
UPDATE FogRevealEval 6.533 → 6.247 (-4.4%)
UPDATE PropagateTransform 4.642 → 4.971 (+7.1%)
RENDER ComputeVoxelAO 4.341 → 4.510 (+3.9%)
RENDER UpdateVoxelSetChildren 2.881 → 2.981 (+3.5%)

target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 988.226 → 991.408 (+0.3%)
RENDER CanvasToFramebuffer 57.479 → 59.351 (+3.3%)
RENDER ComputeLightVolume 29.481 → 29.455 (-0.1%)
RENDER ComputeVoxelAO 10.735 → 10.993 (+2.4%)
RENDER BakeSunShadowMap 8.782 → 8.715 (-0.8%)
UPDATE FogRevealEval 6.420 → 6.300 (-1.9%)
UPDATE PropagateTransform 4.428 → 4.839 (+9.3%)
RENDER UpdateVoxelSetChildren 2.919 → 3.086 (+5.7%)

target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 336.427 → 338.219 (+0.5%)
RENDER CanvasToFramebuffer 59.909 → 60.107 (+0.3%)
RENDER ComputeSunShadow 54.342 → 53.740 (-1.1%)
RENDER LightingToTrixel 36.057 → 35.893 (-0.5%)
RENDER ComputeLightVolume 32.463 → 33.671 (+3.7%)
RENDER BakeSunShadowMap 22.601 → 22.739 (+0.6%)
RENDER FogToTrixel 7.153 → 7.173 (+0.3%)
RENDER ComputeVoxelAO 6.127 → 6.340 (+3.5%)

target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1506.783 → 1501.744 (-0.3%)
RENDER CanvasToFramebuffer 84.594 → 86.756 (+2.6%)
RENDER ComputeLightVolume 29.056 → 29.744 (+2.4%)
RENDER ComputeVoxelAO 8.777 → 9.040 (+3.0%)
RENDER BakeSunShadowMap 8.915 → 8.881 (-0.4%)
UPDATE PropagateTransform 6.029 → 6.219 (+3.2%)
UPDATE FogRevealEval 5.531 → 5.334 (-3.6%)
UPDATE PeriodicIdle 2.988 → 3.136 (+5.0%)

@jakildev

Copy link
Copy Markdown
Owner Author

Steward direction

Your NEEDS-DESIGN question offers two options. The second is answered here from #4964's own text. The first needs a new position, so it is in the proposal on #4961. This PR moves to fleet:design-proposed until that is answered. Items 2 and 3 apply whatever the answer is.

  1. Constrain the output to the parent's exact palette: no. The palette changes because the sampled route weights its 2×2 taps by the receiver's sub-texel phase (ir_sun_shadow_sample.glsl:358-367, ir_sun_shadow_sample.metal:348-358), and moving that phase is this ticket. Keeping the old tones would need a sampler change or a bias, and render: keep the sun shadow cascade grid on a world-stable lattice #4964 rules out both:

    • The issue's Scope: "Out of scope: … the sampler".
    • The plan's Gotchas: "No bias, blur or coverage change to hide coarser texels."
  2. "Old" is a same-session parent capture, not the base branch's committed PNG. Three sources say so:

    • Criterion 4: "every … shot that differs from a same-session parent capture".
    • The plan's Gotchas: "judge against same-session parent captures, then re-bless only rows this change moves".
    • AUTHOR-PIPELINE.md lines 137-140: a stale light-verify row's "old" is the same-session master control capture.

    Row 4 used --base-ref origin/codex/4904-refresh-macos-references, and that measures drift older than this PR. One example: master eea79792d (Metal, Debug, RESULT=CLEAN) renders IRShapeDebug/zoom1_origin 248 pixels away from its committed reference. The reference was last blessed on 2026-10-13. The difference is a patch of 2×2 lit dots inside a shadow on the purple shape, around (830–865, 495–530), and the head frame has the same dots. Against the master capture, the head differs on 6,332 pixels, not 6,540. Most moved references were last blessed in October: 36 of the 42 light-verify shots, and every IRFogDemo row.

  3. The footprint is per row. Criterion 4 says "the script prints the footprint for the row's zoom". render-placement-window-metric.py takes --footprint-px as an input instead, and row 4 passed 4 for every row.

When the proposal is answered, the steward posts an amendment on #4964 and lifts fleet:design-proposed.

@jakildev jakildev added fleet:design-proposed Epic-steward parked this design-blocked epic-child PR; its novel question(s) ride a STEWARD… and removed fleet:design-blocked Worker escalated for architectural input mid-task; architect should respond labels Nov 20, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

Steward direction: proposal answered

The architect answer settles criterion 4. It is recorded as #4964 A1, which replaces criterion 4 and supersedes plan Decision 5. This PR moves to fleet:design-unblocked with fleet:needs-macos-host: #4964 is **Host:** macos, and the re-blessed references are macos-debug.

  1. Criterion 4 checks that each moved pixel changed shade only. There is no window. On every moved row, every differing pixel must move its three channels in the same direction, head against the same-session parent capture. The compare is exact, with no tolerance. A1 carries the new text as 4a–4e. The answer ran 4b on this head (8ff0333c7) against master eea79792d:

    • the 110 directly graded rows pass;
    • the five post-pass rows (post_effects_bloom, _blur, _grade, _all, glitch_split) are graded on their effect-off twins (4c), and both twins pass.

    Do not build any of the rejected options:

    • a one-texel window: zoom-1 rows change 9 px deep, and a texel is about 3 px there;
    • --debug-overlay shadow classification pairs: the overlay keeps the compute route (surface_lighting_route.hpp:71). Four IRShapeDebug rows with identical frames differ on 13,520 to 75,472 overlay pixels;
    • a per-channel range with a tolerance: no radius up to 32 px passes.
  2. The 4b script and its tests.

    • The script exits non-zero on the first row that fails.
    • Its hermetic controls go under scripts/tests/: a shade-only pair passes, a pair with one opposed-channel pixel fails, and an identical pair is reported as not moved.
    • For each moved row it prints the changed, lighter and darker pixel counts and the depth: the number of 3×3 erosions that empty the changed set (4d).

    render-placement-window-metric.py, which this PR adds, grades the window clause that A1 retires. Nothing in the amended criteria uses it, and it has no test.

  3. Restore the 29 references this change does not move (criterion 4e and plan Gotcha 5: "re-bless only rows this change moves"). The answer's same-session parent captures are pixel-identical to this head on 29 of the 144 PNGs the PR re-blessed:

    • 22 IRShapeDebug;
    • 4 light-verify;
    • 3 IRFogDemo.

    The first <details> block of the answer lists them. Return each to the base branch's PNG. None goes red as a result: on master, the 25 IRShapeDebug and IRFogDemo rows pass render-compare.py at the manifest thresholds (lowest 99.9088%), and light-verify.py --no-build exits 0.

  4. Arms.

    • The parent is the base branch's code built in the same session. While render: refresh macos ShapeDebug references #5103 changes only PNGs, that is master eea79792d.
    • Run it with the harnesses' own command lines: each manifest pass through render-verify.py's capture, and the three light-verify.py passes.
    • IRPerfGrid's static_cycle pass needs the manifest's warmup of 48. At 10 it exits 3.
    • Name the parent SHA in the PR body.
    • A rebase onto a moved base retakes both arms in one session.
  5. PR body (4d). Include the per-row table. For each demo, include before/after crops of the deepest region of its three deepest directly graded rows; break ties by changed-pixel count. Re-grade the criterion 4 row of the evidence table against A1's text.

  6. The earlier direction:

    • Item 1 stands: no palette constraint.
    • Item 2 stands: "old" is a same-session parent capture.
    • Item 3 lapses: with no window, --footprint-px has nothing to consume it.

    Criteria 1, 2, 3, 5 and 6 are unchanged. The planning-docs rule for this class of change belongs to docs: say what a pixel clause grades when a re-bless re-samples a shading factor #5227, not to this PR.

@jakildev jakildev added fleet:needs-macos-host Remaining work needs a macOS host; non-mac panes skip (dispatch, claim, amending-claim) fleet:design-unblocked Architect responded; worker resumes per the architect comment + updated plan file and removed fleet:design-proposed Epic-steward parked this design-blocked epic-child PR; its novel question(s) ride a STEWARD… labels Nov 20, 2026
@jakildev jakildev removed fleet:design-unblocked Architect responded; worker resumes per the architect comment + updated plan file fleet:wip Work in progress — not ready for review fleet:needs-macos-host Remaining work needs a macOS host; non-mac panes skip (dispatch, claim, amending-claim) fleet:amending-mac-pool-1 labels Nov 20, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

Addressed feedback:

  • Replaced the superseded exact-RGB placement-window validator with the A1 exact shade-direction validator, including hermetic pass, opposed-channel failure, and not-moved controls.
  • Restored every reference shown by the same-session comparison to be unaffected, so the PR retains only references this lattice change moves.
  • Added the complete per-row shade table and parent/head maximum-depth crops for the three deepest directly graded rows in each demo to the PR body.
  • Re-ran the native shape, lighting, fog, performance, and canvas matrices plus the focused policy and Python suites; the terminal evidence and job IDs are in the PR body.

— worker (Codex)

@jakildev jakildev added the fleet:changes-made Agent addressed human feedback — ready for human re-review label Nov 20, 2026

@jakildev jakildev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — render: stabilize the sun shadow lattice

Verdict: approve

The fit math is sound and the bake/sample shader changes are symmetric across GLSL and MSL. No defect in what the code does, but the diff is in engine/render/ and four checks on the head have not finished, so this needs the Opus pass before merge.

Stacked on #5103 (cross-author). Reviewing the child diff only — upstream is open and approved separately; approval assumes #5103 lands first. If sun_shadow_constants.hpp or the reference set under it changes between approval and merge, this child needs a rebase.

Nits (follow-up)

  • docs/design/sun-shadow-bake-coverage.md (new "World-stable cascade lattice" section) — says "Tile and nearest/filtered sample addresses therefore use lattice coordinates", but the source-face tile lookup is unchanged: ir_sun_shadow_sample.glsl:218 (and .metal) still computes floor((sunUV - origin) / (texelSz * kSourceFaceTileEdge)). Either drop "Tile" from the sentence or convert the tile path.
  • ir_sun_shadow_sample.glsl:212-215 / .metal:205-208 — the new origin-recovery comment sits above sourceQueryComplete, which is not the code it describes. Move it to nearestPixel (first lattice use).
  • sun_shadow_constants.hpp feederSubCap — the extent > 0 guard is gone and the density input changed from dim/extent to 1/texelSize (now includes pad and ladder rounding). Behaviour is consistent with the bake, but SunShadowCascadePolicy.* only exercises fitSunShadowCascade; a one-line feederSubCap expectation would pin the new cap.

Checked

  • Head 46e5b1ac0 checked out and matches headRefOid; read the full non-PNG diff against the base codex/4904-refresh-macos-references, plus both new metric scripts in full.
  • Fit coverage argument: origin >= padded.min - texel, mapMax >= padded.min + texel*(dim-1) >= padded.min + requiredExtent, so one texel of slack covers the high side as long as stable bounds positioned (the new C++ test spot-checks five fractional cameras).
  • Bake (round(origin/texel)) and sample (floor(origin/texel + 0.5)) recover the same integer origin for a lattice-aligned origin; GLSL/MSL changes match line for line; shader-parity is green.
  • CI on the head: green — closes-lint ×2, whitespace, shader-parity, python-lint, no-plan-files, instruction-size, instruction-refs, header-checks, format-check, comment-refs. Unread, not green: linux-build, render-harness-tests, perf-gate, fleet-tests were still IN_PROGRESS when I read. The C++ test and both new Python suites are only proven by those; I did not run them myself.
  • Not run: no local build, render-verify, or light-verify; the PR's acceptance table is the author's own and I did not re-execute it.
  • The accepted A1 direction (moved references are shade-only, per-pixel opposed-channel count of zero) is the human's call and not re-litigated here. The five post-process rows that fail raw and pass on their effect-off twin are the author's stated exception.

For Opus

  • Several sibling sun-shadow addressors still subtract the world-space origin before dividing and were not moved to lattice coordinates: c_bake_box_sun_shadow.{glsl,metal}:~103, c_bake_voxel_sun_faces.{glsl,metal}:~61, ir_sun_projection.glsl:121 (sunCascadeKernelInterior), the source-face tile interval in ir_sun_face_index.glsl / ir_sun_face_bounds.glsl, and originUV at ir_sun_shadow_sample.glsl:145. Please confirm each is either consistent with its counterpart by construction or not reachable on a pan, since the pan-stability evidence is one IRCanvasStress --probe-particle-raster scene and the voxel-face and box bake routes may not be exercised by it.
  • Confirm stable (ceil'd extent at origin 0) bounds positioned under a nonzero viewRotation / inter-cardinal yaw, where the test only covers CardinalIndex::k0 with no rotation.

🤖 Reviewed by Claude Sonnet 5.5 (review-pr skill)

Escalation: please Opus-recheck before merge (touches: engine/render, engine/prefabs/irreden/render).

Opus recheck required: touches engine/render/ shaders and engine/prefabs/irreden/render/ shadow fit (GPU/CPU addressing contract across bake and sample, partial adoption in sibling shaders), and four CI checks were unfinished.

@jakildev jakildev added fleet:needs-opus-recheck Sonnet flagged this PR for Opus recheck before merge fleet:needs-windows-smoke PR needs windows-debug build + smoke-run validation and removed fleet:changes-made Agent addressed human feedback — ready for human re-review fleet:reviewing-mac-pool-1 labels Nov 20, 2026
@jakildev jakildev removed fleet:changes-made Agent addressed human feedback — ready for human re-review fleet:reviewing-mac-pool-2 labels Nov 20, 2026
@github-actions

Copy link
Copy Markdown

Perf gate

Head host slug: linux-x86_64-epyc-7763-64-unknown

perf comparison: 88f4fda → 3f8f6ee-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-epyc-7763-64-unknown/88f4fdad81700c6642641ec83222e29e6a61f45d
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/3f8f6eeb7-ci

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 104.12 vs baseline 105.03 (load_factor 0.99×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@88f4fdad8 (branch tip); master 34bdd153d, finished 2026-11-19T22:41:39Z, 0.3 d before the head run, ref_ms 105.03
  • weighting: raw (class-matched capture; load_factor 0.99×; no calibration-scaling entry)
  • attribution: improvement withheld, stacked: merge base 6c4ecf30d is not on refs/remotes/origin/master, so the run measured the base branch's unmerged changes

thresholds: regress ≥ 10%, improve ≥ 5%

voxel cull effectiveness

cell ratio (base→head) avg visible total avg feeder
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 1024 → 1024 0 → 0
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.598 → 0.598 (+0.0pp) 156637 → 156637 1024 → 1024 0 → 0
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 1024 → 1024 0 → 0
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.975 → 0.975 (+0.0pp) 255592 → 255592 1024 → 1024 0 → 0

frame timing (ms)

cell avg p99
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 541.23 → 535.04 (-1.1%) 1913.83 → 2010.01 (+5.0%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1250.91 → 1249.42 (-0.1%) 2508.81 → 2576.31 (+2.7%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 735.85 → 743.32 (+1.0%) 14970.35 → 15415.13 (+3.0%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1814.79 → 1817.88 (+0.2%) 3050.38 → 3016.89 (-1.1%)

GPU frame timing (ms; separate from stage samples)

cell envelope (base→head) buffer spans (base→head) coverage (base→head)
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable

GPU stage timing (avg ms per sampled invocation)

cell canvasClear voxelCompact voxelStage1 voxelCardinalElect voxelStage2 voxelSunFaces textToTrixel buildLightOcclusionGrid computeVoxelAO bakeSunShadowMap computeSunShadow computeLightVolume lightingToTrixel fogToTrixel trixelToFb cardinalSurfaceFb resolvePerAxisScreenDepth fbToScreen
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 22.18→21.81 65.86→64.56 55.49→54.70 1.28→1.25 50.40→49.99 95.27→88.56 ↓ — 0.00→0.00 4.16→4.19 11.82→11.89 0.40→0.41 33.43→33.17 1.64→1.62 1.24→1.24 0.17→0.17 0.25→0.34 ⚠ — 8.08→8.08
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 22.63→22.12 323.79→324.26 260.00→260.16 4.09→4.38 225.58→225.83 146.94→143.06 — 0.00→0.00 10.42→10.38 10.67→10.78 0.32→0.33 29.44→28.79 1.86→1.93 1.39→1.35 0.16→0.16 0.40→0.39 — 7.60→7.54
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 20.56→20.27 81.07→81.25 62.20→62.37 13.03→12.97 48.49→48.54 89.37→86.35 1.11→1.09 0.00→0.00 16.62→16.72 63.77→62.95 0.61→0.54 ↓ 67.29→67.42 7.43→7.42 1.81→1.80 0.16→0.16 0.62→0.82 ⚠ 0.00→0.00 9.02→9.17
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 21.90→20.91 530.39→531.36 425.15→426.57 6.40→6.37 363.80→364.02 153.61→148.05 1.12→1.10 0.00→0.00 8.54→8.53 10.87→10.63 0.31→0.31 28.98→29.29 1.89→1.81 1.46→1.40 0.18→0.16 ↓ 1.06→1.12 0.00→0.00 7.67→7.62

top CPU systems by avg ms (head)

target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 295.877 → 286.257 (-3.3%)
RENDER CanvasToFramebuffer 38.061 → 38.507 (+1.2%)
RENDER ComputeLightVolume 33.464 → 33.209 (-0.8%)
RENDER BakeSunShadowMap 10.008 → 10.020 (+0.1%)
UPDATE FogRevealEval 6.533 → 6.590 (+0.9%)
UPDATE PropagateTransform 4.642 → 4.742 (+2.2%)
RENDER ComputeVoxelAO 4.341 → 4.373 (+0.7%)
RENDER UpdateVoxelSetChildren 2.881 → 3.013 (+4.6%)

target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 988.226 → 985.110 (-0.3%)
RENDER CanvasToFramebuffer 57.479 → 59.199 (+3.0%)
RENDER ComputeLightVolume 29.481 → 28.877 (-2.0%)
RENDER ComputeVoxelAO 10.735 → 10.702 (-0.3%)
RENDER BakeSunShadowMap 8.782 → 8.776 (-0.1%)
UPDATE FogRevealEval 6.420 → 6.363 (-0.9%)
UPDATE PropagateTransform 4.428 → 4.494 (+1.5%)
RENDER UpdateVoxelSetChildren 2.919 → 2.732 (-6.4%) ↓

target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 336.427 → 341.976 (+1.6%)
RENDER CanvasToFramebuffer 59.909 → 59.746 (-0.3%)
RENDER ComputeSunShadow 54.342 → 53.598 (-1.4%)
RENDER LightingToTrixel 36.057 → 36.150 (+0.3%)
RENDER ComputeLightVolume 32.463 → 32.425 (-0.1%)
RENDER BakeSunShadowMap 22.601 → 22.599 (-0.0%)
RENDER FogToTrixel 7.153 → 7.151 (-0.0%)
UPDATE PropagateTransform 6.048 → 6.421 (+6.2%)

target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1506.783 → 1502.348 (-0.3%)
RENDER CanvasToFramebuffer 84.594 → 87.180 (+3.1%)
RENDER ComputeLightVolume 29.056 → 29.319 (+0.9%)
RENDER ComputeVoxelAO 8.777 → 8.802 (+0.3%)
RENDER BakeSunShadowMap 8.915 → 8.653 (-2.9%)
UPDATE PropagateTransform 6.029 → 6.396 (+6.1%)
UPDATE FogRevealEval 5.531 → 5.884 (+6.4%)
UPDATE PeriodicIdle 2.988 → 2.956 (-1.1%)

@jakildev jakildev added fleet:verified-windows Cross-host smoke passed on windows-debug and removed fleet:needs-windows-smoke PR needs windows-debug build + smoke-run validation labels Nov 20, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

Cross-host smoke OK on windows (fresh checkout + IRShapeDebug --auto-screenshot 10 — build clean, ir-run RESULT=CLEAN exit 0, no shader compile warnings; one pre-existing runtime profiler-tag warning 'tagGpuStage: unknown stage name guiToScreen' from system_gui_canvas_to_screen.hpp, outside this PR's diff).

@github-actions

Copy link
Copy Markdown

Perf gate

Head host slug: linux-x86_64-epyc-7763-64-unknown

perf comparison: 88f4fda → ca20d49-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-epyc-7763-64-unknown/88f4fdad81700c6642641ec83222e29e6a61f45d
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/ca20d4919-ci

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 104.34 vs baseline 105.03 (load_factor 0.99×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@88f4fdad8 (branch tip); master 34bdd153d, finished 2026-11-19T22:41:39Z, 0.3 d before the head run, ref_ms 105.03
  • weighting: raw (class-matched capture; load_factor 0.99×; no calibration-scaling entry)
  • attribution: improvement withheld, stacked: merge base 6c4ecf30d is not on refs/remotes/origin/master, so the run measured the base branch's unmerged changes

thresholds: regress ≥ 10%, improve ≥ 5%

voxel cull effectiveness

cell ratio (base→head) avg visible total avg feeder
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 1024 → 1024 0 → 0
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.598 → 0.598 (+0.0pp) 156637 → 156637 1024 → 1024 0 → 0
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 1024 → 1024 0 → 0
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.975 → 0.975 (+0.0pp) 255592 → 255592 1024 → 1024 0 → 0

frame timing (ms)

cell avg p99
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 541.23 → 552.77 (+2.1%) 1913.83 → 1974.30 (+3.2%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1250.91 → 1250.78 (-0.0%) 2508.81 → 2519.86 (+0.4%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 735.85 → 739.91 (+0.6%) 14970.35 → 15121.26 (+1.0%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1814.79 → 1815.07 (+0.0%) 3050.38 → 3029.34 (-0.7%)

GPU frame timing (ms; separate from stage samples)

cell envelope (base→head) buffer spans (base→head) coverage (base→head)
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable

GPU stage timing (avg ms per sampled invocation)

cell canvasClear voxelCompact voxelStage1 voxelCardinalElect voxelStage2 voxelSunFaces textToTrixel buildLightOcclusionGrid computeVoxelAO bakeSunShadowMap computeSunShadow computeLightVolume lightingToTrixel fogToTrixel trixelToFb cardinalSurfaceFb resolvePerAxisScreenDepth fbToScreen
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 22.18→22.94 65.86→67.09 55.49→56.87 1.28→1.31 50.40→51.74 95.27→90.83 — 0.00→0.00 4.16→4.33 11.82→12.46 0.40→0.41 33.43→35.47 1.64→1.74 1.24→1.26 0.17→0.19 ⚠ 0.25→0.30 ⚠ — 8.08→8.24
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 22.63→22.12 323.79→324.98 260.00→259.42 4.09→4.04 225.58→226.83 146.94→143.23 — 0.00→0.00 10.42→10.87 10.67→10.71 0.32→0.32 29.44→29.39 1.86→2.04 1.39→1.38 0.16→0.17 0.40→0.38 ↓ — 7.60→7.57
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 20.56→20.28 81.07→81.03 62.20→62.84 13.03→13.50 48.49→48.62 89.37→85.06 1.11→1.11 0.00→0.00 16.62→16.62 63.77→63.17 0.61→0.58 ↓ 67.29→68.77 7.43→7.50 1.81→1.82 0.16→0.17 0.62→0.91 ⚠ 0.00→0.00 9.02→9.24
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 21.90→20.97 530.39→531.83 425.15→424.24 6.40→6.36 363.80→363.15 153.61→147.92 1.12→1.14 0.00→0.00 8.54→8.64 10.87→11.10 0.31→0.33 28.98→29.15 1.89→1.94 1.46→1.48 0.18→0.18 1.06→1.14 0.00→0.00 7.67→7.69

top CPU systems by avg ms (head)

target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 295.877 → 296.697 (+0.3%)
RENDER CanvasToFramebuffer 38.061 → 40.074 (+5.3%)
RENDER ComputeLightVolume 33.464 → 35.425 (+5.9%)
RENDER BakeSunShadowMap 10.008 → 10.471 (+4.6%)
UPDATE FogRevealEval 6.533 → 6.671 (+2.1%)
UPDATE PropagateTransform 4.642 → 4.871 (+4.9%)
RENDER ComputeVoxelAO 4.341 → 4.576 (+5.4%)
RENDER UpdateVoxelSetChildren 2.881 → 3.090 (+7.3%)

target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 988.226 → 986.076 (-0.2%)
RENDER CanvasToFramebuffer 57.479 → 58.991 (+2.6%)
RENDER ComputeLightVolume 29.481 → 29.412 (-0.2%)
RENDER ComputeVoxelAO 10.735 → 11.181 (+4.2%)
RENDER BakeSunShadowMap 8.782 → 8.711 (-0.8%)
UPDATE FogRevealEval 6.420 → 6.108 (-4.9%)
UPDATE PropagateTransform 4.428 → 4.602 (+3.9%)
RENDER UpdateVoxelSetChildren 2.919 → 2.995 (+2.6%)

target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 336.427 → 334.005 (-0.7%)
RENDER CanvasToFramebuffer 59.909 → 60.233 (+0.5%)
RENDER ComputeSunShadow 54.342 → 53.832 (-0.9%)
RENDER LightingToTrixel 36.057 → 36.799 (+2.1%)
RENDER ComputeLightVolume 32.463 → 33.145 (+2.1%)
RENDER BakeSunShadowMap 22.601 → 22.435 (-0.7%)
RENDER FogToTrixel 7.153 → 7.214 (+0.9%)
UPDATE PropagateTransform 6.048 → 6.417 (+6.1%)

target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1506.783 → 1499.579 (-0.5%)
RENDER CanvasToFramebuffer 84.594 → 86.473 (+2.2%)
RENDER ComputeLightVolume 29.056 → 29.173 (+0.4%)
RENDER BakeSunShadowMap 8.915 → 9.050 (+1.5%)
RENDER ComputeVoxelAO 8.777 → 8.916 (+1.6%)
UPDATE PropagateTransform 6.029 → 6.193 (+2.7%)
UPDATE FogRevealEval 5.531 → 5.763 (+4.2%)
UPDATE PeriodicIdle 2.988 → 3.076 (+2.9%)

@evin-mac-claude-app evin-mac-claude-app Bot added the fleet:checks-red Info only: approved PR whose head has a failed check of its own; reconcile R12 adds and removes it label Nov 20, 2026
Quantize each cascade to a translation-invariant texel-size ladder and address bake and sampling in lattice coordinates so camera pans cannot change the grid phase.

Add deterministic pan, placement, and interleaved million-scene evidence plus the macOS reference updates. The placement oracle exposes a remaining exact-RGB contract mismatch for design review.
@jakildev
jakildev force-pushed the codex/4964-world-stable-sun-shadow-lattice-wip branch from d7048a9 to 0188640 Compare November 21, 2026 20:08
@evin-mac-claude-app
evin-mac-claude-app Bot changed the base branch from codex/4904-refresh-macos-references to master November 21, 2026 20:09
@github-actions github-actions Bot added human:re-review Human pushed changes to an approved PR — fleet should re-review and removed fleet:approved Fleet reviewer approved — ready for human merge labels Nov 21, 2026
@github-actions

Copy link
Copy Markdown

New commits pushed after fleet approval. Re-tagging human:re-review so the fleet picks it up again.

@evin-mac-claude-app evin-mac-claude-app Bot added fleet:reviewing-mac-pool-1 and removed fleet:checks-red Info only: approved PR whose head has a failed check of its own; reconcile R12 adds and removes it labels Nov 21, 2026

@jakildev jakildev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — render: stabilize the sun shadow lattice

Verdict: approve

Head 018864082 is a byte-identical rebase of the approved head d7048a95a onto master (parent #5103 merged); the approval was stripped by auto-rereview despite the content being unchanged, so this restores it.

Checked

  • Head 018864082 checked out and matches headRefOid. git diff d7048a95a 018864082 is empty (identical trees, binary reference PNGs included). git range-diff 6c4ecf30d..d7048a95a cf4cb16b6..018864082 shows all four commits as =, and the raw blob ids of the 130 changed files match the old head. The base moved from the parent's head to cf4cb16b6 with an empty tree diff on those files.
  • Nothing to re-review: the prior Opus pass (fit coverage, bake/sample agreement, feederSubCap safety), the nit-fix commit and the format fix all stand on the same content. No new findings.
  • CI on the head: green — format-check, closes-lint, comment-refs, header-checks, instruction-refs, instruction-size, no-plan-files, python-lint, shader-parity, whitespace. Unread, not green: linux-build, render-harness-tests, perf-gate, fleet-tests were still IN_PROGRESS when I read; I did not build or run anything myself.

🤖 Reviewed by Claude Sonnet 5.5 (review-pr skill)

Opus recheck not required.

@jakildev jakildev added fleet:approved Fleet reviewer approved — ready for human merge and removed human:re-review Human pushed changes to an approved PR — fleet should re-review fleet:reviewing-mac-pool-1 labels Nov 21, 2026
@github-actions

Copy link
Copy Markdown

Perf gate

Head host slug: linux-x86_64-epyc-9v45-96-unknown

perf comparison: 1af3c48 → 9af21a4-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-epyc-9v45-96-unknown/1af3c48cc60e1d35bf60592c4ebe298e8a096149
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/9af21a479-ci

host calibration

  • host: linux-x86_64-epyc-9v45-96-unknown (matches baseline)
  • ref_ms: head 58.25 vs baseline 57.22 (load_factor 1.02×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@1af3c48cc (branch tip); master 6afc51320, finished 2026-11-19T19:13:49Z, 2.0 d before the head run, ref_ms 57.22
  • weighting: raw (class-matched capture; load_factor 1.02×; no calibration-scaling entry)
  • attribution: no measured master improvement between capture master 6afc51320 and merge base cf4cb16b6 (9 commits)

thresholds: regress ≥ 10%, improve ≥ 5%

voxel cull effectiveness

cell ratio (base→head) avg visible total avg feeder
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 1024 → 1024 0 → 0
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.598 → 0.598 (+0.0pp) 156637 → 156637 1024 → 1024 0 → 0
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 1024 → 1024 0 → 0
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.975 → 0.975 (+0.0pp) 255592 → 255592 1024 → 1024 0 → 0

frame timing (ms)

cell avg p99
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 321.49 → 356.82 (+11.0%) ⚠ 970.61 → 1028.08 (+5.9%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 713.63 → 780.92 (+9.4%) 1411.73 → 1487.13 (+5.3%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 392.07 → 433.55 (+10.6%) ⚠ 5301.04 → 7120.85 (+34.3%) ⚠
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1017.05 → 1059.55 (+4.2%) 1643.48 → 1641.89 (-0.1%)

GPU frame timing (ms; separate from stage samples)

cell envelope (base→head) buffer spans (base→head) coverage (base→head)
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable

GPU stage timing (avg ms per sampled invocation)

cell canvasClear voxelCompact voxelStage1 voxelCardinalElect voxelStage2 voxelSunFaces textToTrixel buildLightOcclusionGrid computeVoxelAO bakeSunShadowMap computeSunShadow computeLightVolume lightingToTrixel fogToTrixel trixelToFb resolvePerAxisScreenDepth fbToScreen cardinalSurfaceFb
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 12.39→13.80 ⚠ 37.41→41.32 ⚠ 33.95→37.15 0.59→0.66 ⚠ 33.08→34.52 55.44→59.28 — 0.00→0.00 2.10→2.76 ⚠ 16.90→9.70 ↓ 12.21→0.35 ↓ 11.77→26.77 ⚠ 2.33→1.32 ↓ 0.84→1.06 ⚠ 0.14→0.17 ⚠ — 4.88→6.06 ⚠ 0.00→0.21
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 12.92→14.22 ⚠ 172.62→186.89 144.48→158.17 2.24→2.46 ⚠ 130.55→139.28 92.08→102.68 ⚠ — 0.00→0.00 1.78→6.63 ⚠ 28.85→8.35 ↓ 10.56→0.33 ↓ 10.39→23.24 ⚠ 5.18→1.51 ↓ 0.84→1.19 ⚠ 0.10→0.15 ⚠ — 4.64→5.66 ⚠ 0.00→0.29
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 11.61→12.11 43.15→45.67 36.01→37.81 4.97→5.56 ⚠ 30.17→29.73 50.03→50.80 0.67→0.73 0.00→0.00 4.17→4.18 33.51→34.38 11.48→0.46 ↓ 24.01→37.81 ⚠ 4.01→3.90 1.12→1.21 0.10→0.14 ⚠ 0.00→0.00 5.36→6.08 ⚠ 0.00→0.33
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 12.36→12.20 276.69→283.74 234.73→242.78 3.54→3.61 206.70→218.78 95.41→94.45 0.69→0.77 ⚠ 0.00→0.00 1.80→4.88 ⚠ 37.72→7.74 ↓ 11.78→0.32 ↓ 10.30→21.92 ⚠ 4.04→1.38 ↓ 0.90→1.17 ⚠ 0.10→0.13 ⚠ 0.00→0.00 4.47→5.31 ⚠ 0.00→0.64

top CPU systems by avg ms (head)

target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 175.457 → 191.793 (+9.3%)
RENDER ComputeLightVolume 23.671 → 26.813 (+13.3%) ⚠
RENDER CanvasToFramebuffer 11.096 → 25.287 (+127.9%) ⚠
RENDER BakeSunShadowMap 6.250 → 8.123 (+30.0%) ⚠
UPDATE FogRevealEval 3.525 → 3.973 (+12.7%) ⚠
RENDER ComputeVoxelAO 2.177 → 2.896 (+33.0%) ⚠
UPDATE PropagateTransform 2.631 → 2.860 (+8.7%)
RENDER UpdateVoxelSetChildren 1.709 → 2.223 (+30.1%) ⚠

target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 553.829 → 608.283 (+9.8%)
RENDER CanvasToFramebuffer 10.079 → 35.250 (+249.7%) ⚠
RENDER ComputeLightVolume 20.648 → 23.469 (+13.7%) ⚠
RENDER ComputeVoxelAO 5.471 → 6.891 (+26.0%) ⚠
RENDER BakeSunShadowMap 5.563 → 6.681 (+20.1%) ⚠
UPDATE FogRevealEval 3.557 → 3.995 (+12.3%) ⚠
UPDATE PropagateTransform 2.567 → 2.703 (+5.3%)
RENDER UpdateVoxelSetChildren 1.790 → 2.179 (+21.7%) ⚠

target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 185.052 → 197.259 (+6.6%)
RENDER CanvasToFramebuffer 11.048 → 31.949 (+189.2%) ⚠
RENDER ComputeSunShadow 29.410 → 27.475 (-6.6%) ↓
RENDER ComputeLightVolume 22.301 → 23.721 (+6.4%)
RENDER LightingToTrixel 14.081 → 15.235 (+8.2%)
RENDER BakeSunShadowMap 7.773 → 9.091 (+17.0%) ⚠
RENDER FogToTrixel 3.486 → 3.683 (+5.7%)
UPDATE PropagateTransform 3.644 → 3.623 (-0.6%)

target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 829.712 → 860.510 (+3.7%)
RENDER CanvasToFramebuffer 9.990 → 46.405 (+364.5%) ⚠
RENDER ComputeLightVolume 21.797 → 22.000 (+0.9%)
RENDER BakeSunShadowMap 5.328 → 6.257 (+17.4%) ⚠
RENDER ComputeVoxelAO 4.359 → 5.056 (+16.0%) ⚠
UPDATE PropagateTransform 3.697 → 3.766 (+1.9%)
UPDATE FogRevealEval 3.440 → 3.516 (+2.2%)
UPDATE PeriodicIdle 2.252 → 2.599 (+15.4%) ⚠

⚠️ Regression detected — at least one cell regressed >10% on mean frame avg. Fix or justify before merging.

@evin-mac-claude-app evin-mac-claude-app Bot added the fleet:checks-red Info only: approved PR whose head has a failed check of its own; reconcile R12 adds and removes it label Nov 21, 2026
@github-actions

Copy link
Copy Markdown

Perf gate

Head host slug: linux-x86_64-xeon-6975p-c-03-0-vga

perf comparison: cb2e87f → 9af21a4-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-xeon-6975p-c-03-0-vga/cb2e87f332f63470b88fccdc2448364d60bdff6c
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/9af21a479-ci

host calibration

  • host: linux-x86_64-xeon-6975p-c-03-0-vga (matches baseline)
  • ref_ms: head 70.10 vs baseline 69.94 (load_factor 1.00×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@cb2e87f33 (branch tip); master 473953323, finished 2026-11-19T19:24:47Z, 2.0 d before the head run, ref_ms 69.94
  • weighting: raw (class-matched capture; load_factor 1.00×; no calibration-scaling entry)
  • attribution: no measured master improvement between capture master 473953323 and merge base cf4cb16b6 (12 commits)

thresholds: regress ≥ 10%, improve ≥ 5%

voxel cull effectiveness

cell ratio (base→head) avg visible total avg feeder
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 1024 → 1024 0 → 0
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.598 → 0.598 (+0.0pp) 156637 → 156637 1024 → 1024 0 → 0
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 1024 → 1024 0 → 0
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.975 → 0.975 (+0.0pp) 255592 → 255592 1024 → 1024 0 → 0

frame timing (ms)

cell avg p99
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 419.71 → 433.50 (+3.3%) 1276.46 → 1250.90 (-2.0%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 940.31 → 952.07 (+1.3%) 1708.08 → 1708.59 (+0.0%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 497.57 → 545.54 (+9.6%) 6789.76 → 8267.48 (+21.8%) ⚠
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1322.17 → 1359.88 (+2.9%) 2038.95 → 2112.14 (+3.6%)

GPU frame timing (ms; separate from stage samples)

cell envelope (base→head) buffer spans (base→head) coverage (base→head)
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable

GPU stage timing (avg ms per sampled invocation)

cell canvasClear voxelCompact voxelStage1 voxelCardinalElect voxelStage2 voxelSunFaces textToTrixel buildLightOcclusionGrid computeVoxelAO bakeSunShadowMap computeSunShadow computeLightVolume lightingToTrixel fogToTrixel trixelToFb resolvePerAxisScreenDepth fbToScreen cardinalSurfaceFb
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 16.29→16.80 46.34→48.04 40.16→41.23 0.96→0.93 40.01→38.68 68.94→66.28 — 0.00→0.00 1.45→2.72 ⚠ 16.75→7.27 ↓ 13.45→0.46 ↓ 11.91→25.16 ⚠ 2.51→1.17 ↓ 0.95→0.96 0.15→0.19 ⚠ — 6.49→6.66 0.00→0.20
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 17.20→17.14 235.08→239.49 178.46→181.58 2.96→3.02 169.06→164.10 112.95→112.76 — 0.00→0.00 1.30→6.67 ⚠ 28.77→6.83 ↓ 11.82→0.35 ↓ 10.07→21.90 ⚠ 5.03→1.46 ↓ 0.99→1.10 ⚠ 0.14→0.16 ⚠ — 6.11→6.41 0.00→0.28
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 15.49→15.73 55.55→57.70 43.89→45.82 6.51→6.81 36.53→36.63 65.32→63.23 1.28→1.32 0.00→0.00 4.08→4.84 ⚠ 39.01→36.80 ↓ 13.10→0.56 ↓ 28.79→40.73 ⚠ 4.79→4.53 ↓ 1.35→1.41 0.15→0.17 ⚠ 0.00→0.00 7.15→7.46 0.00→0.19
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 16.44→16.13 384.05→393.44 288.01→296.18 4.59→4.75 264.15→264.23 127.90→121.89 1.29→1.31 0.00→0.00 1.32→5.72 ⚠ 37.68→6.70 ↓ 13.47→0.36 ↓ 11.14→22.50 ⚠ 4.28→1.17 ↓ 1.13→1.14 0.15→0.15 0.00→0.00 6.04→6.51 0.00→0.50

top CPU systems by avg ms (head)

target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 214.703 → 216.547 (+0.9%)
RENDER ComputeLightVolume 24.978 → 25.309 (+1.3%)
RENDER CanvasToFramebuffer 14.330 → 25.098 (+75.1%) ⚠
UPDATE FogRevealEval 7.136 → 7.819 (+9.6%)
RENDER BakeSunShadowMap 6.007 → 5.957 (-0.8%)
UPDATE PropagateTransform 3.483 → 3.737 (+7.3%)
RENDER UpdateVoxelSetChildren 2.147 → 2.955 (+37.6%) ⚠
UPDATE LuaWaveStateToOffset 2.542 → 2.949 (+16.0%) ⚠

target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 713.424 → 722.308 (+1.2%)
RENDER CanvasToFramebuffer 13.360 → 36.907 (+176.2%) ⚠
RENDER ComputeLightVolume 21.534 → 21.993 (+2.1%)
UPDATE FogRevealEval 7.943 → 7.742 (-2.5%)
RENDER ComputeVoxelAO 6.756 → 6.994 (+3.5%)
RENDER BakeSunShadowMap 5.044 → 5.055 (+0.2%)
UPDATE PropagateTransform 3.455 → 3.581 (+3.6%)
UPDATE LuaWaveStateToOffset 2.735 → 3.280 (+19.9%) ⚠

target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 234.442 → 238.477 (+1.7%)
RENDER CanvasToFramebuffer 14.537 → 37.539 (+158.2%) ⚠
RENDER ComputeSunShadow 34.544 → 31.193 (-9.7%) ↓
RENDER ComputeLightVolume 24.263 → 23.458 (-3.3%)
RENDER LightingToTrixel 18.559 → 18.605 (+0.2%)
RENDER BakeSunShadowMap 7.924 → 8.300 (+4.7%)
UPDATE FogRevealEval 6.789 → 8.084 (+19.1%) ⚠
UPDATE PropagateTransform 4.692 → 4.952 (+5.5%)

target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1084.329 → 1100.938 (+1.5%)
RENDER CanvasToFramebuffer 13.217 → 45.459 (+243.9%) ⚠
RENDER ComputeLightVolume 24.282 → 22.606 (-6.9%) ↓
UPDATE FogRevealEval 6.477 → 8.238 (+27.2%) ⚠
RENDER ComputeVoxelAO 5.572 → 6.050 (+8.6%)
RENDER BakeSunShadowMap 5.204 → 5.365 (+3.1%)
UPDATE PropagateTransform 4.695 → 4.901 (+4.4%)
RENDER UpdateVoxelSetChildren 2.328 → 3.146 (+35.1%) ⚠

@jakildev
jakildev merged commit b3ab5c8 into master Nov 23, 2026
32 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fleet:approved Fleet reviewer approved — ready for human merge fleet:author-codex Implementation last authored by Codex; route review to Claude fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend fleet:checks-red Info only: approved PR whose head has a failed check of its own; reconcile R12 adds and removes it fleet:verified-windows Cross-host smoke passed on windows-debug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant