Skip to content

render: single-source overflow sort record width (#4945) - #5239

Open
jakildev wants to merge 4 commits into
masterfrom
claude/4945-render-sort-width
Open

jakildev wants to merge 4 commits into
masterfrom
claude/4945-render-sort-width

Conversation

@jakildev

@jakildev jakildev commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Single-source the shared four-word face-sort record width across the overflow family: CPU allocation and dispatch sizing, GLSL and Metal append/sort/scatter paths, and receiver tests now all use kFaceSortRecordWords. Extend the hermetic source-order test to cover both shader dialects and both caller families, with mutations proving a literal-width regression fails.

Screenshots

No visual change: both consecutive 59-check IRCanvasStress runs were byte-identical on macOS Metal.

Acceptance evidence

Criterion Check run Observed
1. Two consecutive full CanvasStress runs pass without re-blessing python3 scripts/render-verify.py --target IRCanvasStress Jobs 20261126T045019Z-render-verify-7afc94 and 20261126T045630Z-render-verify-0c4660 each passed all 59 checks at 100% similarity / delta 0. The reference tree is unchanged.
2. Shared width is enforced in GLSL, Metal, and CPU callers with failing mutation controls python3 -m unittest discover -s scripts/tests -p test_render_source_face_order.py -v 3/3 pass on 09a6f3a25. Both dialects report source_faces=1287 exact_permutation=PASS sorted_keys=PASS guard=PASS and overflow_records=PASS shared_width=PASS. The face-family control rejects * 3u independently in each dialect's emitter and reader; the overflow control rejects idx * 4u. The site census covers both overflow-census shaders and their CPU binding.
3. Build, shader parity, headers, and render harness remain green fleet-build --target IRShapeDebug; fleet-build --target IrredenEngineTest; fleet-build --target header-checks; three direct harness suites; fleet-jobs wait --timeout 50 20261126T081528Z-light-verify-b9c30e Both build targets and header checks passed before the test-only amendment. test_render_per_axis_surface.py (1/1), test_render_per_axis_surface_lighting.py (3/3), and test_render_visibility_routing.py (1/1, all 31 variants) pass on 09a6f3a25, closing the three head-only render-harness failures. Terminal light-verify job 20261126T081528Z-light-verify-b9c30e succeeded with exit 0 and all checks PASS under Metal.
4. Existing capture warning is recorded without changing thresholds or shot count Both full CanvasStress runs Both clean runs emitted the pre-existing captured 12 shots, manifest expects 6; ignoring extras warning. The warning is also present at known-clean a6b9953c3 and 45cf005a8; #4925 owns its shot-count follow-up. No threshold, manifest, shot-count, or reference changes are included.
5. Related investigation threads receive the root-cause and verification write-back Comments on #4904 and #4925 Both comments name merge 1fe4e7cdb, the three-word/four-word sorter-width mismatch, #4936, and the two clean CanvasStress job IDs.
Reviewer notes

Plan departures

  • The plan was written against the pre-render: size per-axis stores from content height (#4960) #5101 tree. After render: size per-axis stores from content height (#4960) #5101 merged, the rebase preserved its packed voxel-index/AO fourth word and expanded overflow counters while replacing width literals with the shared constant.
  • The first verification attempt, job 20261126T042132Z-render-verify-509be0, could not acquire the GPU lock during an active benchmark window. No executable ran in its two lock-failed rows; it is not one of the two acceptance runs.
  • The optimize pass was skipped because this is a constant-preserving mechanical refactor: the hot-path record width remains four words and no runtime structure or algorithm changed.
  • Feedback amendment 09a6f3a25 injects the shared shader constant into the two surface harnesses and its CPU twin into the visibility adapter, eliminating the three PR-only render-harness failures identified by the Opus recheck.

Notes for reviewer

Closes #4945

Authored by Codex.

Use the shared face-sort record width for both source-face and overflow-family addresses, CPU sizing, shader adapters, and tests. Extend the hermetic source test with dialect checks and mutation controls so either caller family cannot drift back to a literal width.
@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 and removed fleet:wip Work in progress — not ready for review labels Nov 26, 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: single-source overflow sort record width (#4945)

Verdict: needs-fix

The PR leaves one overflow reader family on literal 4u widths: the env-gated overflow census from #5084. That family is also missing from the test's site census, so acceptance criterion 2 is unmet.

Needs-fix

  • engine/prefabs/irreden/render/systems/system_trixel_to_framebuffer.hpp:237 — countOverflowOwners still sizes the census bindRange as kOverflowControlUints + overflowCap_ * 4u. This is the same kind of CPU caller as the composite binding at :797, which the PR converted. Change it to * kFaceSortRecordWords.
  • engine/render/src/shaders/c_per_axis_overflow_census.glsl:54 and engine/render/src/shaders/metal/c_per_axis_overflow_census.metal:50 — entryBase = ... + gid * 4u. Convert both to kFaceSortRecordWords. The census shaders only include ir_scatter_depth.* and ir_per_axis_face_footprint.*, so confirm the constant reaches them through those includes, or include ir_iso_common.*. Also update the "four-word records" comment at glsl:21 / metal:27.
  • scripts/tests/test_render_source_face_order.py:12-45 — add a "census reader" row per dialect to OVERFLOW_WIDTH_SITES and a "census binding" row to CPU_WIDTH_SITES. Without these rows, a width change at the three sites above does not fail the test (criterion 2: the test "fails by name when any record-addressing site … uses a width other than the shared constant"). After the fix, grep once more for \* 4u next to overflowCap_ / overflowScratchLayout.z / kOverflowControlUints across engine/ to confirm nothing else is left. The plan predates #5084, so its Affected-files list could not have named these sites.

Nits

  • scripts/tests/test_render_source_face_order.py:156-161 — the * 3u face-family mutation control now mutates only the GLSL emitter (index * …). The control it replaces ran for both dialects and also mutated the reader (instanceId * …). The plan asked to keep the #4936 control, so consider restoring the per-dialect emitter+reader loop.
  • engine/render/src/shaders/c_light_overflow_faces.glsl:99-100 — the comment still says "Entry i: 4 uints at overflowScratchLayout.z + i*4".
  • test/render/gpu_compute_dispatch_test.cpp:2477-2481 — the Record{...} brace-init still lists four explicit words. With a wider constant it would still compile and silently zero-fill the rest. A loop over kFaceSortRecordWords would keep it width-agnostic.

Acceptance (issue #4945)

3 of 5 met.

  • 2. Source test covers every record-addressing site — unmet. The census sites are missing (see Needs-fix).
  • 3. Build / light-verify / CI green — unverifiable for now. The build and light-verify jobs are audited as succeeded after the head commit. render-harness-tests, linux-build, fleet-tests and perf-gate are still in progress on a7c91c8.
  • Criterion 4 also asks the body to cite where the shot-count warning was seen (a6b9953c3, 45cf005a8) and to name #4925 as its owner. Row 4 says only "pre-existing". This is a body edit only.

Checked

  • Read the full diff at a7c91c8, plus the shared constant: ir_render_types.hpp:122, ir_iso_common.glsl:1354, metal/ir_iso_common.metal:1340. The sort shader and the stage-2 / source-face users already use the constant on master.
  • Swept the shaders and engine C++ for remaining literal-width overflow addressing; this found the three census sites above.
  • Ran locally: test_render_source_face_order.py (OK; both dialects print overflow_records=PASS shared_width=PASS), test_render_overflow_append.py (OK) and test_render_per_axis_receiver.py (OK).
  • CI: shader-parity, header-checks, format-check and python-lint are green. render-harness-tests, linux-build, fleet-tests and perf-gate have not finished, so they are unread.
  • Render checklist: no struct layout or binding changes and no new shaders. Only the multiplier changed; the value is the same (4), so pixels are byte-identical as claimed.

Test plan the author should run before merge

  • Convert the three census sites and add their rows to the site census.
  • Re-run python3 -m unittest discover -s scripts/tests -p test_render_source_face_order.py -v.
  • Run fleet-build --target IRShapeDebug (the census shaders compile only under IR_PERAXIS_OVERFLOW_CENSUS=1, so start one run with it set to prove the constant resolves).
  • Confirm render-harness-tests and linux-build are green on the new head.

Escalation: author-agent to address, then re-request review.

Opus recheck not required.

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

@jakildev jakildev added fleet:needs-fix Fleet reviewer found issues — author must address and removed fleet:reviewing-mac-pool-6 labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown

Perf gate

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

perf comparison: 69fca9e → b82dd02-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-xeon-6975p-c-03-0-vga/69fca9e51a32801b2fcd9753c5ed7b36a5963b23
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/b82dd02f5-ci

host calibration

  • host: linux-x86_64-xeon-6975p-c-03-0-vga (matches baseline)
  • ref_ms: head 70.18 vs baseline 74.21 (load_factor 0.95×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@69fca9e51 (branch tip); master 850084148, finished 2026-11-21T20:25:20Z, 4.4 d before the head run, ref_ms 74.21
  • weighting: raw (class-matched capture; load_factor 0.95×; no calibration-scaling entry)
  • attribution: no measured master improvement between capture master 850084148 and merge base f6d489ad6 (4 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 434.64 → 442.55 (+1.8%) 1178.73 → 1156.67 (-1.9%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 952.59 → 956.13 (+0.4%) 1733.99 → 1718.83 (-0.9%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 522.55 → 538.34 (+3.0%) 7917.82 → 8110.96 (+2.4%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1338.22 → 1361.47 (+1.7%) 2057.07 → 2106.72 (+2.4%)

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 16.60→17.03 47.90→47.84 41.41→41.45 0.75→0.79 38.82→38.82 69.82→66.39 — 0.00→0.00 2.61→2.69 7.26→7.33 0.33→0.39 ⚠ 25.64→25.02 1.13→1.14 0.94→0.94 0.17→0.17 0.21→0.18 ↓ — 6.63→6.56
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 17.12→17.20 239.26→239.31 181.47→182.29 3.27→3.05 ↓ 163.78→164.69 113.60→112.58 — 0.00→0.00 6.72→6.74 6.76→6.52 0.44→0.35 ↓ 22.78→22.64 1.21→1.25 1.00→1.03 0.15→0.15 0.28→0.27 — 6.47→6.34
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 15.62→15.78 57.12→56.60 44.48→45.21 6.53→6.72 35.43→36.83 65.20→62.09 1.35→1.32 0.00→0.00 4.58→4.80 35.36→36.12 0.50→0.57 ⚠ 41.62→41.28 4.39→4.63 1.39→1.43 0.16→0.18 ⚠ 0.16→0.19 ⚠ 0.00→0.00 7.17→7.42
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 16.28→16.00 391.14→393.69 293.08→298.61 4.68→4.80 261.74→266.54 127.44→122.09 1.27→1.31 0.00→0.00 5.50→5.62 6.51→6.60 0.34→0.41 ⚠ 22.01→22.19 1.13→1.22 1.12→1.14 0.14→0.18 ⚠ 0.49→0.51 0.00→0.00 6.37→6.51

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 219.587 → 216.822 (-1.3%)
RENDER CanvasToFramebuffer 25.042 → 25.143 (+0.4%)
RENDER ComputeLightVolume 25.633 → 25.087 (-2.1%)
UPDATE FogRevealEval 8.013 → 9.096 (+13.5%) ⚠
RENDER BakeSunShadowMap 5.958 → 6.024 (+1.1%)
UPDATE PropagateTransform 3.601 → 3.679 (+2.2%)
RENDER UpdateVoxelSetChildren 2.566 → 3.023 (+17.8%) ⚠
UPDATE LuaWaveStateToOffset 2.725 → 2.917 (+7.0%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 723.097 → 723.506 (+0.1%)
RENDER CanvasToFramebuffer 35.845 → 36.414 (+1.6%)
RENDER ComputeLightVolume 22.987 → 22.849 (-0.6%)
UPDATE FogRevealEval 7.998 → 8.248 (+3.1%)
RENDER ComputeVoxelAO 7.066 → 7.034 (-0.5%)
RENDER BakeSunShadowMap 5.269 → 5.094 (-3.3%)
UPDATE PropagateTransform 3.460 → 3.517 (+1.6%)
UPDATE LuaWaveStateToOffset 3.151 → 3.212 (+1.9%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 236.960 → 236.067 (-0.4%)
RENDER CanvasToFramebuffer 36.139 → 37.534 (+3.9%)
RENDER ComputeSunShadow 29.622 → 30.404 (+2.6%)
RENDER ComputeLightVolume 24.279 → 24.013 (-1.1%)
RENDER LightingToTrixel 18.460 → 18.494 (+0.2%)
RENDER BakeSunShadowMap 8.197 → 8.312 (+1.4%)
UPDATE FogRevealEval 6.799 → 7.238 (+6.5%)
UPDATE PropagateTransform 4.704 → 4.733 (+0.6%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1098.407 → 1106.028 (+0.7%)
RENDER CanvasToFramebuffer 44.368 → 45.672 (+2.9%)
RENDER ComputeLightVolume 22.118 → 22.346 (+1.0%)
UPDATE FogRevealEval 6.842 → 7.664 (+12.0%) ⚠
RENDER ComputeVoxelAO 5.722 → 5.891 (+3.0%)
RENDER BakeSunShadowMap 5.252 → 5.330 (+1.5%)
UPDATE PropagateTransform 4.877 → 4.942 (+1.3%)
RENDER UpdateVoxelSetChildren 2.772 → 3.138 (+13.2%) ⚠

@evin-mac-claude-app

Copy link
Copy Markdown
Contributor

Every failed workflow on this head is also red on master:

These failures are inherited and are not this pull request's to fix.

@jakildev jakildev removed the fleet:needs-fix Fleet reviewer found issues — author must address label Nov 26, 2026
@jakildev jakildev added fleet:changes-made Agent addressed human feedback — ready for human re-review fleet:needs-macos-host Remaining work needs a macOS host; non-mac panes skip (dispatch, claim, amending-claim) and removed fleet:amending-mac-pool-4 labels Nov 26, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

Addressed feedback:

  • Census CPU binding: countOverflowOwners now sizes the overflow lane with kFaceSortRecordWords.
  • Census shader readers: GLSL and Metal now address records through kFaceSortRecordWords; the constant reaches both through ir_scatter_depth.
  • Site census: added named GLSL/Metal census-reader rows and a distinct CPU census-binding row.
  • Face-family mutation control: restored emitter and reader mutations independently for both GLSL and Metal.
  • Overflow layout prose: replaced the stale literal four-word address with the shared-width expression.
  • GPU test record extraction: fills every Record word in a width-driven loop instead of a four-element initializer.
  • Acceptance evidence: criterion 4 now cites a6b9953c3, 45cf005a8, and owner test(windows): six IRCanvasStress default-pass pixel rows fail on master 5d93af97c (so3_*, revoxelize_solids) #4925.
  • Validation: source tests, IRShapeDebug, IrredenEngineTest, header checks, and lint passed on 9f5603ee9. Display-backed validation is blocked because both fleet-jobs start light-verify -- --if-changed (job 20261126T070134Z-light-verify-c5d6a3) and the single direct python3 scripts/light-verify.py --if-changed rerun found Discovered 0 display monitors and exited 69. Added fleet:needs-macos-host for the remaining run.

— worker (Codex)

@jakildev jakildev removed the fleet:changes-made Agent addressed human feedback — ready for human re-review label Nov 26, 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.

Re-review — render: single-source overflow sort record width (#4945)

Verdict: approve (re-review of 9f5603ee9, delta-scoped against a7c91c84c)

Every finding from the previous round is fixed, and nothing outside those findings changed. With the overflow census family converted, every overflow record-addressing site uses kFaceSortRecordWords, and the site census now names each of them.

Previous findings

  • Census CPU binding: fixed. system_trixel_to_framebuffer.hpp:237 now sizes the census bindRange with * kFaceSortRecordWords. The composite binding at :797 already uses the same constant in this scope.
  • Census shader readers: fixed. The census entryBase uses the shared constant in c_per_axis_overflow_census.glsl:54 and metal/c_per_axis_overflow_census.metal:50. Both files reach the constant through ir_scatter_depth.* → ir_iso_common.*, which define it at glsl:1354 / metal:1340. Both header comments were updated.
  • Site census rows: fixed. Each dialect has a census reader row in OVERFLOW_WIDTH_SITES, and CPU_WIDTH_SITES has a census binding row. The two CPU rows for the same file stay distinct by anchoring on std::size_t (census) and size_t (composite), and each expects exactly one match.
  • Face-family * 3u control (nit): fixed. Emitter (index *) and reader (instanceId *) are each mutated separately for both GLSL and Metal, as subtests.
  • c_light_overflow_faces.glsl comment (nit): fixed.
  • GPU test Record extraction (nit): fixed. A width-driven loop fills std::array<std::uint32_t, kFaceSortRecordWords> (gpu_compute_dispatch_test.cpp:2361).
  • Criterion 4 body citation: fixed. Row 4 now cites a6b9953c3 and 45cf005a8 and names #4925 as the owner.

Acceptance (issue #4945)

4 of 5 met; 1 cannot be checked yet.

  • 1. Met. The two consecutive CanvasStress runs cited in the body match 59/59. The delta only renames a multiplier whose value stays 4, so output is unchanged.
  • 2. Met. The census rows close the gap from the last round (verified locally; see Checked).
  • 3. Cannot be checked yet. On the new head, linux-build, render-harness-tests, fleet-tests and perf-gate are still pending. Light-verify on 9f5603ee9 could not run because the host had no display (exit 69, NO-DISPLAY). The author has added fleet:needs-macos-host so a display-capable macOS host runs it. That is the remaining gate; it is not a defect in the diff.
  • 4. Met.
  • 5. Met. The write-back comments on #4904 and #4925 are cited in the PR body.

Checked

  • Read the full delta a7c91c84c..9f5603ee9 (6 files, +36/−22).
  • Searched engine/ and test/ for any overflow/record address still multiplied by literal 4u (overflowCap_, overflowScratchLayout.z, *OverflowControlUints, gid, instanceId, index): none found.
  • Ran locally on 9f5603ee9:
    • test_render_source_face_order.py: 3/3 OK. Both dialects report exact_permutation=PASS sorted_keys=PASS guard=PASS and overflow_records=PASS shared_width=PASS, and all four emitter/reader mutation subtests fail as intended.
    • test_render_overflow_append.py: OK.
    • test_render_per_axis_receiver.py: OK.
  • CI on the new head: format-check, header-checks, shader-parity, python-lint, whitespace and instruction-* are green. linux-build, render-harness-tests, fleet-tests and perf-gate are pending and unread. On the prior head, render-harness-tests was already red on master (#5234).
  • Render checklist: struct layout, bindings, dispatch grids and shader set are unchanged. Only the multiplier names changed, and the value is the same.

Nits (follow-up)

None.

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

Opus recheck required: the diff touches core render paths (engine/render shaders, the TRIXEL_TO_FRAMEBUFFER system), and this was reviewed at sonnet class; one Opus pass is owed before approval.

@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:reviewing-mac-pool-6 labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown

Perf gate

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

perf comparison: 69fca9e → 9f00355-ci

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

host calibration

  • host: linux-x86_64-xeon-6975p-c-03-0-vga (matches baseline)
  • ref_ms: head 70.11 vs baseline 74.21 (load_factor 0.94×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@69fca9e51 (branch tip); master 850084148, finished 2026-11-21T20:25:20Z, 4.5 d before the head run, ref_ms 74.21
  • weighting: raw (class-matched capture; load_factor 0.94×; no calibration-scaling entry)
  • attribution: no measured master improvement between capture master 850084148 and merge base f6d489ad6 (4 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 434.64 → 437.74 (+0.7%) 1178.73 → 1165.12 (-1.2%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 952.59 → 956.04 (+0.4%) 1733.99 → 1703.12 (-1.8%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 522.55 → 526.33 (+0.7%) 7917.82 → 7937.52 (+0.2%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1338.22 → 1352.82 (+1.1%) 2057.07 → 2061.08 (+0.2%)

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 16.60→16.76 47.90→48.15 41.41→41.89 0.75→0.78 38.82→39.17 69.82→67.58 — 0.00→0.00 2.61→2.72 7.26→7.41 0.33→0.34 25.64→25.92 1.13→1.17 0.94→0.92 0.17→0.19 0.21→0.19 ↓ — 6.63→6.58
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 17.12→17.23 239.26→240.73 181.47→185.25 3.27→3.02 ↓ 163.78→165.77 113.60→113.07 — 0.00→0.00 6.72→6.89 6.76→6.95 0.44→0.34 ↓ 22.78→21.82 1.21→1.25 1.00→1.01 0.15→0.15 0.28→0.29 — 6.47→6.41
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 15.62→15.47 57.12→57.04 44.48→45.10 6.53→6.78 35.43→35.94 65.20→61.43 ↓ 1.35→1.29 0.00→0.00 4.58→4.63 35.36→34.96 0.50→0.56 ⚠ 41.62→40.35 4.39→4.42 1.39→1.40 0.16→0.15 0.16→0.18 ⚠ 0.00→0.00 7.17→7.21
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 16.28→15.96 391.14→394.80 293.08→297.33 4.68→4.67 261.74→265.31 127.44→121.90 1.27→1.29 0.00→0.00 5.50→5.71 6.51→6.45 0.34→0.35 22.01→21.99 1.13→1.22 1.12→1.17 0.14→0.15 0.49→0.51 0.00→0.00 6.37→6.39

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 219.587 → 218.581 (-0.5%)
RENDER ComputeLightVolume 25.633 → 25.953 (+1.2%)
RENDER CanvasToFramebuffer 25.042 → 25.253 (+0.8%)
UPDATE FogRevealEval 8.013 → 8.210 (+2.5%)
RENDER BakeSunShadowMap 5.958 → 6.072 (+1.9%)
UPDATE PropagateTransform 3.601 → 3.634 (+0.9%)
RENDER UpdateVoxelSetChildren 2.566 → 2.983 (+16.3%) ⚠
RENDER ComputeVoxelAO 2.763 → 2.903 (+5.1%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 723.097 → 729.559 (+0.9%)
RENDER CanvasToFramebuffer 35.845 → 36.958 (+3.1%)
RENDER ComputeLightVolume 22.987 → 22.008 (-4.3%)
UPDATE FogRevealEval 7.998 → 7.798 (-2.5%)
RENDER ComputeVoxelAO 7.066 → 7.172 (+1.5%)
RENDER BakeSunShadowMap 5.269 → 5.221 (-0.9%)
UPDATE PropagateTransform 3.460 → 3.468 (+0.2%)
RENDER UpdateVoxelSetChildren 2.843 → 3.081 (+8.4%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 236.960 → 234.273 (-1.1%)
RENDER CanvasToFramebuffer 36.139 → 36.397 (+0.7%)
RENDER ComputeSunShadow 29.622 → 29.185 (-1.5%)
RENDER ComputeLightVolume 24.279 → 23.628 (-2.7%)
RENDER LightingToTrixel 18.460 → 17.920 (-2.9%)
RENDER BakeSunShadowMap 8.197 → 8.295 (+1.2%)
UPDATE FogRevealEval 6.799 → 7.236 (+6.4%)
UPDATE PropagateTransform 4.704 → 4.720 (+0.3%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1098.407 → 1104.385 (+0.5%)
RENDER CanvasToFramebuffer 44.368 → 45.680 (+3.0%)
RENDER ComputeLightVolume 22.118 → 22.081 (-0.2%)
UPDATE FogRevealEval 6.842 → 7.256 (+6.1%)
RENDER ComputeVoxelAO 5.722 → 5.949 (+4.0%)
RENDER BakeSunShadowMap 5.252 → 5.189 (-1.2%)
UPDATE PropagateTransform 4.877 → 4.847 (-0.6%)
RENDER UpdateVoxelSetChildren 2.772 → 3.079 (+11.1%) ⚠

@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.

Opus recheck — render: single-source overflow sort record width (#4945)

Verdict: needs-fix (Opus recheck of 9f5603ee9)

The engine and shader changes are correct. The value stays 4 everywhere, so allocation sizes, bindRange extents, dispatch grids and pixels are unchanged. The defect is in test harnesses the PR does not touch: three render-harness suites host-compile shader or system source that now names kFaceSortRecordWords, but they never inject the constant. They pass on the merge base and fail on this head. The fleet-master-ci comment called every render-harness-tests failure inherited from #5234, which hid them.

Needs-fix

The PR breaks three render-harness suites that pass on master:

Suite Error Fix
scripts/tests/test_render_per_axis_surface.py fragment.cpp: 'kFaceSortRecordWords' was not declared in scatterFace (it reads v_peraxis_scatter.glsl / peraxis_scatter.metal), both backends Add "kFaceSortRecordWords" to the constant-extraction tuple at :290. This is the same one-line change the PR already makes in test_render_overflow_append.py:172.
scripts/tests/test_render_per_axis_surface_lighting.py Same error in scatterFace, both backends Inject the shader-side constant into the assembled scatter source, the same way test_render_per_axis_receiver.py:325-329 does in this PR.
scripts/tests/test_render_visibility_routing.py production.cpp:229: 'kFaceSortRecordWords' was not declared in Adapter::drawPerAxisFaces, for all 31 variants (it compiles system_trixel_to_framebuffer.hpp:797) Give the adapter the constant. Extracting it from ir_render_types.hpp (as test_render_per_axis_surface_lighting.py:564 does for its own constants) keeps it single-sourced; a literal kFaceSortRecordWords=4 next to the other constants at :36 does not.

How I checked:

  • Ran on 9f5603ee9 (macOS, clang): all three fail with use of undeclared identifier 'kFaceSortRecordWords'.
  • Ran on merge base f6d489ad6: all three pass (exit 0).
  • CI run 45773867230 (render-harness-tests on this head) fails 12 suites. The master red run from #5234 (45109337183, b3ab5c8fe) fails 9. The 3 extra suites are exactly these, and every kFaceSortRecordWords error in the CI log belongs to one of them. None of the 9 shared suites has that error.

After the fix, run each of the three suites directly (python3 -m unittest discover -s scripts/tests -p <suite>.py). Then compare the failing-suite set against #5234's set; do not treat the whole workflow as inherited.

Sonnet's review

Sonnet flagged nothing about the harness. Its re-review said render-harness-tests was "pending and unread" and pointed to the prior head's "red on master" note. On closer read, that note was wrong for this diff: the head adds three failing suites of its own. Criterion 3 ("Build, shader parity, headers, and render harness remain green") is therefore unmet, not "cannot be checked yet."

I confirm the rest of Sonnet's checklist:

  • Every site uses the constant. I swept overflow shaders, scatter shaders, stage-1 bodies, and the CPU overflowCap_ / overflowCapacity / entriesBaseUints_ users for literal 4 multipliers. None remain. The only command * 4u left (c_per_axis_overflow_sort.glsl mode 3) is the 4-uint indirect-dispatch command stride, not the record width, so leaving it is correct.
  • The constant reaches every shader. The census and Metal scatter shaders get it through ir_scatter_depth.* → ir_iso_common.* (ir_iso_common.glsl:1354, metal/ir_iso_common.metal:1340).
  • The new comment is accurate. It says records sort by "masked word 0, then words 2 and 1, the cut flag, and word 3". That matches recordLess (c_per_axis_overflow_sort.glsl:166-174).
  • No overflow from type promotion. kFaceSortRecordWords is std::uint32_t (ir_render_types.hpp:122). Every CPU multiply converts to size_t / uint64_t before multiplying, so nothing narrows.

Opus-only items

  • GPU buffer lifetimes and bindings: unchanged. winnerIds_ allocation, the census bindRange (:237) and the composite bindRange (:797) compute the same byte counts as before.
  • Hot path: a compile-time constant replaces a literal, so there is no runtime cost.
  • ECS / concurrency: not touched.

Nits (optional)

  • The sorter still assumes four fields: the shared-memory arrays sW0..sW3, the explicit b+0..b+3 sentinel stores in mode 0, and recordLess's 4-word signature, in both dialects. The width is now single-sourced for strides, but raising it would compile and silently sort only the first four words. A static_assert(kFaceSortRecordWords == 4, ...) next to ir_render_types.hpp:122, naming the sorter as the reason, would make that limit explicit. kMaxOverflowRecords = 1 << 29 (component_per_axis_trixel_canvases.hpp:482) also implicitly assumes width 4. LargestPoolAndScratchPrefixFitSortRecordAddressing now guards it at test time, so that one is fine as is.

Acceptance (issue #4945)

3 of 5 met, 1 unmet, 1 unverifiable.

  • 1, 4, 5: met (I confirm Sonnet).
  • 2: met. I ran test_render_source_face_order.py (3/3 OK), test_render_overflow_append.py (OK) and test_render_per_axis_receiver.py (OK) locally on 9f5603ee9.
  • 3: unmet — the three harness suites above. Display-backed light-verify on the new head is still owed (fleet:needs-macos-host). linux-build is still pending on this head.

🤖 Reviewed by Claude Opus 5.5 (opus-reviewer, review-pr skill)

@jakildev jakildev added fleet:needs-fix Fleet reviewer found issues — author must address and removed fleet:needs-opus-recheck Sonnet flagged this PR for Opus recheck before merge fleet:reviewing-mac-pool-6 labels Nov 26, 2026
@evin-mac-claude-app

Copy link
Copy Markdown
Contributor

Every failed workflow on this head is also red on master:

These failures are inherited and are not this pull request's to fix.

@jakildev jakildev removed the fleet:needs-fix Fleet reviewer found issues — author must address label Nov 26, 2026
@jakildev jakildev added fleet:changes-made Agent addressed human feedback — ready for human re-review and removed fleet:needs-macos-host Remaining work needs a macOS host; non-mac panes skip (dispatch, claim, amending-claim) fleet:amending-mac-pool-6 labels Nov 26, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

Addressed feedback:

  • test_render_per_axis_surface.py: the shared surface harness now extracts kFaceSortRecordWords from each dialect's ir_iso_common, so both the surface and surface-lighting suites compile the production scatter reader without a literal copy.
  • test_render_per_axis_surface_lighting.py: its imported surface harness now carries the shader-side width constant; all 3 tests pass.
  • test_render_visibility_routing.py: the adapter extracts the CPU twin from ir_render_types.hpp and makes the source-derived declaration class-static; production plus all 30 mutation variants pass.
  • Validation: the three formerly PR-only failing suites pass directly on 09a6f3a25. Terminal Metal job 20261126T081528Z-light-verify-b9c30e succeeded with exit 0 and all light-verification rows passing.
  • Optional sorter-width assertion: declined for this amendment because the review marked it optional and the required harness regressions are fixed without expanding engine scope.

— worker (Codex)

@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.

Re-review — render: single-source overflow sort record width (#4945)

Verdict: approve

The three harness regressions from the Opus recheck are fixed. The fix is test-only and pulls the constant from its source (ir_iso_common / ir_render_types.hpp) instead of copying the literal. No engine or shader file changed since 9f5603ee9.

Acceptance (issue #4945)

5 of 5 met. Criterion 3, which the Opus recheck graded unmet, is now met: the three suites that failed only on this PR's head pass. The other harness failures are the same on the merge base (see Checked).

Checked

  • Delta 9f5603ee9..09a6f3a25: changes only scripts/tests/test_render_per_axis_surface.py (adds kFaceSortRecordWords to the extracted-constant tuple) and scripts/tests/test_render_visibility_routing.py (pulls the CPU twin from ir_render_types.hpp; static constexpr because it lands at class scope).
  • On 09a6f3a25 (macOS, clang) these suites pass, exit 0: test_render_per_axis_surface (1/1), test_render_per_axis_surface_lighting (3/3), test_render_visibility_routing (1/1), test_render_source_face_order, test_render_overflow_append and test_render_per_axis_receiver.
  • Ran every suite in scripts/tests/ that reads a touched source (38 suites). Only two fail: test_render_source_face_basis (3 failures) and test_render_sun_query_stats (12 failures). Both fail on merge base f6d489ad6 with the same counts and the same member reference base type 'double' error. Neither error mentions kFaceSortRecordWords, so both failures are inherited.
  • CI on 09a6f3a25: linux-build, perf-gate, render-harness-tests and fleet-tests were still running when this review was posted, so I have not read their results. All other checks are green.
  • The worker declined the optional static_assert on the sorter width. It was optional, so it does not block this PR.

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

Escalation: none. Safe for merge.

Opus recheck not required.

@jakildev jakildev added fleet:approved Fleet reviewer approved — ready for human merge and removed fleet:changes-made Agent addressed human feedback — ready for human re-review labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown

Perf gate

Head host slug: linux-x86_64-xeon-platinum-8573c-unknown

perf comparison: 5e1035f → 40ee322-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-xeon-platinum-8573c-unknown/5e1035f6acb001bef1d98798d3dada231cf595ab
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/40ee32277-ci

host calibration

  • host: linux-x86_64-xeon-platinum-8573c-unknown (matches baseline)
  • ref_ms: head 90.32 vs baseline 75.84 (load_factor 1.19×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@5e1035f6a (branch tip); master fa65f0004, finished 2026-11-23T04:15:47Z, 3.2 d before the head run, ref_ms 75.84
  • weighting: calibration-scaled (frame avg only; load_factor 1.19× ≥ 1.10×)
  • attribution: no measured master improvement between capture master fa65f0004 and merge base f6d489ad6 (2 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 460.37 → 558.39 (+21.3% raw, +1.8% scaled) 1296.11 → 1528.61 (+17.9%) ⚠
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1049.89 → 1282.69 (+22.2% raw, +2.6% scaled) 1914.17 → 2308.84 (+20.6%) ⚠
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 562.00 → 677.78 (+20.6% raw, +1.3% scaled) 8798.55 → 10592.85 (+20.4%) ⚠
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1491.51 → 1811.14 (+21.4% raw, +2.0% scaled) 2324.65 → 2772.05 (+19.2%) ⚠

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 17.45→20.28 ⚠ 52.46→63.46 ⚠ 44.48→55.07 ⚠ 0.85→1.06 ⚠ 43.33→52.83 ⚠ 72.57→87.28 ⚠ — 0.00→0.00 3.06→3.72 ⚠ 7.88→9.41 ⚠ 0.41→0.45 ⚠ 29.77→35.25 ⚠ 1.22→1.49 ⚠ 1.03→1.23 ⚠ 0.18→0.20 ⚠ 0.20→0.24 ⚠ — 7.24→8.63 ⚠
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 17.64→20.91 ⚠ 270.84→320.99 ⚠ 200.79→250.67 ⚠ 3.52→4.39 ⚠ 194.19→241.17 ⚠ 130.57→158.41 ⚠ — 0.00→0.00 7.16→8.83 ⚠ 7.06→8.39 ⚠ 0.40→0.54 ⚠ 25.54→30.86 ⚠ 1.18→1.52 ⚠ 1.03→1.30 ⚠ 0.16→0.20 ⚠ 0.27→0.41 ⚠ — 6.78→8.21 ⚠
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 16.05→18.77 ⚠ 62.54→74.66 ⚠ 48.94→58.88 ⚠ 7.24→8.86 ⚠ 41.37→49.61 ⚠ 68.18→80.42 ⚠ 1.39→1.56 ⚠ 0.00→0.00 5.34→6.34 ⚠ 38.03→47.19 ⚠ 0.57→0.68 ⚠ 45.87→55.39 ⚠ 4.81→5.83 ⚠ 1.52→1.82 ⚠ 0.16→0.21 ⚠ 0.17→0.23 ⚠ 0.00→0.00 7.81→9.52 ⚠
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 16.20→19.44 ⚠ 436.61→521.96 ⚠ 328.46→401.30 ⚠ 5.46→6.64 ⚠ 308.80→377.89 ⚠ 137.96→165.91 ⚠ 1.39→1.56 ⚠ 0.00→0.00 6.13→7.35 ⚠ 7.20→8.35 ⚠ 0.41→0.46 ⚠ 26.46→30.42 ⚠ 1.21→1.51 ⚠ 1.22→1.49 ⚠ 0.17→0.20 ⚠ 0.53→0.66 ⚠ 0.00→0.00 7.02→8.31 ⚠

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 236.044 → 285.475 (+20.9%) ⚠
RENDER ComputeLightVolume 29.832 → 35.279 (+18.3%) ⚠
RENDER CanvasToFramebuffer 28.114 → 32.895 (+17.0%) ⚠
UPDATE FogRevealEval 7.474 → 8.744 (+17.0%) ⚠
RENDER BakeSunShadowMap 6.493 → 7.837 (+20.7%) ⚠
UPDATE PropagateTransform 3.851 → 4.928 (+28.0%) ⚠
UPDATE LuaWaveStateToOffset 2.846 → 3.952 (+38.9%) ⚠
RENDER ComputeVoxelAO 3.233 → 3.897 (+20.5%) ⚠

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 822.592 → 1002.129 (+21.8%) ⚠
RENDER CanvasToFramebuffer 40.289 → 48.749 (+21.0%) ⚠
RENDER ComputeLightVolume 25.742 → 31.064 (+20.7%) ⚠
RENDER ComputeVoxelAO 7.419 → 9.166 (+23.5%) ⚠
UPDATE FogRevealEval 6.790 → 8.088 (+19.1%) ⚠
RENDER BakeSunShadowMap 5.797 → 6.794 (+17.2%) ⚠
UPDATE PropagateTransform 3.642 → 4.592 (+26.1%) ⚠
UPDATE LuaWaveStateToOffset 2.768 → 3.938 (+42.3%) ⚠

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 261.622 → 308.059 (+17.7%) ⚠
RENDER CanvasToFramebuffer 40.527 → 48.598 (+19.9%) ⚠
RENDER ComputeSunShadow 31.791 → 39.788 (+25.2%) ⚠
RENDER ComputeLightVolume 27.748 → 32.941 (+18.7%) ⚠
RENDER LightingToTrixel 19.366 → 23.968 (+23.8%) ⚠
RENDER BakeSunShadowMap 9.084 → 10.829 (+19.2%) ⚠
UPDATE FogRevealEval 6.754 → 7.666 (+13.5%) ⚠
UPDATE PropagateTransform 5.123 → 6.273 (+22.4%) ⚠

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1238.138 → 1498.906 (+21.1%) ⚠
RENDER CanvasToFramebuffer 50.505 → 60.455 (+19.7%) ⚠
RENDER ComputeLightVolume 26.595 → 30.545 (+14.9%) ⚠
UPDATE FogRevealEval 6.720 → 7.900 (+17.6%) ⚠
RENDER ComputeVoxelAO 6.330 → 7.569 (+19.6%) ⚠
RENDER BakeSunShadowMap 5.914 → 6.819 (+15.3%) ⚠
UPDATE PropagateTransform 5.094 → 6.440 (+26.4%) ⚠
RENDER UpdateVoxelSetChildren 2.678 → 3.760 (+40.4%) ⚠

@evin-mac-claude-app

Copy link
Copy Markdown
Contributor

Every failed workflow on this head is also red on master:

These failures are inherited and are not this pull request's to fix.

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:needs-windows-smoke PR needs windows-debug build + smoke-run validation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

render: restore CanvasStress output moved by rotation-picking merge

1 participant