Skip to content

render: bound Metal frame overlap and pace input [WIP] - #5161

Open
jakildev wants to merge 6 commits into
masterfrom
claude/5000-metal-overlap
Open

jakildev wants to merge 6 commits into
masterfrom
claude/5000-metal-overlap

Conversation

@jakildev

@jakildev jakildev commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

Metal can record the next CPU frame while one submission executes, with completion and resource retirement kept on the main thread. Input pacing and a CPU-bound fallback limit the latency cost.

This amendment rebases the work onto master after PR #5100's render-pass batching. The conflict resolution preserves the merged render-pass lifecycle and the overlap submission/resource-set lifetime rules.

WIP: the exact-base full render comparison now passes, but the required five-pair Release offscreen performance matrix remains blocked by #5159. This PR does not complete #5000 and is not requesting review.

The design and measurement record distinguish the historical pre-rebase 30-run matrix from the current rebased continuation.

Screenshots

Historical exact-parent evidence showed no visual change: 9 of 9 IRCanvasStress RGB pairs were identical, and all 90 decoded clip frames were identical. Published pairs · paired clip.

The current exact-base full render pair also passes its control grade: 376 checks, five inherited #4904 failures, zero moved, zero new. CanvasStress is 59/59, PerfGrid 35/35, ShapeDebug 187/187 and MetalClear 3/3.

Acceptance evidence

Current code commit 4d9947bf5; evidence amendment fafc40672; exact rebased base f6d489ad6.

Criterion Current check Observed
1. Million frame ≤ 1.10 × longer half One fresh final-binary 0° off/on pair Steady frame mean 18.888 → 18.677 ms; one pair is signal only, not the required five pairs
2. ≥90% steady frames start with work in flight Same pair 0/225 off; 224/225 on
3. At most one submitted frame Same pair and focused tests Maximum 0 off, 1 on; no-drawable coverage passes
4. Input mean/p99 within A1 bounds Same pair 18.716 → 18.773 ms mean (+0.057, bound 0.118); 19.182 → 19.314 ms p99 (+0.132, bound 0.361)
5. Presented-pick GUI and fault control Normal and previous-pick preset GUI jobs 49/49 normal; fault control 48/49, only newest_completed_pick_frame, current=0/30
6. Full render gate and nine-yaw identity Exact-base control 20261126T095840Z-render-verify-c221b4; head 20261126T112019Z-render-verify-21fbcd Control grade PASS: 376 checks, five inherited #4904 failures, zero moved; historical nine-yaw set is RGB-identical
7. Headless resource lifetimes Focused IrredenEngineTest run 103 tests in 15 suites pass, including Metal overlap, presented-pick, input-latency, GPU-submission and render-pass coverage
8. No hidden mid-frame drains Fresh 0° pair 0 in both arms; 3 render passes per frame in both arms
9. Capture output/ticks and clean exit Historical exact-parent capture; current render control Historical captures match; full current render comparison passes; Release offscreen profiling is blocked by inherited #5159
10. Report pick age and stale ticks Historical matrix Preserved in the measurement record; current complete matrix not yet available
Additional: lighting fleet-jobs start light-verify -- --if-changed 20261126T122006Z-light-verify-a21e8a succeeded, all checks pass

The historical pre-rebase matrix remains in the measurement record and retains its 0° failures. It is not mixed with or replaced by the single rebased pair.

Verification details

  • fleet-build --target IrredenEngineTest: succeeded after the rebase and shared-math-wrapper cleanup.
  • Focused Metal, presented-pick, input-latency, world-config, GPU-submission and render-pass suite: 103 tests in 15 suites passed; CLEAN.
  • Full render control at exact base: 20261126T095840Z-render-verify-c221b4 recorded 376 checks and the five render: refresh stale macos-debug ShapeDebug and CanvasStress references #4904 baseline failures.
  • Full head comparison: 20261126T112019Z-render-verify-21fbcd succeeded, control grade PASS, five inherited and zero moved.
  • Current light verification: 20261126T122006Z-light-verify-a21e8a succeeded, all checks pass.
  • Normal GUI: 20261126T071354Z-gui-verify-9bb526 succeeded, 49/49.
  • Fault GUI: 20261126T071605Z-gui-verify-41bb2b failed as expected, 48/49, only the injected previous-pick assertion.
  • Fresh final-binary 0° pair: both arms recorded 300 valid GPU frames, no invalid samples, command-buffer errors or skipped frames.
  • Two 300-frame head launches and one separately rebuilt exact-base launch in unattended offscreen mode stayed alive for 120 seconds without reaching engine logging or writing a fresh profile. Each printed Connection Invalid for com.apple.hiservices-xpcservice and _LSModifyNotification error -50.
  • The same head binary completed a five-frame offscreen probe and a 300-frame normal-window probe with QUIET=guarded, RESULT=CLEAN. Normal-window data is not substituted for the commands-as-written offscreen acceptance method. The exact-base reproduction rules out this PR as the cause and is recorded on fleet: macOS engine launches find 0 display monitors while the display is awake #5159.

