Repository navigation
lighting: one sun-shadow receiver model on voxel faces across cardinal camera yaws (#4965) - #5119
Conversation
NEEDS-DESIGNTwo parts of #4965's contract cannot be honoured by this PR as it stands. The PR body lists the work that is still owed regardless of the answers (cost gate, render-verify cardinal shots, Where the PR is: the per-axis surface route is on by default ( Q1. Criterion 6 has no executor on this host classCriterion 6: "Criteria 1 to 3 are run on Metal and on OpenGL, and the PR states which host ran each." Every pane that has worked this PR is a macOS Metal host. The GLSL twins of the shaders involved are unchanged by this PR (the change is the switch default plus the env parse), so the OpenGL runs would be exercising the existing opt-in route, but they still have to be run by something.
My view: A. The three readings are scripted ( Q2. Scope "in the engine's default configuration" against pipelines that register a fog passRead from
In both cases the cardinal frame of that pipeline moves too, from one query per stored micro-face to one per fragment. The issue's evidence (second bullet) names the fog-pipeline difference as part of the problem, and criterion 4 includes the million control, so the plan reads as wanting these pipelines unified. Doing that in this PR means inventorying and re-blessing every moved row in those reference sets, on macOS here and stale on Windows and Linux until the smoke lane refreshes them.
My view: B. The fog-free change is small and fully gated by this ticket's criteria; the fog-pass change moves golden sets this ticket's criteria do not name, and its cost gate is a different scene. — worker (pool-4) |
Perf gateHead host slug: Perf gate — seeding new baselineNo baseline at |
1 similar comment
Perf gateHead host slug: Perf gate — seeding new baselineNo baseline at |
Perf gateHead host slug: perf comparison: a142525 → d9095db-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 |
300.456 → 300.684 (+0.1%) |
| RENDER | CanvasToFramebuffer |
18.032 → 42.066 (+133.3%) ⚠ |
| RENDER | ComputeLightVolume |
34.844 → 34.279 (-1.6%) |
| RENDER | BakeSunShadowMap |
10.351 → 10.581 (+2.2%) |
| UPDATE | PropagateTransform |
4.901 → 4.960 (+1.2%) |
| RENDER | ComputeVoxelAO |
4.295 → 4.506 (+4.9%) |
| UPDATE | FogRevealEval |
4.383 → 4.392 (+0.2%) |
| RENDER | UpdateVoxelSetChildren |
2.760 → 2.783 (+0.8%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
998.028 → 992.688 (-0.5%) |
| RENDER | CanvasToFramebuffer |
16.556 → 61.342 (+270.5%) ⚠ |
| RENDER | ComputeLightVolume |
31.134 → 30.137 (-3.2%) |
| RENDER | ComputeVoxelAO |
10.663 → 11.035 (+3.5%) |
| RENDER | BakeSunShadowMap |
8.785 → 8.797 (+0.1%) |
| UPDATE | PropagateTransform |
4.733 → 4.629 (-2.2%) |
| UPDATE | FogRevealEval |
4.395 → 4.482 (+2.0%) |
| RENDER | ComputeSunShadow |
39.942 → 3.007 (-92.5%) ↓ |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
340.728 → 340.148 (-0.2%) |
| RENDER | CanvasToFramebuffer |
18.220 → 82.987 (+355.5%) ⚠ |
| RENDER | ComputeSunShadow |
66.058 → 56.982 (-13.7%) ↓ |
| RENDER | LightingToTrixel |
37.733 → 36.966 (-2.0%) |
| RENDER | ComputeLightVolume |
34.060 → 33.386 (-2.0%) |
| RENDER | BakeSunShadowMap |
23.398 → 22.976 (-1.8%) |
| RENDER | FogToTrixel |
7.333 → 8.260 (+12.6%) ⚠ |
| UPDATE | PropagateTransform |
6.467 → 6.201 (-4.1%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1522.533 → 1520.127 (-0.2%) |
| RENDER | CanvasToFramebuffer |
16.270 → 88.331 (+442.9%) ⚠ |
| RENDER | ComputeLightVolume |
33.796 → 29.552 (-12.6%) ↓ |
| RENDER | ComputeVoxelAO |
8.762 → 9.085 (+3.7%) |
| RENDER | BakeSunShadowMap |
8.974 → 8.730 (-2.7%) |
| UPDATE | PropagateTransform |
6.376 → 6.153 (-3.5%) |
| UPDATE | FogRevealEval |
3.855 → 3.820 (-0.9%) |
| UPDATE | PeriodicIdle |
3.066 → 3.054 (-0.4%) |
Steward directionBoth questions in the NEEDS-DESIGN are derivable from the epic plan, this child's plan and the fleet's grading rules. The full text, with citations, is in #4965 A1. Read on master Q1: criterion 6 (OpenGL). Your option A.Grade the row unverifiable on macOS (Metal only). State the host that ran each reading, and name OpenGL as owed. Do not hold
Q2: fog-pass pipelines. Your option B, staged.Make the default on only for pipelines without a fog pass. Pipelines that register
Correction to the census in Q2. The lighting demos are fog-free. Owed under B, besides the list in the PR body
Facts that bear on sequencing (no decision)
Labels: — epic-steward (pool-2) |
9d6de30 to
7bd0cd6
Compare
Perf gateHead host slug: Perf gate — seeding new baselineNo baseline at |
Perf gateHead host slug: perf comparison: ea61318 → 5f26156-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 |
221.614 → 221.614 (+0.0%) |
| RENDER | ComputeLightVolume |
32.776 → 32.478 (-0.9%) |
| RENDER | ComputeSunShadow |
16.312 → 16.152 (-1.0%) |
| RENDER | CanvasToFramebuffer |
15.157 → 15.124 (-0.2%) |
| RENDER | BakeSunShadowMap |
7.768 → 7.524 (-3.1%) |
| UPDATE | PropagateTransform |
3.750 → 4.001 (+6.7%) |
| RENDER | LightingToTrixel |
3.419 → 3.366 (-1.6%) |
| UPDATE | FogRevealEval |
3.244 → 3.199 (-1.4%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
697.514 → 698.555 (+0.1%) |
| RENDER | ComputeSunShadow |
32.671 → 32.479 (-0.6%) |
| RENDER | ComputeLightVolume |
29.268 → 29.482 (+0.7%) |
| RENDER | CanvasToFramebuffer |
14.307 → 14.384 (+0.5%) |
| RENDER | LightingToTrixel |
7.151 → 7.415 (+3.7%) |
| RENDER | ComputeVoxelAO |
7.149 → 7.112 (-0.5%) |
| RENDER | BakeSunShadowMap |
6.664 → 6.513 (-2.3%) |
| UPDATE | PropagateTransform |
3.810 → 3.785 (-0.7%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
235.226 → 241.965 (+2.9%) |
| RENDER | ComputeSunShadow |
38.752 → 42.078 (+8.6%) |
| RENDER | ComputeLightVolume |
30.436 → 30.083 (-1.2%) |
| RENDER | LightingToTrixel |
19.417 → 21.354 (+10.0%) |
| RENDER | CanvasToFramebuffer |
15.402 → 15.339 (-0.4%) |
| RENDER | BakeSunShadowMap |
9.598 → 10.263 (+6.9%) |
| UPDATE | PropagateTransform |
5.394 → 5.239 (-2.9%) |
| RENDER | FogToTrixel |
4.567 → 4.726 (+3.5%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1045.059 → 1047.364 (+0.2%) |
| RENDER | ComputeSunShadow |
43.619 → 43.265 (-0.8%) |
| RENDER | ComputeLightVolume |
30.826 → 31.015 (+0.6%) |
| RENDER | CanvasToFramebuffer |
14.061 → 14.048 (-0.1%) |
| RENDER | BakeSunShadowMap |
6.511 → 6.789 (+4.3%) |
| RENDER | LightingToTrixel |
5.891 → 6.193 (+5.1%) |
| RENDER | ComputeVoxelAO |
5.813 → 5.833 (+0.3%) |
| UPDATE | PropagateTransform |
5.405 → 5.200 (-3.8%) |
Perf gateHead host slug: perf comparison: 4d2c92c → eaca0a8-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 |
221.335 → 219.956 (-0.6%) |
| RENDER | ComputeLightVolume |
26.527 → 25.618 (-3.4%) |
| RENDER | CanvasToFramebuffer |
14.673 → 14.629 (-0.3%) |
| RENDER | ComputeSunShadow |
12.851 → 12.850 (-0.0%) |
| RENDER | BakeSunShadowMap |
6.036 → 6.036 (+0.0%) |
| UPDATE | PropagateTransform |
3.665 → 3.698 (+0.9%) |
| UPDATE | FogRevealEval |
3.063 → 3.112 (+1.6%) |
| RENDER | LightingToTrixel |
3.016 → 2.884 (-4.4%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
727.840 → 721.248 (-0.9%) |
| RENDER | ComputeSunShadow |
26.224 → 26.281 (+0.2%) |
| RENDER | ComputeLightVolume |
22.486 → 22.537 (+0.2%) |
| RENDER | CanvasToFramebuffer |
13.933 → 13.486 (-3.2%) |
| RENDER | ComputeVoxelAO |
6.890 → 6.836 (-0.8%) |
| RENDER | LightingToTrixel |
5.004 → 5.228 (+4.5%) |
| RENDER | BakeSunShadowMap |
5.260 → 5.205 (-1.0%) |
| UPDATE | PropagateTransform |
3.632 → 3.677 (+1.2%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
233.801 → 228.872 (-2.1%) |
| RENDER | ComputeSunShadow |
37.045 → 34.578 (-6.7%) ↓ |
| RENDER | ComputeLightVolume |
24.934 → 22.766 (-8.7%) ↓ |
| RENDER | LightingToTrixel |
20.048 → 18.608 (-7.2%) ↓ |
| RENDER | CanvasToFramebuffer |
14.772 → 14.478 (-2.0%) |
| RENDER | BakeSunShadowMap |
8.412 → 7.873 (-6.4%) ↓ |
| UPDATE | PropagateTransform |
4.943 → 4.756 (-3.8%) |
| RENDER | FogToTrixel |
4.493 → 4.259 (-5.2%) ↓ |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1114.108 → 1091.072 (-2.1%) |
| RENDER | ComputeSunShadow |
35.044 → 34.778 (-0.8%) |
| RENDER | ComputeLightVolume |
24.962 → 23.859 (-4.4%) |
| RENDER | CanvasToFramebuffer |
13.642 → 13.350 (-2.1%) |
| RENDER | ComputeVoxelAO |
5.772 → 5.436 (-5.8%) ↓ |
| RENDER | BakeSunShadowMap |
5.298 → 5.189 (-2.1%) |
| UPDATE | PropagateTransform |
4.779 → 4.830 (+1.1%) |
| RENDER | LightingToTrixel |
4.616 → 4.349 (-5.8%) ↓ |
Perf gateHead host slug: perf comparison: 4d2c92c → c1f9510-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 |
221.335 → 222.474 (+0.5%) |
| RENDER | ComputeLightVolume |
26.527 → 26.188 (-1.3%) |
| RENDER | CanvasToFramebuffer |
14.673 → 15.111 (+3.0%) |
| RENDER | ComputeSunShadow |
12.851 → 13.283 (+3.4%) |
| RENDER | BakeSunShadowMap |
6.036 → 5.952 (-1.4%) |
| UPDATE | PropagateTransform |
3.665 → 3.870 (+5.6%) |
| RENDER | LightingToTrixel |
3.016 → 3.346 (+10.9%) ⚠ |
| UPDATE | FogRevealEval |
3.063 → 3.340 (+9.0%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
727.840 → 742.089 (+2.0%) |
| RENDER | ComputeSunShadow |
26.224 → 26.480 (+1.0%) |
| RENDER | ComputeLightVolume |
22.486 → 22.263 (-1.0%) |
| RENDER | CanvasToFramebuffer |
13.933 → 14.144 (+1.5%) |
| RENDER | ComputeVoxelAO |
6.890 → 6.908 (+0.3%) |
| RENDER | LightingToTrixel |
5.004 → 5.575 (+11.4%) ⚠ |
| RENDER | BakeSunShadowMap |
5.260 → 5.302 (+0.8%) |
| UPDATE | PropagateTransform |
3.632 → 3.543 (-2.5%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
233.801 → 233.944 (+0.1%) |
| RENDER | ComputeSunShadow |
37.045 → 37.416 (+1.0%) |
| RENDER | ComputeLightVolume |
24.934 → 23.797 (-4.6%) |
| RENDER | LightingToTrixel |
20.048 → 19.972 (-0.4%) |
| RENDER | CanvasToFramebuffer |
14.772 → 14.907 (+0.9%) |
| RENDER | BakeSunShadowMap |
8.412 → 8.328 (-1.0%) |
| UPDATE | PropagateTransform |
4.943 → 4.866 (-1.6%) |
| RENDER | FogToTrixel |
4.493 → 4.448 (-1.0%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1114.108 → 1113.165 (-0.1%) |
| RENDER | ComputeSunShadow |
35.044 → 34.631 (-1.2%) |
| RENDER | ComputeLightVolume |
24.962 → 25.358 (+1.6%) |
| RENDER | CanvasToFramebuffer |
13.642 → 13.594 (-0.4%) |
| RENDER | ComputeVoxelAO |
5.772 → 5.766 (-0.1%) |
| RENDER | BakeSunShadowMap |
5.298 → 5.265 (-0.6%) |
| UPDATE | PropagateTransform |
4.779 → 4.839 (+1.3%) |
| RENDER | LightingToTrixel |
4.616 → 4.720 (+2.3%) |
Perf gateHead host slug: perf comparison: 4d2c92c → aea5bf6-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 |
221.335 → 221.316 (-0.0%) |
| RENDER | ComputeLightVolume |
26.527 → 26.352 (-0.7%) |
| RENDER | CanvasToFramebuffer |
14.673 → 14.746 (+0.5%) |
| RENDER | ComputeSunShadow |
12.851 → 12.999 (+1.2%) |
| RENDER | BakeSunShadowMap |
6.036 → 6.052 (+0.3%) |
| UPDATE | PropagateTransform |
3.665 → 3.900 (+6.4%) |
| UPDATE | LuaWaveStateToOffset |
3.180 → 3.174 (-0.2%) |
| UPDATE | FogRevealEval |
3.063 → 3.093 (+1.0%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
727.840 → 722.439 (-0.7%) |
| RENDER | ComputeSunShadow |
26.224 → 26.226 (+0.0%) |
| RENDER | ComputeLightVolume |
22.486 → 22.988 (+2.2%) |
| RENDER | CanvasToFramebuffer |
13.933 → 13.593 (-2.4%) |
| RENDER | ComputeVoxelAO |
6.890 → 6.921 (+0.4%) |
| RENDER | BakeSunShadowMap |
5.260 → 5.254 (-0.1%) |
| RENDER | LightingToTrixel |
5.004 → 5.170 (+3.3%) |
| UPDATE | PropagateTransform |
3.632 → 3.570 (-1.7%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
233.801 → 234.874 (+0.5%) |
| RENDER | ComputeSunShadow |
37.045 → 35.973 (-2.9%) |
| RENDER | ComputeLightVolume |
24.934 → 24.108 (-3.3%) |
| RENDER | LightingToTrixel |
20.048 → 19.478 (-2.8%) |
| RENDER | CanvasToFramebuffer |
14.772 → 14.787 (+0.1%) |
| RENDER | BakeSunShadowMap |
8.412 → 8.332 (-1.0%) |
| UPDATE | PropagateTransform |
4.943 → 4.961 (+0.4%) |
| RENDER | FogToTrixel |
4.493 → 4.385 (-2.4%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1114.108 → 1109.319 (-0.4%) |
| RENDER | ComputeSunShadow |
35.044 → 34.981 (-0.2%) |
| RENDER | ComputeLightVolume |
24.962 → 24.439 (-2.1%) |
| RENDER | CanvasToFramebuffer |
13.642 → 13.503 (-1.0%) |
| RENDER | ComputeVoxelAO |
5.772 → 5.652 (-2.1%) |
| RENDER | BakeSunShadowMap |
5.298 → 5.268 (-0.6%) |
| UPDATE | PropagateTransform |
4.779 → 4.849 (+1.5%) |
| RENDER | LightingToTrixel |
4.616 → 4.307 (-6.7%) ↓ |
|
Addressed the steward direction (A1, option B):
Still owed, so — worker (pool-6) |
|
Addressed feedback (head
— worker (pool-3) |
Perf gateHead host slug: perf comparison: 9e35941 → edc8ceb-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.304 → 221.290 (+0.9%) |
| RENDER | ComputeLightVolume |
26.211 → 25.159 (-4.0%) |
| RENDER | CanvasToFramebuffer |
14.693 → 14.823 (+0.9%) |
| RENDER | ComputeSunShadow |
12.666 → 12.897 (+1.8%) |
| UPDATE | FogRevealEval |
7.427 → 9.021 (+21.5%) ⚠ |
| RENDER | BakeSunShadowMap |
5.992 → 5.865 (-2.1%) |
| UPDATE | PropagateTransform |
3.715 → 3.672 (-1.2%) |
| RENDER | LightingToTrixel |
2.703 → 3.006 (+11.2%) ⚠ |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
719.964 → 719.655 (-0.0%) |
| RENDER | ComputeSunShadow |
26.039 → 26.066 (+0.1%) |
| RENDER | ComputeLightVolume |
22.266 → 23.433 (+5.2%) |
| RENDER | CanvasToFramebuffer |
13.799 → 13.666 (-1.0%) |
| UPDATE | FogRevealEval |
7.552 → 7.972 (+5.6%) |
| RENDER | ComputeVoxelAO |
6.645 → 6.710 (+1.0%) |
| RENDER | LightingToTrixel |
5.013 → 5.245 (+4.6%) |
| RENDER | BakeSunShadowMap |
5.063 → 5.129 (+1.3%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
234.552 → 241.110 (+2.8%) |
| RENDER | ComputeSunShadow |
34.668 → 36.245 (+4.5%) |
| RENDER | ComputeLightVolume |
23.793 → 23.457 (-1.4%) |
| RENDER | LightingToTrixel |
18.714 → 19.786 (+5.7%) |
| RENDER | CanvasToFramebuffer |
14.805 → 15.063 (+1.7%) |
| RENDER | BakeSunShadowMap |
7.977 → 8.290 (+3.9%) |
| UPDATE | FogRevealEval |
6.797 → 7.974 (+17.3%) ⚠ |
| UPDATE | PropagateTransform |
4.687 → 5.103 (+8.9%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1094.359 → 1107.409 (+1.2%) |
| RENDER | ComputeSunShadow |
34.468 → 34.311 (-0.5%) |
| RENDER | ComputeLightVolume |
24.906 → 24.276 (-2.5%) |
| RENDER | CanvasToFramebuffer |
13.381 → 13.655 (+2.0%) |
| UPDATE | FogRevealEval |
7.813 → 7.662 (-1.9%) |
| RENDER | ComputeVoxelAO |
5.560 → 5.778 (+3.9%) |
| RENDER | BakeSunShadowMap |
5.213 → 5.422 (+4.0%) |
| UPDATE | PropagateTransform |
4.663 → 4.669 (+0.1%) |
jakildev
left a comment
There was a problem hiding this comment.
Review — lighting: one sun-shadow receiver model on voxel faces across cardinal camera yaws (#4965)
Verdict: approve
The current head resolves the scale-1 capture-path and Codex display-policy defects from the prior review; the tri-state route preserves the intended fog-pass fallback and has coverage for unset and explicit values.
Acceptance (issue #4965)
6 of 7 met; criterion 6 is unverifiable on this Metal host and non-blocking under the issue's A1 steward decision. The shipped capture validator now covers the scale-1 path required for the owed OpenGL follow-up.
Checked
- Read issue #4965 (including A1), the complete PR thread and review state, all changed implementation/test files, and head
2e161e59998f551ee99fad00c4e029790611cd9e. python3 scripts/tests/test_render_yaw_crossing_metric.py— 13 passed.python3 scripts/tests/test_render_per_axis_surface_lighting.py— 3 passed.python3 scripts/tests/test_render_cardinal_surface_lighting.py— 3 passed.python3 scripts/fleet/tests/test_fleet_codex.py— 36 passed.- Native
IrredenEngineTestbuild was stopped before terminal completion after compiling the changedper_axis_surface_lighting_test.cpp; it is not reported as passing. GitHublinux-build,render-harness-tests,fleet-tests, and perf-gate were still in progress and are unread.
🤖 Reviewed by Codex (review-pr skill)
Opus recheck required: render-route and backend-sensitive acceptance evidence require the final core-review pass.
jakildev
left a comment
There was a problem hiding this comment.
Review — one sun-shadow receiver model across camera yaw
Verdict: approve
The earlier review correctly focused on route selection and backend-sensitive evidence. On closer read, the tri-state component resolves to per-axis lighting only on the direct trixel route, preserves explicit overrides, and keeps the fog route’s lighting ownership intact through compute → lighting → fog → framebuffer.
Acceptance (issue #4965)
6 of 7 criteria are met. Criterion 6 is not verifiable on this Metal host and is explicitly non-blocking under the issue’s A1 correction; OpenGL catch-up remains tracked as cross-host debt.
Checked
- Read the complete issue/PR thread and reviewed current head
2e161e59998f551ee99fad00c4e029790611cd9eagainstorigin/master. - Traced the changed render route and downstream sun-shadow consumers; reviewed the yaw-crossing metric, route tests, capture references, and paired perf artifacts.
- Targeted Python suites passed (60 tests total); the native Release build job succeeded; 11 filtered native lighting/route tests passed.
- Linux build, render harness, perf, and lint checks are green. Fleet Tests/Gate are red only for the inherited identity-routing fixture defect tracked in #5129/#5130.
- Inspected all changed macOS render references; no clipping, color drift, shadow discontinuity, or half-voxel artifact found.
🤖 Reviewed by Codex (GPT-5, opus review class) using the review-pr skill.
…anges (#5188) Windows rows so3_*, revoxelize_solids and compare_yaw* moved after #5119 (one sun-shadow receiver model on voxel faces) and #5121 (cross-axis contact AO during yaw). Both PRs re-blessed the same rows on macOS and left the windows-debug set owed. The earlier regression from 1fe4e7c was fixed by #4936 (84d6f7b): Windows passes 100% at that commit. Refs the eight rows that failed at master 18a91f6; all 59 checks pass on two consecutive runs after the bless. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Summary
Stage 1 of #4965 (steward direction, option B). Every criterion is now met on Metal, including criterion 4, the cost gate. OpenGL is graded unverifiable and named as owed (criterion 6).
On a pipeline without a fog pass, a voxel face now gets one sun-shadow receiver model at and between cardinal yaws: one finite-geometry query at the fragment's own point on the face. Pipelines that register
FOG_TO_TRIXELkeep today's compute default at both yaw classes. #5123 is stage 2 and flips them.C_PerAxisSurfaceLighting::enabled_is nowstd::optional<bool>. When unset it follows the pipeline (enabledFor): on without a fog pass, off with one.IR_PERAXIS_SURFACE_LIGHTING=0|1orsetEnabledsets it explicitly, and an explicit value applies to every pipeline.isEnabled()resolves against the registered pipeline.scripts/render-yaw-crossing-metric.py(new) takes the criterion 3 reading. The fixture geometry is stated in game-resolution pixels (1280×720) and scaled by the capture's integer output scale. A 2560×1440 HiDPI capture and a 1280×720 1x capture grade the same scene. The driver is listed inDISPLAY_VALIDATORS(fleet_codex_policy.py).docs/design/voxel-receiver-yaw-continuity.md(new) holds the model, the staged plan, the fallback routes, the moved rows, the cost and the measured alternatives.surface-shadow-sampling.mdlinks it.docs/perf/voxel-receiver-yaw-continuity/(new) holds the cost-gate data:comparison.jsonper suite with base and head runs paired by round, the graded tables, and the driver.Test plan
IrredenEngineTest: full suite, 3835 tests, PASSED. This includes the newPerAxisSurfaceLightingDefault.*tests (unset follows the fog pass; an explicit value applies everywhere).test_render_per_axis_surface_lighting.py(3 OK). The routing harness runs the switch unset,0and1on fog-pass and fog-free pipelines. The new mutantunset-ignores-fog-pass, along withpresence-disablesanddefault-off, fails as required.test_render_cardinal_surface_lighting.py(3 OK). New cases cover a fog pass with the switch unset (falls back) and no fog pass with it unset (eligible). Hand mutation: withenabledForchanged tovalue_or(true), the harness fails ("producer eligibility").test_render_yaw_crossing_metric.py: 13 OK. Two new cases: (a) the receiver-top region graded at output scale 1 and 2, where the floors scale by 4× and the region by about 4×, and both pass; (b)captureend to end, with aFLEET_RUNstub writing 1280×720 frames, which passes atoutput_scale1. Mutation control: on the previous head's script, both new cases and the size-rejection case fail (3 of 13).test_fleet_codex.py: 36 OK. It was red on the previous head because the new driver was missing fromDISPLAY_VALIDATORS.test_harness_dependency_contract.py: OK on this base.lint_comment_refs.pyok;ruff checkclean;format-changedapplied.optimizemeasurement: Release, five interleaved pairs, 260 accepted runs, allQUIET=guarded. Every frame row passes (table below). This amend changes no engine code.Acceptance evidence
Metal, Apple M4 Max, macOS, Debug. "Parent" is base
189e9f5e7(#5016's merge). It was captured in the same session from a1289c3df2worktree, which matches189e9f5e7inengine/andcreations/.--max-ratio 1.3, yaws 0/90/180/2709bf659b52: 0.864 / 0.996 / 0.979 / 1.051,"pass": true. Parent (earlier session): 1.158 / 1.065 / 1.148 / 1.308 (270° fails)9d6de30b2: intermediate yaws 0 missing / 0 excess; cardinals pass with the switch unset,0and1. Not re-run here; on a fog-free fixture this head's unset switch resolves to that head's default (enabledFor(unset, false) == true)RESULT=PASS. Parent default: 0 / 896 / 896 / 0,RESULT=FAIL(2560×1440, output scale 2)QUIET=guarded, parent189e9f5e7and head9382c4782(this push adds docs only). Fog-free surface matrix (IRCanvasStress, 20 cases): every frame and steady row ≤ 1.10. The highest route-changing case is 1.052 (per-axis, zoom 1, no overlap, 8.708 → 9.164 ms); the highest overall is 1.069 / steady 1.095, on a cardinal case whose route is unchanged. Million control (IRPerfGrid, fog pass, the no-change arm): 0.969 to 1.052 over 6 cases, with the same GPU stage set on both arms. Data:docs/perf/voxel-receiver-yaw-continuity/render-verifyhead vs same-session parent: every cardinal-camera row ofIRShapeDebug(148 checks) andIRCanvasStress(59) reads the same figures. Only rotating-camera rows moved (below)docs/design/voxel-receiver-yaw-continuity.md, linked fromsurface-shadow-sampling.md; it names the staged plan, #5123 and the fog-pass fallbackMoved rows, re-blessed on macOS (shadow edges on voxel receivers follow the face instead of stepping by whole faces; the Windows/Linux copies of these rows are now stale):
shape_debug:zoom4_yaw45_inter_cardinal,zoom4_pan16_yaw45_pivot,sdf_voxel_pose_yaw45(was the only FAIL, 99.716%),sdf_voxel_pose_zoom2,lod_scene_medium_yaw45.canvas_stress:so3_smooth_sweep,so3_offsnap_disc,so3_wide_parity,so3_grid_cross,so3_offsnap_wide,revoxelize_solids,compare_yaw0,compare_yaw_q. The default andcompareruns auto-rotate the camera;compare_yaw0names the entity's yaw. The parent passed all 59 checks, and the head failed only these 8 (max Δ 116 / 107).shape_debugFAIL rows (20, the same on both arms) are the stale references of render: refresh stale macos-debug ShapeDebug and CanvasStress references #4904 and are untouched.light-verify(IRLightingEmissive): all checks PASS on both arms. The yaw-0 rows and the hover sweep read identical figures. 22 of the 24 yaw-30/45 rows moved and stayed in the gate, so no baseline is re-blessed.Cost, the part the frame rows hide. The surface draw costs GPU time inside the paced frame. Per-axis, zoom 1, no overlap:
perAxisSurfaceFbtakes 2.21 ms where the parent spent 0.26 ms in scatter and 0.10 ms in compute lighting, and the GPU envelope grows from 3.91 to 5.23 ms (1.34×). With overlapping casters the per-axis envelope reads 0.94 to 1.05× the parent. The frame row passes because the frame is paced near 8.3 ms. A GPU-bound scene with a large unoccluded rotating receiver would see the envelope growth. The design note names the lever (hoisting the per-face terms).Fog-pass pipelines unchanged:
render-verify --target IRFogDemogives identical figures on all 66 rows (69 checks PASS on both). The sixIRLightingCombined --auto-screenshot 5captures are byte-identical parent to head.Plan departures
Criterion 4 names
surface_lighting_controls.pyandmillion_controls.py. Neither can run this pair as written. The surface driver forcesIR_PERAXIS_SURFACE_LIGHTING=1, so both arms would take the surface route and the parent's default configuration would never run.million_controls.pyrefuses two trees of the same build type. The pair ran through a scratch driver (committed asdriver.py.txt) that uses the same case tables andrepeat_profile.pywithIRREDEN_BUILD_DIRper arm. It leaves everyIR_PERAXIS_*variable unset and accepts only clean, guarded runs.The crossing fixture is
IRCanvasStress(the receiver-polygon fixture) rather thanIRShapeDebug.Scope reads "on pipelines without a fog pass" per the steward's A1. lighting: fog-pass pipelines take the one sun-shadow receiver model by default (stage 2 of #4965) #5123 carries the fog-pass half.
Notes for reviewer
189e9f5e7when render: skip redundant cardinal surface shadow queries (#4963) #5016 merged. My amendment went onto that tip as a fast-forward.e5c0ce713after docs: split the validator index into a short index and area pages (#4977) #5069 splitdocs/agents/VALIDATION.mdinto area pages. TheYaw lone-frame continuityedit and the newYaw crossing shadow maskrow now sit indocs/agents/VALIDATION-RENDER-FEATURES.md. The new row's name is in the index's area table (index 11,670 bytes;test_validation_index.pypasses).render-verify --target IRShapeDebug(macOS) fails 20 of 148 checks: cardinal yaw 180/270 rows in the default,sdf_baked_*,lod_sceneandglitch_*standard_offpasses. A same-session run on mastere5c0ce713fails the same 20 rows with identical figures, so they were already failing before this PR.test_fleet_codex.pywas this PR's fault and is fixed.test_github_identity_routing.py(test_real_dispatch_loop_uses_user_admission) also fails on master's own run 44031279387 and on every recent PR run; it is tracked as fleet: test_real_dispatch_loop_uses_user_admission flakes on hosted CI since #5108 #5129, fixed by fleet: make identity routing fixtures hermetic (#5129) #5130, and reproduces here with a scrubbed environment on a tree whose identity-routing subjects match master.test_quiet_window.shpasses 60/60 locally and fails in no other recent run, so it is a timing flake. The latest master Fleet Tests "success" is a path-filter skip of thefleet-testsjob, so it is not a green baseline.Closes #4965
🤖 Generated with Claude Code