Skip to content

editor: restore region tools and continuous yaw shadows - #4885

Merged
jakildev merged 2 commits into
codex/editor-orbit-input-shadowsfrom
codex/editor-region-tools-yaw-lighting
Nov 6, 2026
Merged

jakildev merged 2 commits into
codex/editor-orbit-input-shadowsfrom
codex/editor-region-tools-yaw-lighting

Conversation

@jakildev

@jakildev jakildev commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

Box and Line could not begin on the empty construction grid because their input path required an occupied voxel hit. Both now use the selected canvas floor, maintain a stable drag plane over empty space or another part, preview while held, and commit one undoable edit on release.

The voxel editor now enables continuous surface lighting by default. Under yaw, its previous receiver path shaded whole face samples; the existing accurate path evaluates the actual visible surface point. CanvasStress's default SDF floor already used that form of shading. Explicit IR_PERAXIS_SURFACE_LIGHTING=0 retains the comparison path; other creations keep their current defaults.

The shared renderer skips three redundant sampled axis-shadow dispatches when accurate presentation consumes the sun geometry directly. A common current-frame route resolver keeps producer and consumer eligibility aligned, including debug, fog and incomplete-pipeline fallbacks. No shadow shader or filtering changes.

Test plan

  • Debug and Release voxel-editor builds; Release CanvasStress build; format, Python lint, comment/header/instruction checks.

  • Native Metal GUI replay: region tools 25/25, camera gestures 44/44, inward placement 7/7; CLEAN exits, no layout findings. Includes actual toolbar selection, 30°/67° drags, Undo/Escape, and a foreign slab proven to own the raw pick while the selected floor receives the edit.

  • Native shadow sweep: 80 assertions each for default accurate and explicit coarse paths. Forty poses include quarter-degree offsets around all four cardinal angles, intermediate quadrants and exact returns. Every repeated pose returns identical pixels; all 40 unshadowed views match between routes.

  • Independent finite-box shadow oracle at 22.5°, 112.5°, 202.5°, 292.5°: 208,344 sun-facing interior pixels, zero false/missed shadows or invalid colors. Coarse negative control at 22.5° fails with 225 false and 185 missed shadow pixels.

  • Optimization preserves all RGB pixels in four accurate and four coarse full-frame comparisons. Routing harness passes 131,072 eligibility configurations plus live toggles/fog and failing mutation controls.

  • Native lighting regression gate: all checks pass.

  • Full render harness: 126 suites passed, zero failed.

  • Guarded optimization matrix: 20 Release runs, five alternating baseline/candidate pairs per zoom; binary/runtime identity, pose and overflow checks pass. Sampled-shadow GPU scope decreases consistently (0.927→0.171 ms at zoom 1; 0.421→0.126 ms at zoom 4). Whole-frame paired intervals include zero, so no proven whole-frame speedup is claimed.

Editor performance

The timing investigation exposed missing upstream scheduler completion-ordering fixes. #4886 supplies that correction and completes the fresh 24-run guarded editor matrix (8,640 frames), with no timeouts. In the 219-cell fixture, stage-timing-off GPU-envelope means increase by 0.156 ms and 0.108 ms at 30°/zoom 4 and 67°/zoom 8. Steady wall means increase 2.110/2.303 ms with substantial run variation, so no stable FPS or universal 60 Hz claim is made. The rejected earlier matrix remains retained as diagnostic evidence; it is excluded from these measurements.

Visual evidence

Evidence, reproduction commands, limits and manual test flows

Coarse receiver at 0.25° Editor default at 0.25°
Coarse Accurate

Validation is macOS Metal on Apple M4 Max. OpenGL runtime validation remains for another host. Finite-record overflow remains approximate; broader renderer adoption and dense-scene tuning remain outside this change. Refs #1271 and #4231.

Authored with Codex.

Overlap check