Plan departures

  • PR render/metal: draw consecutive draws to one target in one render pass (#4994) #5100 merged before this continuation. The rebase preserves its render-pass batching and reports 3 passes per frame in both arms of the fresh pair.
  • Completion still uses a late join and main-thread status polling; callbacks would require synchronization for FrameCompletionQueue and resource retirement.
  • Predicted CPU-bound frames retain serialized present because the preserved experiment showed always-overlap exceeded the latency bound.
  • Input preparation keeps the capped 0.15 ms lead and at most 2 ms active wait. Power cost remains unmeasured.
  • The required matrix remains incomplete because the inherited awake-display offscreen launch failure tracked in fleet: macOS engine launches find 0 display monitors while the display is awake #5159 prevents the commands-as-written Release runs. No favorable subset or normal-window diagnostic is promoted to acceptance evidence.

Blocked-operation record

The following permission failures were recorded once and not retried:

  • ps -Ao pcpu,pid,etime,command | sort -nr | head -25 returned zsh:1: operation not permitted: ps.
  • sample IRPerfGrid 5 -file /private/tmp/fleet-pool-3/IRPerfGrid-release-hang.sample.txt returned Failure calling sysctl to get process list buffer size: Operation not permitted; the process was not accessible to sample.

Parked-until: #5159

Refs #5000

Authored by Codex (GPT-5). Human merge authority preserved.

@jakildev jakildev added fleet:wip Work in progress — not ready for review fleet:awaiting-infra Complete-but-unverifiable PR parked until an infra blocker lands; body carries Parked-until: #N 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 18, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

Parking this useful WIP behind #4994 under the commit-and-push overlap gate. fleet-pr-overlap --base master --repo jakildev/IrredenEngine returned exit 3, VERDICT: block:

#5100 engine/render/include/irreden/render/metal/metal_runtime.hpp conflicts
#5100 engine/render/include/irreden/render/render_device.hpp conflicts
#5100 engine/render/src/metal/metal_render_impl.cpp conflicts

The full overlap report, inherited base-conflict row, unmet performance gates and host recovery instructions are in the PR body. Keep fleet:wip and fleet:awaiting-infra; Parked-until: #4994 is in the body. No review is requested. Provenance stamp read-back: fleet:author-codex, fleet:authored-on-macos.

— worker pool-1, Codex (GPT-6)

@github-actions

Copy link
Copy Markdown

Perf gate

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

perf comparison: 7c08741 → efd8439-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-xeon-platinum-8370c-unknown/7c087414203d0c2baf53b05fb7a0dca285f29615
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/efd84397e-ci

host calibration

  • host: linux-x86_64-xeon-platinum-8370c-unknown (matches baseline)
  • ref_ms: head 116.14 vs baseline 116.12 (load_factor 1.00×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@7c0874142 (branch tip); master 2b1d20122, finished 2026-11-10T06:57:14Z, 7.8 d before the head run, ref_ms 116.12
  • weighting: raw (class-matched capture; load_factor 1.00×; no calibration-scaling entry)
  • attribution: no measured master improvement between capture master 2b1d20122 and merge base 6236f5854 (88 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 262144 → 1024 0 → 0
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.788 → 0.598 (-19.1pp) 156630 → 156630 262144 → 1024 50080 → 0 (0.000×)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 262144 → 1024 0 → 0
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.990 → 0.975 (-1.5pp) 255592 → 255592 262144 → 1024 3862 → 0 (0.000×)

frame timing (ms)

cell avg p99
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 548.57 → 581.51 (+6.0%) 1782.55 → 1860.20 (+4.4%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1400.63 → 1334.93 (-4.7%) 2541.77 → 2443.54 (-3.9%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 644.61 → 693.11 (+7.5%) 8996.10 → 9437.33 (+4.9%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1853.06 → 1866.81 (+0.7%) 2873.31 → 2907.71 (+1.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)

Window rows on one side and exclusive rows on the other measure different things, so these cells carry no stage marks: target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1, target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1, target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1, target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1.

cell canvasClear voxelCompact voxelStage1 voxelCardinalElect voxelStage2 voxelSunFaces textToTrixel buildLightOcclusionGrid computeVoxelAO bakeSunShadowMap computeSunShadow computeLightVolume lightingToTrixel fogToTrixel trixelToFb resolvePerAxisScreenDepth fbToScreen
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 71.90→20.02 62.27→60.65 55.07→51.67 1.44→2.64 58.09→54.96 6.39→90.94 — 0.00→0.00 2.48→2.33 16.98→33.29 20.11→20.39 22.51→22.00 4.13→3.80 1.28→1.18 0.26→0.20 — 9.62→9.07
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 137.15→22.17 430.94→321.90 261.46→249.05 4.58→4.38 260.85→254.49 5.42→158.71 — 0.00→0.00 2.19→2.12 31.54→55.69 19.15→19.58 20.96→22.20 8.96→9.58 1.30→1.37 0.25→0.19 — 9.07→8.81
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 64.31→19.84 74.86→73.49 59.76→57.89 9.37→9.02 51.25→52.60 7.98→87.24 1.55→1.51 0.00→0.00 1.04→6.31 50.12→59.96 19.23→18.80 46.09→45.36 6.82→6.66 1.78→1.75 0.23→0.19 0.00→0.00 10.46→10.23
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 150.17→20.76 545.14→514.69 418.10→399.31 6.86→6.78 407.88→393.02 6.20→170.46 1.56→1.53 0.00→0.00 0.95→2.25 27.72→78.65 18.08→20.54 20.68→23.14 7.22→7.60 1.49→1.52 0.24→0.18 0.00→0.00 9.21→8.76

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 258.186 → 282.859 (+9.6%)
RENDER ComputeLightVolume 42.093 → 41.729 (-0.9%)
RENDER ComputeSunShadow 8.886 → 26.233 (+195.2%) ⚠
RENDER CanvasToFramebuffer 21.871 → 20.953 (-4.2%)
RENDER BakeSunShadowMap 10.411 → 9.215 (-11.5%) ↓
UPDATE FogRevealEval 5.008 → 8.329 (+66.3%) ⚠
UPDATE PropagateTransform 5.175 → 5.266 (+1.8%)
RENDER ComputeVoxelAO 3.926 → 4.142 (+5.5%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1099.483 → 1006.558 (-8.5%) ↓
RENDER ComputeSunShadow 24.535 → 49.507 (+101.8%) ⚠
RENDER ComputeLightVolume 39.483 → 41.263 (+4.5%)
RENDER CanvasToFramebuffer 20.548 → 19.814 (-3.6%)
RENDER LightingToTrixel 9.023 → 9.778 (+8.4%)
RENDER ComputeVoxelAO 8.641 → 9.714 (+12.4%) ⚠
RENDER BakeSunShadowMap 9.093 → 8.441 (-7.2%) ↓
UPDATE FogRevealEval 4.832 → 8.082 (+67.3%) ⚠

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 276.966 → 316.205 (+14.2%) ⚠
RENDER ComputeSunShadow 42.505 → 52.815 (+24.3%) ⚠
RENDER ComputeLightVolume 40.970 → 40.483 (-1.2%)
RENDER LightingToTrixel 25.716 → 25.008 (-2.8%)
RENDER CanvasToFramebuffer 21.682 → 21.228 (-2.1%)
RENDER BakeSunShadowMap 13.045 → 12.582 (-3.5%)
UPDATE FogRevealEval 4.781 → 8.232 (+72.2%) ⚠
UPDATE PropagateTransform 6.438 → 6.344 (-1.5%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1535.741 → 1502.441 (-2.2%)
RENDER ComputeSunShadow 20.850 → 71.816 (+244.4%) ⚠
RENDER ComputeLightVolume 38.296 → 43.186 (+12.8%) ⚠
RENDER CanvasToFramebuffer 20.398 → 19.719 (-3.3%)
RENDER BakeSunShadowMap 9.056 → 8.773 (-3.1%)
RENDER ComputeVoxelAO 7.156 → 8.249 (+15.3%) ⚠
RENDER LightingToTrixel 7.408 → 7.789 (+5.1%)
UPDATE FogRevealEval 4.904 → 7.685 (+56.7%) ⚠

@evin-mac-claude-app

Copy link
Copy Markdown
Contributor

This PR has carried fleet:wip with no activity for 7 days. fleet:wip is a universal skip label — every reviewer role, the merger and the smoke lane stand off it — so nothing automated will touch this PR until it comes off.

Three human moves from here:

  • Remove fleet:wip if the work is ready for review.
  • Close the PR to abandon it; fleet-claim cleanup --gh sweeps the linked issue's claim labels once its TTL passes.
  • Remove fleet:stalled to wait another window — removal re-arms the timer rather than silencing it.

— fleet-stalled-sweep

@evin-mac-claude-app evin-mac-claude-app Bot added fleet:design-unblocked Architect responded; worker resumes per the architect comment + updated plan file fleet:amending-mac-pool-3 labels Nov 26, 2026
@jakildev jakildev removed the fleet:design-unblocked Architect responded; worker resumes per the architect comment + updated plan file label Nov 26, 2026
Track recording and submitted resource lifetimes separately, collect GPU completion on the main thread, and preserve a same-binary blocking switch. Add overlap, drain, and pick-age measurements with headless lifetime coverage. Acceptance validation remains in progress for task #5000.

Authored-by: Codex (GPT-6)
Keep the blocking cadence when CPU work exceeds GPU work, avoiding
additional renders that reuse a fixed update's older input poll. Cap
GPU-bound input lead at 0.15 ms. Preserve final-frame error accounting
when the last overlapped submission is collected at shutdown.

Authored-by: Codex (GPT-6)
Record every final guarded pair, the rejected pacing experiments,
headless and GUI checks, and exact-parent capture comparisons. Keep the
failed zero-degree latency and overlap readings visible. The sleeping
host prevented completion of the full render control.

Authored-by: Codex (GPT-6)
@jakildev
jakildev force-pushed the claude/5000-metal-overlap branch from af82b89 to 5b4211c Compare November 26, 2026 08:03
@jakildev jakildev removed fleet:stalled A fleet:wip PR has been idle 7+ days; human decides to merge / close / re-arm fleet:amending-mac-pool-3 labels Nov 26, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

Addressed feedback:

  • Rebased PR render: bound Metal frame overlap and pace input [WIP] #5161 onto current master after PR render/metal: draw consecutive draws to one target in one render pass (#4994) #5100 and resolved the three named Metal conflicts while preserving both render-pass batching and the overlap submission/resource lifetime rules.
  • Rebuilt and reran focused coverage: 103 tests in 15 suites passed, light verification succeeded, normal ShapeDebug GUI passed 49/49, and the injected presented-pick fault control failed only its expected assertion at current=0/30.
  • Repeated a fresh final-binary million-entity 0° pair. Blocking/overlap steady means were 18.888/18.677 ms; overlap started 224/225 steady frames with GPU work, maximum in flight was 1, and mean/p99 latency deltas stayed within their bounds. This is one signal pair, not the required five-pair matrix.
  • Updated the design, measurement record, and PR acceptance table to distinguish the historical pre-rebase matrix from current evidence. Removed the obsolete render/metal: draw consecutive draws to one target in one render pass #4994 park; the PR remains fleet:wip and does not request review.
  • The complete matrix remains unfinished because subsequent Release launches repeatedly failed before engine logging with macOS launch-service errors. The exact-base full render control was also invalidated by shared GPU-lock timeouts; no head comparison is claimed against it.
  • Reran fleet-pr-overlap --base master --repo jakildev/IrredenEngine after the force-with-lease push. It reported no conflicting rows and ended VERDICT: overlap; the prior PR render/metal: draw consecutive draws to one target in one render pass (#4994) #5100 block is gone.
  • Permission-blocked diagnostics were recorded once and not retried: ps -Ao pcpu,pid,etime,command | sort -nr | head -25 returned zsh:1: operation not permitted: ps; sample IRPerfGrid 5 -file /private/tmp/fleet-pool-3/IRPerfGrid-release-hang.sample.txt failed because its process-list sysctl was not permitted.

— worker pool-3, Codex (GPT-5.6 Sol)

@github-actions

Copy link
Copy Markdown

Perf gate

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

perf comparison: 88f4fda → 8830cda-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/8830cda5d-ci

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 104.04 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, 6.4 d before the head run, ref_ms 105.03
  • weighting: raw (class-matched capture; load_factor 0.99×; no calibration-scaling entry)
  • attribution: no measured master improvement between capture master 34bdd153d and merge base f6d489ad6 (14 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 541.23 → 542.06 (+0.2%) 1913.83 → 1829.63 (-4.4%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1250.91 → 1247.44 (-0.3%) 2508.81 → 2566.18 (+2.3%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 735.85 → 730.89 (-0.7%) 14970.35 → 14883.67 (-0.6%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1814.79 → 1807.91 (-0.4%) 3050.38 → 3123.36 (+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 22.18→22.62 65.86→65.66 55.49→55.63 1.28→0.94 ↓ 50.40→51.21 95.27→91.15 — 0.00→0.00 4.16→4.21 11.82→12.08 0.40→0.36 ↓ 33.43→33.96 1.64→1.63 1.24→1.26 0.17→0.19 0.25→0.30 ⚠ — 8.08→8.04
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 22.63→21.82 323.79→324.42 260.00→259.42 4.09→4.08 225.58→225.41 146.94→142.48 — 0.00→0.00 10.42→10.48 10.67→10.46 0.32→0.34 29.44→30.53 1.86→1.89 1.39→1.30 ↓ 0.16→0.17 0.40→0.38 ↓ — 7.60→7.45
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 20.56→20.46 81.07→79.72 62.20→62.42 13.03→12.79 48.49→48.19 89.37→84.89 ↓ 1.11→1.10 0.00→0.00 16.62→16.48 63.77→62.11 0.61→0.57 ↓ 67.29→67.97 7.43→7.39 1.81→1.79 0.16→0.17 0.62→0.84 ⚠ 0.00→0.00 9.02→9.03
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 21.90→20.59 ↓ 530.39→529.45 425.15→423.36 6.40→6.63 363.80→362.43 153.61→146.85 1.12→1.09 0.00→0.00 8.54→8.47 10.87→10.60 0.31→0.35 ⚠ 28.98→29.67 1.89→1.78 ↓ 1.46→1.30 ↓ 0.18→0.16 ↓ 1.06→1.13 0.00→0.00 7.67→7.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 295.877 → 292.726 (-1.1%)
RENDER CanvasToFramebuffer 38.061 → 39.219 (+3.0%)
RENDER ComputeLightVolume 33.464 → 33.973 (+1.5%)
RENDER BakeSunShadowMap 10.008 → 10.165 (+1.6%)
UPDATE FogRevealEval 6.533 → 6.395 (-2.1%)
UPDATE PropagateTransform 4.642 → 4.990 (+7.5%)
RENDER ComputeVoxelAO 4.341 → 4.381 (+0.9%)
RENDER UpdateVoxelSetChildren 2.881 → 2.903 (+0.8%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 988.226 → 982.926 (-0.5%)
RENDER CanvasToFramebuffer 57.479 → 58.633 (+2.0%)
RENDER ComputeLightVolume 29.481 → 30.655 (+4.0%)
RENDER ComputeVoxelAO 10.735 → 10.793 (+0.5%)
RENDER BakeSunShadowMap 8.782 → 8.568 (-2.4%)
UPDATE FogRevealEval 6.420 → 5.937 (-7.5%) ↓
UPDATE PropagateTransform 4.428 → 4.863 (+9.8%)
RENDER UpdateVoxelSetChildren 2.919 → 2.742 (-6.1%) ↓

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 336.427 → 332.790 (-1.1%)
RENDER CanvasToFramebuffer 59.909 → 58.980 (-1.6%)
RENDER ComputeSunShadow 54.342 → 52.675 (-3.1%)
RENDER LightingToTrixel 36.057 → 35.986 (-0.2%)
RENDER ComputeLightVolume 32.463 → 33.165 (+2.2%)
RENDER BakeSunShadowMap 22.601 → 22.428 (-0.8%)
RENDER FogToTrixel 7.153 → 7.110 (-0.6%)
UPDATE PropagateTransform 6.048 → 6.316 (+4.4%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1506.783 → 1494.317 (-0.8%)
RENDER CanvasToFramebuffer 84.594 → 85.800 (+1.4%)
RENDER ComputeLightVolume 29.056 → 29.718 (+2.3%)
RENDER ComputeVoxelAO 8.777 → 8.691 (-1.0%)
RENDER BakeSunShadowMap 8.915 → 8.633 (-3.2%)
UPDATE PropagateTransform 6.029 → 6.303 (+4.5%)
UPDATE FogRevealEval 5.531 → 5.865 (+6.0%)
UPDATE PeriodicIdle 2.988 → 2.965 (-0.8%)

@evin-mac-claude-app evin-mac-claude-app Bot added fleet:design-unblocked Architect responded; worker resumes per the architect comment + updated plan file fleet:amending-mac-pool-1 labels Nov 26, 2026
@jakildev jakildev removed the fleet:design-unblocked Architect responded; worker resumes per the architect comment + updated plan file label Nov 26, 2026
@jakildev jakildev added fleet:awaiting-infra Complete-but-unverifiable PR parked until an infra blocker lands; body carries Parked-until: #N and removed fleet:amending-mac-pool-1 labels Nov 26, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

Addressed design-unblock feedback:

@github-actions

Copy link
Copy Markdown

Perf gate

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

perf comparison: 69fca9e → 276341a-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/276341a60-ci

host calibration

  • host: linux-x86_64-xeon-6975p-c-03-0-vga (matches baseline)
  • ref_ms: head 70.47 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.7 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.77 (+1.9%) 1178.73 → 1195.15 (+1.4%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 952.59 → 959.93 (+0.8%) 1733.99 → 1752.75 (+1.1%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 522.55 → 537.33 (+2.8%) 7917.82 → 8099.14 (+2.3%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1338.22 → 1365.88 (+2.1%) 2057.07 → 2121.01 (+3.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 16.60→16.94 47.90→47.67 41.41→42.03 0.75→0.85 ⚠ 38.82→39.36 69.82→66.96 — 0.00→0.00 2.61→2.66 7.26→7.38 0.33→0.35 25.64→26.32 1.13→1.16 0.94→0.95 0.17→0.17 0.21→0.24 ⚠ — 6.63→6.78
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 17.12→17.19 239.26→240.34 181.47→183.23 3.27→3.03 ↓ 163.78→165.17 113.60→113.79 — 0.00→0.00 6.72→6.75 6.76→6.68 0.44→0.37 ↓ 22.78→21.88 1.21→1.27 1.00→1.01 0.15→0.15 0.28→0.30 — 6.47→6.40
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 15.62→15.97 57.12→57.32 44.48→45.21 6.53→6.95 35.43→36.72 65.20→62.66 1.35→1.29 0.00→0.00 4.58→4.76 35.36→35.84 0.50→0.58 ⚠ 41.62→40.61 4.39→4.55 1.39→1.42 0.16→0.16 0.16→0.20 ⚠ 0.00→0.00 7.17→7.39
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 16.28→16.05 391.14→397.64 293.08→299.18 4.68→4.76 261.74→267.00 127.44→122.87 1.27→1.29 0.00→0.00 5.50→5.66 6.51→6.37 0.34→0.35 22.01→21.95 1.13→1.17 1.12→1.13 0.14→0.16 ⚠ 0.49→0.50 0.00→0.00 6.37→6.57

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.352 (-0.6%)
RENDER ComputeLightVolume 25.633 → 26.371 (+2.9%)
RENDER CanvasToFramebuffer 25.042 → 25.954 (+3.6%)
UPDATE FogRevealEval 8.013 → 7.942 (-0.9%)
RENDER BakeSunShadowMap 5.958 → 6.100 (+2.4%)
UPDATE PropagateTransform 3.601 → 3.611 (+0.3%)
UPDATE LuaWaveStateToOffset 2.725 → 3.533 (+29.7%) ⚠
RENDER UpdateVoxelSetChildren 2.566 → 3.138 (+22.3%) ⚠

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 723.097 → 727.323 (+0.6%)
RENDER CanvasToFramebuffer 35.845 → 36.710 (+2.4%)
RENDER ComputeLightVolume 22.987 → 21.987 (-4.4%)
UPDATE FogRevealEval 7.998 → 8.066 (+0.9%)
RENDER ComputeVoxelAO 7.066 → 7.025 (-0.6%)
RENDER BakeSunShadowMap 5.269 → 5.086 (-3.5%)
UPDATE PropagateTransform 3.460 → 3.534 (+2.1%)
UPDATE LuaWaveStateToOffset 3.151 → 3.357 (+6.5%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 236.960 → 237.405 (+0.2%)
RENDER CanvasToFramebuffer 36.139 → 37.304 (+3.2%)
RENDER ComputeSunShadow 29.622 → 29.995 (+1.3%)
RENDER ComputeLightVolume 24.279 → 23.711 (-2.3%)
RENDER LightingToTrixel 18.460 → 18.148 (-1.7%)
RENDER BakeSunShadowMap 8.197 → 8.415 (+2.7%)
UPDATE FogRevealEval 6.799 → 7.630 (+12.2%) ⚠
UPDATE PropagateTransform 4.704 → 4.837 (+2.8%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1098.407 → 1112.237 (+1.3%)
RENDER CanvasToFramebuffer 44.368 → 46.131 (+4.0%)
RENDER ComputeLightVolume 22.118 → 22.067 (-0.2%)
UPDATE FogRevealEval 6.842 → 7.689 (+12.4%) ⚠
RENDER ComputeVoxelAO 5.722 → 5.908 (+3.3%)
RENDER BakeSunShadowMap 5.252 → 5.117 (-2.6%)
UPDATE PropagateTransform 4.877 → 4.704 (-3.5%)
RENDER UpdateVoxelSetChildren 2.772 → 3.183 (+14.8%) ⚠

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:awaiting-infra Complete-but-unverifiable PR parked until an infra blocker lands; body carries Parked-until: #N fleet:wip Work in progress — not ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant