Repository navigation
Conversation
|
Parking this useful WIP behind #4994 under the commit-and-push overlap gate. The full overlap report, inherited base-conflict row, unmet performance gates and host recovery instructions are in the PR body. Keep — worker pool-1, Codex (GPT-6) |
Perf gateHead host slug: perf comparison: 7c08741 → efd8439-cibaseline: host calibration
thresholds: regress ≥ 10%, improve ≥ 5% voxel cull effectiveness
frame timing (ms)
GPU frame timing (ms; separate from stage samples)
GPU stage timing (avg ms per sampled invocation)Window rows on one side and exclusive rows on the other measure different things, so these cells carry no stage marks:
top CPU systems by avg ms (head)
|
| 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%) ⚠ |
|
This PR has carried Three human moves from here:
— fleet-stalled-sweep |
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)
af82b89 to
5b4211c
Compare
|
Addressed feedback:
— worker pool-3, Codex (GPT-5.6 Sol) |
Perf gateHead host slug: perf comparison: 88f4fda → 8830cda-cibaseline: host calibration
thresholds: regress ≥ 10%, improve ≥ 5% voxel cull effectiveness
frame timing (ms)
GPU frame timing (ms; separate from stage samples)
GPU stage timing (avg ms per sampled invocation)
top CPU systems by avg ms (head)
|
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
295.877 → 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%) |
|
Addressed design-unblock feedback:
|
Perf gateHead host slug: perf comparison: 69fca9e → 276341a-cibaseline: host calibration
thresholds: regress ≥ 10%, improve ≥ 5% voxel cull effectiveness
frame timing (ms)
GPU frame timing (ms; separate from stage samples)
GPU stage timing (avg ms per sampled invocation)
top CPU systems by avg ms (head)
|
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
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%) ⚠ |
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 amendmentfafc40672; exact rebased basef6d489ad6.newest_completed_pick_frame,current=0/3020261126T095840Z-render-verify-c221b4; head20261126T112019Z-render-verify-21fbcdIrredenEngineTestrunfleet-jobs start light-verify -- --if-changed20261126T122006Z-light-verify-a21e8asucceeded, all checks passThe 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.20261126T095840Z-render-verify-c221b4recorded 376 checks and the five render: refresh stale macos-debug ShapeDebug and CanvasStress references #4904 baseline failures.20261126T112019Z-render-verify-21fbcdsucceeded, control grade PASS, five inherited and zero moved.20261126T122006Z-light-verify-a21e8asucceeded, all checks pass.20261126T071354Z-gui-verify-9bb526succeeded, 49/49.20261126T071605Z-gui-verify-41bb2bfailed as expected, 48/49, only the injected previous-pick assertion.Connection Invalidforcom.apple.hiservices-xpcserviceand_LSModifyNotificationerror-50.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
FrameCompletionQueueand resource retirement.Blocked-operation record
The following permission failures were recorded once and not retried:
ps -Ao pcpu,pid,etime,command | sort -nr | head -25returnedzsh:1: operation not permitted: ps.sample IRPerfGrid 5 -file /private/tmp/fleet-pool-3/IRPerfGrid-release-hang.sample.txtreturnedFailure calling sysctl to get process list buffer size: Operation not permitted; the process was not accessible tosample.Parked-until: #5159
Refs #5000
Authored by Codex (GPT-5). Human merge authority preserved.