fleet-pr-overlap: overlap, no new conflicting tree. Remaining matches are upstream stack members. Review these clean/shared instruction paths and the existing parent-base conflict:

#4867 docs/agents/VALIDATION.md clean
#4869 creations/editors/voxel_editor/CLAUDE.md clean
#4869 creations/editors/voxel_editor/main.cpp clean
#4869 creations/editors/voxel_editor/sessions.hpp clean
#4872 creations/editors/voxel_editor/CLAUDE.md clean
#4872 creations/editors/voxel_editor/main.cpp base-conflict (conflicts with codex/editor-orbit-input-shadows 782f70a0b alone)
#4872 creations/editors/voxel_editor/sessions.hpp clean

@jakildev jakildev added 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 3, 2026
@jakildev
jakildev added this pull request to stack #4870 November 3, 2026 06:53
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Perf gate

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

perf comparison: a990fd6 → c84ba8e-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-xeon-platinum-8573c-unknown/a990fd60f603e872fc1f7886ba7fa10ac223d6fb
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/c84ba8e43-ci

host calibration

  • host: linux-x86_64-xeon-platinum-8573c-unknown (matches baseline)
  • ref_ms: head 90.66 vs baseline 77.66 (load_factor 1.17×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@a990fd60f (branch tip); master 8e5df7839, finished 2026-10-25T01:27:15Z, 9.2 d before the head run, ref_ms 77.66
  • weighting: calibration-scaled (frame avg only; load_factor 1.17× ≥ 1.10×)
  • attribution: improvement withheld, stacked: merge base 782f70a0b is not on refs/remotes/origin/master, so the run measured the base branch's unmerged changes

thresholds: regress ≥ 10%, improve ≥ 5%

voxel cull effectiveness

cell ratio (base→head) avg visible total avg feeder
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 262144 → 262144 0 → 0
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.990 → 0.990 (+0.0pp) 255592 → 255592 262144 → 262144 3862 → 3862 (1.000×)

frame timing (ms)

cell avg p99
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 480.24 → 608.23 (+26.7% raw, +8.5% scaled) 6741.47 → 8415.42 (+24.8%) ⚠
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1415.27 → 1748.35 (+23.5% raw, +5.8% scaled) 2257.77 → 2739.66 (+21.3%) ⚠

GPU frame timing (ms; separate from stage samples)

cell envelope (base→head) buffer spans (base→head) coverage (base→head)
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 resolvePerAxisScreenDepth fbToScreen
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 58.30→66.81 ⚠ 64.15→75.40 ⚠ 50.06→59.07 ⚠ 7.00→8.69 ⚠ 42.52→49.65 ⚠ 7.32→8.38 ⚠ 1.35→1.52 ⚠ 0.00→0.00 0.73→0.87 ⚠ 31.77→46.07 ⚠ 15.88→17.13 31.35→37.45 ⚠ 5.15→6.30 ⚠ 1.52→1.80 ⚠ 0.17→0.20 ⚠ 0.00→0.00 7.75→9.23 ⚠
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 127.06→155.16 ⚠ 444.89→529.49 ⚠ 323.39→393.94 ⚠ 5.42→6.61 ⚠ 309.87→378.26 ⚠ 5.89→6.46 1.32→1.53 ⚠ 0.00→0.00 0.57→0.69 ⚠ 9.85→21.35 ⚠ 14.11→16.83 ⚠ 11.74→14.01 ⚠ 4.36→5.50 ⚠ 1.19→1.47 ⚠ 0.17→0.20 ⚠ 0.00→0.00 6.43→7.75 ⚠

top CPU systems by avg ms (head)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 240.443 → 278.265 (+15.7%) ⚠
RENDER ComputeSunShadow 31.232 → 39.984 (+28.0%) ⚠
RENDER ComputeLightVolume 29.633 → 32.349 (+9.2%)
RENDER LightingToTrixel 18.523 → 23.333 (+26.0%) ⚠
RENDER CanvasToFramebuffer 15.822 → 18.161 (+14.8%) ⚠
RENDER BakeSunShadowMap 1.167 → 10.993 (+842.0%) ⚠
UPDATE PropagateTransform 4.949 → 6.250 (+26.3%) ⚠
RENDER FogToTrixel 4.669 → 5.657 (+21.2%) ⚠

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1218.093 → 1471.659 (+20.8%) ⚠
RENDER ComputeLightVolume 25.504 → 30.364 (+19.1%) ⚠
RENDER CanvasToFramebuffer 14.310 → 17.007 (+18.8%) ⚠
RENDER ComputeSunShadow 9.793 → 15.710 (+60.4%) ⚠
RENDER BakeSunShadowMap 0.198 → 7.308 (+3590.9%) ⚠
RENDER ComputeVoxelAO 5.222 → 6.398 (+22.5%) ⚠
UPDATE PropagateTransform 4.911 → 6.360 (+29.5%) ⚠
RENDER LightingToTrixel 4.476 → 5.671 (+26.7%) ⚠

unmatched cells

only in head: target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1, target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1

@jakildev jakildev added the fleet:awaiting-upstream-review Stacked PR; reviewer is holding verdict until upstream PR is approved label Nov 4, 2026
@jakildev

jakildev commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

Holding review: upstream PR #4883 is not yet approved. This stacked PR will be re-evaluated once the upstream lands an approval label.

jakildev and others added 2 commits November 5, 2026 22:15
Start Box and Line on the selected construction floor and keep their
preview and drag plane consistent across empty space and foreign parts.
Enable accurate voxel surface lighting in the editor and skip redundant
axis-shadow dispatches using a shared current-frame route decision.

Retain native GUI, independent geometric shadow, route-mutation and
paired performance evidence, including the unresolved scheduler timeout
that prevents an editor throughput claim.
The evidence directory now lives at media commit
08f3bae; master keeps no committed PR
screenshots.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@jakildev

jakildev commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Rebased onto the rewritten parent: the parent #4883 was replayed onto master after #4882 merged, so this layer's single owned commit (editor: restore region tools and continuous yaw shadows) was replayed with git rebase --onto <new parent head> <old parent head>; the inherited pre-rework parent commits are gone and the diff against the parent is the original PR-owned scope. The rebase applied cleanly. Evidence moved off the branch to media commit 08f3baee515f0bc38cfc2dab8ad702e93ad3f3ee and the body's image links repointed, so the no-plan-files check passes. fleet-build --target IRVoxelEditor is clean on windows-debug. Upstream #4883 is approved, so this layer is reviewable now. — opus-architect

@jakildev
jakildev force-pushed the codex/editor-region-tools-yaw-lighting branch from d3f9d78 to 9b369c4 Compare November 6, 2026 06:24

@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 — editor: restore region tools and continuous yaw shadows

Verdict: approve (pending Opus recheck on the render change)

Stacked on #4883 (cross-author, approved separately). Reviewing the child diff only; the 15 files in scope match the body.

Big picture

The PR does what it says, in two independent pieces:

  1. Box/Line on an empty grid (main.cpp, region_tools.hpp, sessions.hpp). Press now starts from sculptTarget() (the selected canvas floor) instead of requiring an occupied hit. FillToolState latches floorPlane_ / planeAxis_ / planeSlice_ / planeOffset_. During HELD a floor-started drag skips pickEditable() and uses pickEditablePlane on the latched plane. A surface-started drag only accepts hits on its own start entity, then falls back to its initial face plane. A foreign part cannot redirect the gesture.
    • BRUSH/PAINT return earlier in the handler, so the new hover-ghost block only affects BOX/LINE.
    • Class-paint and bone-paint keep the old pick path through ordinaryRegion.
  2. Continuous surface lighting by default in the editor, plus skipping the three sampled per-axis shadow dispatches. The eligibility logic moves verbatim into surface_lighting_route.hpp::resolveRoute. LIGHTING_TO_TRIXEL::beginTick now calls it, and so does COMPUTE_SUN_SHADOW::beginTick.

I checked the skip for a consumer that would be left reading stale textures:

  • The only readers of axis.sunShadow_ are dispatchPerAxisLighting and the shadow producer's own dispatch (grep over engine/prefabs, engine/render).
  • dispatchPerAxisLighting only runs in the else branch of if (perAxisSurfaceLightingEligible_) (system_lighting_to_trixel.hpp:448-454). That is the same predicate the producer now skips on.
  • Both predicates are computed in the same RENDER pass from the same inputs. shadow != nullptr in lighting's tick is covered by mainCanvasSunShadow_ != nullptr in the route.
  • Fallbacks keep the sampled producer: no LIGHTING_TO_TRIXEL system, debug overlay, depth-color debug, fog LOS or glitch fallback, and surface lighting toggled off. The harness mutations (shadow-always-skipped, shadow-missing-consumer, shadow-stale-route) cover these.

IR_PERAXIS_SURFACE_LIGHTING handling in the editor (unset or anything but "0" → on) matches the documented behavior. Other creations keep their defaults.

Checks

  • statusCheckRollup: comment-refs, format-check, header-checks, instruction-size, no-plan-files, closes-lint, python-lint, whitespace and changes are green. linux-build, render-harness-tests, fleet-tests and perf-gate were still IN_PROGRESS when I read them, so they are unread, not green.
  • The Metal GUI/shadow/oracle evidence in the body is the author's. I did not re-run it. The body states OpenGL runtime validation is outstanding (see Test plan).
  • No Closes #N in the body (Refs #1271 / #4231), so no acceptance grading applies.
  • No comment in the added code carries an issue number.

Nits (follow-up)

  • surface_lighting_route.hpp:40-47: resolveRoute parameters and locals carry a trailing _ (perAxisCanvasEntity_, cardinalSurfaceLightingEligible_, …). The convention reserves the suffix for public members. They were lifted from member names, so drop it on the way through.
  • surface_lighting_route.hpp:78-83 / system_compute_sun_shadow.hpp:179: when a fog pass is registered, a glitch-capable pipeline now runs the anyGlitchSubjectActive() archetype scan twice per frame, once in each beginTick. It is guarded and cheap, but it could be shared if it ever shows up in the CPU rows.
  • main.cpp (EditorShadowProfile): the pass/fail check hard-codes fingerprint.active_ != 219, which duplicates the seedShadowRotationScene count. A named constant would keep the two in step.

Test plan the author should run before merge

  • render-verify / light-verify --if-changed on an OpenGL host, since the shadow-dispatch skip is only Metal-validated.
  • Wait for linux-build and render-harness-tests on this head to finish green.

Escalation: please Opus-recheck before merge (touches: engine/prefabs/irreden/render, voxel_editor input).

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

Opus recheck required: touches engine/prefabs/irreden/render (a GPU dispatch skip gated on a per-frame route shared between two systems, so the producer/consumer ordering deserves a second read) plus the editor input state machine.

@jakildev jakildev added fleet:needs-opus-recheck Sonnet flagged this PR for Opus recheck before merge and removed fleet:awaiting-upstream-review Stacked PR; reviewer is holding verdict until upstream PR is approved fleet:reviewing-mac-pool-1 labels Nov 6, 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.

Opus recheck — editor: restore region tools and continuous yaw shadows

Verdict: approve with nits

Stacked on #4883 (cross-author, fleet:approved, still open). Reviewing the child diff only, at head 9b369c49f; the upstream is approved separately.

Sonnet's escalation: producer/consumer agreement on the sampled-shadow skip

Sonnet asked for a second read on the skip in COMPUTE_SUN_SHADOW. On closer read I confirm it is safe, for these reasons:

  • Same inputs. Both systems resolve IRRender::getCanvas("main") in beginTick. resolveRoute(EntityId) in the shadow system reads the same seven optional components from that entity that LIGHTING_TO_TRIXEL::beginTick resolves itself (resolveMainCanvasVoxelFrameInputs + its own shadow/LV/AO/fog lookups, voxel_frame_data.hpp:275). The predicate body is one function, so the producer and consumer cannot drift apart.
  • Nothing can flip the route mid-frame. Per-axis allocation (syncAllocationToCameraYaw) runs in VOXEL_TO_TRIXEL_STAGE_1, before both systems. The editor pipeline (main.cpp:8280-8282) runs only COMPUTE_LIGHT_VOLUME between them, and it touches none of the route inputs. Debug overlay, the surface-lighting singleton, glitch subjects and fog observers are all written outside RENDER. If allocation does change between frames, the guard still holds: the skip needs isAllocated() on the producer side, and the consumer's dispatchPerAxisLighting needs it too.
  • No other reader. git grep 'sunShadow_' over engine/ and creations/ finds exactly two users of the per-axis texture: the producer's own dispatch (system_compute_sun_shadow.hpp:138) and dispatchPerAxisLighting (system_lighting_to_trixel.hpp:493). The latter runs only in the else of if (perAxisSurfaceLightingEligible_) (:448). So the skipped work only fed a dispatch that was already skipped on the same predicate before this PR. The lighting tick's extra shadow != nullptr is implied by the route's mainCanvasSunShadow_ != nullptr.
  • Stale texture contents are harmless. When the route turns sampled again (surface lighting off, fog LOS, glitch, debug), the producer re-resolves that frame and writes before the consumer reads. No frame reads a texture left over from an earlier exact-route frame.
  • Binding table. Skipping dispatchPerAxisSunShadow also skips its main-canvas image re-bind. Slots 0/1 were never moved off the main canvas in that case, so no dangling Metal image binding is left behind.
  • Missing consumer. findSystem(LIGHTING_TO_TRIXEL) on the producer side keeps the sampled path in a pipeline that has no lighting pass. The shadow-missing-consumer mutation covers this case.

I ran the routing harnesses on this head:

  • test_render_per_axis_surface_lighting: 3 OK, including all four new shadow-* mutations failing as expected.
  • test_render_cardinal_surface_lighting: 2 OK.
  • test_editor_shadow_rotation: 9 OK.
  • All three on macOS clang.

Editor input state machine

  • Box/Line start. The new start path uses sculptTarget(), the same target resolver BRUSH uses. Erase and the inward key latch the same way as before (editTargetCell(*hit, erase, inverted)). The floor fallback applies only to place mode, as before.
  • Held drag. While the button is held, a floor-started drag never re-picks, and a surface-started drag only accepts hits on its own entity. Both fall back to the latched plane. This is the "foreign part cannot redirect the gesture" behaviour the body claims, and the regionForeign_ shots prove it.
  • Class/bone paint. These keep the old raw-pick path, because ordinaryRegion is false for them.
  • Stored entity. dragStartEntity_ is now dereferenced every HELD frame, not only at release. This adds no new exposure: the release path already dereferences it unconditionally, so a part destroyed mid-drag was already fatal at release.
  • Test hook entity creation. prepareRegionTools calls createEntity from the GUI-test onAssertFrame_ hook. That hook runs in the C_GuiTestAnchor system's frame callback, not its per-entity tick (auto_screenshot.cpp:356), so this is not a mid-iteration structural change. The editor already does the same thing in other session prep functions.

Checks

  • Green on 9b369c49f: comment-refs, format-check, header-checks, instruction-size, no-plan-files, closes-lint, python-lint, whitespace, changes.
  • linux-build, render-harness-tests, fleet-tests and perf-gate are still pending, so I have not read them as green. The merge needs them green.
  • The perf-gate comment on the thread is from the pre-rebase head c84ba8e43, stacked on an unmerged base. It does not measure this head.
  • OpenGL runtime validation is outstanding, per the body. That is ledgered via fleet:needs-windows-smoke, not a merge gate.

Nits (follow-up)

  • I agree with Sonnet: in surface_lighting_route.hpp:841-857, the resolveRoute parameters and locals keep the trailing _ from their old member names. The convention reserves it for public members.
  • I agree with Sonnet's glitch-scan nit: with fog registered, anyGlitchSubjectActive() can now run twice per frame, once per beginTick. It is guarded and cheap.
  • On the PRESS frame of a Box/Line drag, pickEditable() now runs three times: the hover block, the unused hit at PRESS when ordinaryRegion, and the call inside sculptTarget. Hoisting hit behind !ordinaryRegion drops one of them. This is not per-entity work, so it is not a hot-path concern.
  • I agree with Sonnet: the 219 literal in EditorShadowProfile duplicates the seeded-scene count. It is also repeated in evaluateShadowRotationCheck and editor-shadow-rotation.py.

🤖 Reviewed by Claude Opus 5.5 (role-opus-reviewer, Opus recheck)

@jakildev jakildev added fleet:approved Fleet reviewer approved — ready for human merge fleet:has-nits PR is approved, but reviewer flagged optional improvements to address before merge fleet:needs-windows-smoke PR needs windows-debug build + smoke-run validation and removed fleet:needs-opus-recheck Sonnet flagged this PR for Opus recheck before merge fleet:has-nits PR is approved, but reviewer flagged optional improvements to address before merge fleet:reviewing-mac-pool-1 labels Nov 6, 2026
@jakildev jakildev added fleet:verified-windows Cross-host smoke passed on windows-debug and removed fleet:needs-windows-smoke PR needs windows-debug build + smoke-run validation labels Nov 6, 2026
@jakildev

jakildev commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Cross-host smoke OK on windows (fresh checkout + IRShapeDebug --auto-screenshot 10 — build clean, ir-run RESULT=CLEAN exit 0, no shader/compile warnings; the only log warning is a runtime profiler note: tagGpuStage unknown stage name "guiToScreen", not a compile warning).

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Perf gate

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

perf comparison: a3d54c9 → 56f6762-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-epyc-7763-64-unknown/a3d54c95a1d9a170f6543be390cf17c7aedebf10
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/56f676274-ci

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 104.11 vs baseline 104.10 (load_factor 1.00×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@a3d54c95a (branch tip); master 6062102df, finished 2026-11-06T05:56:56Z, 0.0 d before the head run, ref_ms 104.10
  • weighting: raw (class-matched capture; load_factor 1.00×; no calibration-scaling entry)
  • attribution: improvement withheld, stacked: merge base 74956aaa1 is not on refs/remotes/origin/master, so the run measured the base branch's unmerged changes

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 → 262144 0 → 0
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.788 → 0.788 (+0.0pp) 156630 → 156630 262144 → 262144 50080 → 50080 (1.000×)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 262144 → 262144 0 → 0
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.990 → 0.990 (+0.0pp) 255592 → 255592 262144 → 262144 3862 → 3862 (1.000×)

frame timing (ms)

cell avg p99
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 479.15 → 494.81 (+3.3%) 1895.72 → 1722.48 (-9.1%) ↓
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1272.73 → 1277.05 (+0.3%) 2588.44 → 2568.77 (-0.8%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 652.45 → 649.32 (-0.5%) 12258.22 → 12151.82 (-0.9%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1728.99 → 1727.84 (-0.1%) 2992.62 → 3007.69 (+0.5%)

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 resolvePerAxisScreenDepth fbToScreen
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 64.10→67.32 64.35→66.56 57.32→59.18 1.29→0.97 ↓ 52.90→55.30 5.30→5.80 — 0.00→0.00 2.62→2.78 14.77→15.50 11.41→11.91 21.67→23.28 3.73→3.83 1.22→1.28 0.19→0.20 — 7.87→7.99
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 110.04→109.59 415.41→417.70 261.63→261.44 4.03→4.02 232.04→231.65 4.80→4.96 — 0.00→0.00 2.31→2.29 28.02→27.90 10.25→10.36 19.56→19.52 8.17→8.26 1.49→1.40 ↓ 0.17→0.18 — 7.39→7.44
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 59.19→59.42 80.80→80.81 66.25→66.37 12.87→12.79 48.01→47.66 8.35→8.63 1.10→1.12 0.00→0.00 0.89→0.85 62.51→61.80 10.49→10.49 57.15→56.81 7.95→7.89 1.84→1.80 0.17→0.17 0.00→0.00 8.93→8.95
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 119.49→119.31 533.16→533.61 426.57→425.89 6.37→6.36 367.27→366.81 5.63→5.54 1.10→1.10 0.00→0.00 0.73→0.68 ↓ 25.17→24.91 10.38→10.20 19.24→19.23 6.43→6.54 1.46→1.46 0.17→0.17 0.00→0.00 7.39→7.42

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 247.886 → 257.209 (+3.8%)
RENDER ComputeLightVolume 32.632 → 34.712 (+6.4%)
RENDER CanvasToFramebuffer 17.085 → 17.509 (+2.5%)
RENDER BakeSunShadowMap 9.662 → 10.313 (+6.7%)
RENDER ComputeSunShadow 7.624 → 7.850 (+3.0%)
UPDATE PropagateTransform 4.519 → 4.899 (+8.4%)
UPDATE FogRevealEval 4.190 → 4.319 (+3.1%)
RENDER LightingToTrixel 3.850 → 3.954 (+2.7%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1025.715 → 1026.942 (+0.1%)
RENDER ComputeLightVolume 29.338 → 29.410 (+0.2%)
RENDER ComputeSunShadow 21.864 → 21.527 (-1.5%)
RENDER CanvasToFramebuffer 15.908 → 16.001 (+0.6%)
RENDER ComputeVoxelAO 9.249 → 9.368 (+1.3%)
RENDER BakeSunShadowMap 8.417 → 8.631 (+2.5%)
RENDER LightingToTrixel 8.371 → 8.453 (+1.0%)
UPDATE PropagateTransform 4.405 → 4.651 (+5.6%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 288.688 → 288.765 (+0.0%)
RENDER ComputeSunShadow 55.366 → 54.691 (-1.2%)
RENDER LightingToTrixel 36.271 → 35.546 (-2.0%)
RENDER ComputeLightVolume 32.424 → 32.900 (+1.5%)
RENDER BakeSunShadowMap 22.377 → 22.325 (-0.2%)
RENDER CanvasToFramebuffer 17.441 → 17.266 (-1.0%)
RENDER FogToTrixel 7.107 → 7.045 (-0.9%)
UPDATE PropagateTransform 6.121 → 6.060 (-1.0%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1457.395 → 1457.466 (+0.0%)
RENDER ComputeLightVolume 29.173 → 28.997 (-0.6%)
RENDER ComputeSunShadow 18.725 → 18.544 (-1.0%)
RENDER CanvasToFramebuffer 16.205 → 16.278 (+0.5%)
RENDER BakeSunShadowMap 8.811 → 8.669 (-1.6%)
RENDER ComputeVoxelAO 8.092 → 7.612 (-5.9%) ↓
RENDER LightingToTrixel 6.600 → 6.717 (+1.8%)
UPDATE PropagateTransform 6.104 → 6.147 (+0.7%)

@jakildev
jakildev merged commit 928f26c into master Nov 6, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fleet:approved Fleet reviewer approved — ready for human merge fleet:author-codex Implementation last authored by Codex; route review to Claude fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend fleet:verified-windows Cross-host smoke passed on windows-debug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant