Skip to content

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

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

jakildev wants to merge 3 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 9f5603ee9. 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 now 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; fleet-run --timeout 15 IrredenEngineTest --gtest_filter=PositionUploadTest.OverflowSortHandlesFirstPopulationAndCountTransitions; python3 scripts/light-verify.py --if-changed Both build targets and header checks passed on 9f5603ee9; the focused GPU test exited cleanly but skipped because this session exposes no Metal device. Light verification is blocked on this host session: detached job 20261126T070134Z-light-verify-c5d6a3 and the single direct rerun both ended RESULT=NO-DISPLAY / exit 69 after Discovered 0 display monitors. The prior head's audited light-verify run passed; new-head display-backed validation remains required.
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 9f5603ee9 could not obtain display-backed evidence because the host session had no WindowServer connection. The build and source-level checks passed; the PR remains gated for a display-capable macOS validation.

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%) ⚠

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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-macos-host Remaining work needs a macOS host; non-mac panes skip (dispatch, claim, amending-claim) 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 fleet:reviewing-mac-pool-6

Projects

None yet

Development

Successfully merging this pull request may close these issues.

render: restore CanvasStress output moved by rotation-picking merge

1 participant