Skip to content

editor: reserve camera gestures and diagnose shadow snapping - #4883

Merged
jakildev merged 2 commits into
masterfrom
codex/editor-orbit-input-shadows
Nov 6, 2026
Merged

jakildev merged 2 commits into
masterfrom
codex/editor-orbit-input-shadows

Conversation

@jakildev

@jakildev jakildev commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

Alt+left reached both camera orbit and inward voxel placement because raw sculpt input ran before the camera controls. Shared Camera::GestureOwnership now reserves registered navigation intent through pointer release, including modifier-first release and combined input events. The voxel editor, shared gizmo drag and editor recipe handles use it; inward placement moves to I+left while preserving the Lua clickBelow API. Interrupted brush cells remain one completed stroke; deferred BOX/LINE commits cancel.

The shadow investigation is separate: a 40-shot fixed-scene diagnostic reproduces the cardinal per-fragment versus non-cardinal face-center sampling jump. Existing IR_PERAXIS_SURFACE_LIGHTING=1 preserves diagonal shadow edges, while shadows-disabled images remain identical between paths. Both paths restore exact repeated camera poses pixel-for-pixel. Production shadow defaults and shaders are unchanged; wider-scene performance and broader geometric acceptance still gate default adoption.

Validation

  • Rebased the PR-owned commit onto current master; fleet-build --target IRShapeDebug completed successfully on macOS/Metal.
  • Native Metal camera gestures 44/44, inward placement 7/7, recipe handles 25/25; zero layout findings and CLEAN exits.
  • Shadow diagnostic: 40/40 per arm, fixed 219-voxel fingerprint, cardinal/intermediate/near-cardinal poses and exact return checks; zero changed pixels at every repeated pose.
  • 40 focused C++ tests: camera ownership, combined modifier events, gizmo lifecycle/custom claims and Lua builder bindings.
  • Eight shadow-metric controls and twelve harness-dependency tests; Python lint, formatting, comments, instruction-size and header checks.
  • Lighting regression: all 46 checks pass.

Evidence

Captures, measured comparisons, reproduction and manual flows.

Default at 0 degrees Default at 0.25 degrees Existing opt-in at 0.25 degrees

These are diagnostic comparisons, not a shipped shadow-rendering change. Native Windows/OpenGL remains untested.

@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 05:56
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Perf gate

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

perf comparison: a39c8ac → d29d25b-ci

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

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 104.50 vs baseline 103.95 (load_factor 1.01×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@a39c8ac25 (branch tip); master 45cf005a8, finished 2026-11-03T04:41:55Z, 0.1 d before the head run, ref_ms 103.95
  • weighting: raw (class-matched capture; load_factor 1.01×; no calibration-scaling entry)
  • attribution: improvement withheld, stacked: merge base 79591cc65 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 497.04 → 497.91 (+0.2%) 1736.72 → 1810.62 (+4.3%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1279.98 → 1286.28 (+0.5%) 2588.51 → 2636.10 (+1.8%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 661.44 → 655.74 (-0.9%) 12290.31 → 12215.74 (-0.6%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1736.57 → 1735.81 (-0.0%) 3028.88 → 3069.49 (+1.3%)

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 66.99→67.22 66.51→66.87 58.93→58.76 0.96→0.98 54.97→55.10 5.75→5.85 — 0.00→0.00 2.81→2.82 15.21→15.60 11.94→12.18 23.11→23.35 3.85→4.00 1.27→1.33 0.19→0.20 — 7.98→8.17
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 109.11→111.24 416.71→417.09 261.71→261.95 4.04→4.05 233.24→233.56 5.17→4.97 — 0.00→0.00 2.41→2.42 27.66→28.23 10.37→10.37 19.26→19.40 8.34→8.32 1.47→1.56 0.17→0.19 ⚠ — 7.44→7.56
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 60.26→59.35 81.24→81.25 66.07→65.36 13.15→12.91 47.97→47.96 8.60→8.53 1.12→1.11 0.00→0.00 0.87→0.89 62.83→61.03 10.65→10.62 56.24→56.26 8.01→7.96 1.81→1.79 0.17→0.17 0.00→0.00 9.00→9.04
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 120.51→119.86 536.65→536.40 424.94→424.81 6.35→6.33 366.04→365.28 5.63→5.81 1.17→1.13 0.00→0.00 0.75→0.71 ↓ 24.64→24.97 10.46→10.34 19.42→19.50 6.77→6.71 1.59→1.54 0.17→0.18 0.00→0.00 7.43→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 256.310 → 256.875 (+0.2%)
RENDER ComputeLightVolume 34.529 → 34.930 (+1.2%)
RENDER CanvasToFramebuffer 17.421 → 17.564 (+0.8%)
RENDER BakeSunShadowMap 10.231 → 10.375 (+1.4%)
RENDER ComputeSunShadow 7.654 → 7.980 (+4.3%)
UPDATE PropagateTransform 4.943 → 4.750 (-3.9%)
UPDATE FogRevealEval 4.273 → 4.250 (-0.5%)
RENDER LightingToTrixel 4.024 → 4.198 (+4.3%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1027.979 → 1030.343 (+0.2%)
RENDER ComputeLightVolume 29.161 → 29.265 (+0.4%)
RENDER ComputeSunShadow 21.416 → 21.763 (+1.6%)
RENDER CanvasToFramebuffer 16.262 → 16.403 (+0.9%)
RENDER ComputeVoxelAO 9.306 → 9.493 (+2.0%)
RENDER BakeSunShadowMap 8.616 → 8.809 (+2.2%)
RENDER LightingToTrixel 8.543 → 8.531 (-0.1%)
UPDATE PropagateTransform 4.472 → 4.472 (+0.0%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 290.147 → 288.969 (-0.4%)
RENDER ComputeSunShadow 55.651 → 53.916 (-3.1%)
RENDER LightingToTrixel 35.503 → 35.389 (-0.3%)
RENDER ComputeLightVolume 32.468 → 32.548 (+0.2%)
RENDER BakeSunShadowMap 22.592 → 22.273 (-1.4%)
RENDER CanvasToFramebuffer 17.400 → 17.269 (-0.8%)
RENDER FogToTrixel 7.108 → 7.093 (-0.2%)
UPDATE PropagateTransform 6.358 → 6.379 (+0.3%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1459.634 → 1457.922 (-0.1%)
RENDER ComputeLightVolume 29.423 → 29.419 (-0.0%)
RENDER ComputeSunShadow 18.270 → 18.630 (+2.0%)
RENDER CanvasToFramebuffer 16.184 → 16.135 (-0.3%)
RENDER BakeSunShadowMap 8.842 → 8.730 (-1.3%)
RENDER ComputeVoxelAO 7.740 → 7.778 (+0.5%)
RENDER LightingToTrixel 6.894 → 6.884 (-0.1%)
UPDATE PropagateTransform 6.141 → 6.484 (+5.6%)

@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 #4882 is not yet approved. This stacked PR will be re-evaluated once the upstream lands an approval label.

@jakildev

jakildev commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Merger: cannot auto-resolve mechanically. The PR has
semantic conflicts with current master that need
judgement-level resolution.

Conflicted files:

  • creations/editors/voxel_editor/CLAUDE.md — master: 6062102df editor: align voxel placement and construction grids (#4882); PR: 782f70a0b editor: reserve camera gestures and diagnose shadow snapping
  • creations/editors/voxel_editor/construction_grid.hpp — master: 6062102df editor: align voxel placement and construction grids (#4882); PR: 79591cc65 render: align editor voxel placement and grid depth
  • creations/editors/voxel_editor/editor_picking.hpp — master: 6062102df editor: align voxel placement and construction grids (#4882); PR: 79591cc65 render: align editor voxel placement and grid depth
  • creations/editors/voxel_editor/main.cpp — master: 6062102df editor: align voxel placement and construction grids (#4882); PR: 782f70a0b editor: reserve camera gestures and diagnose shadow snapping
  • creations/editors/voxel_editor/sessions.hpp — master: 6062102df editor: align voxel placement and construction grids (#4882); PR: 782f70a0b editor: reserve camera gestures and diagnose shadow snapping
  • … and 3 more.

Labeled fleet:semantic-conflict — a worker will
attempt resolution on its next iteration (rebase,
manually resolve, build, push). If the worker also
can't resolve (truly ambiguous, design decision needed),
it will escalate to human:needs-fix.

The fleet:approved label has been removed if it was set
— the PR no longer represents a reviewed state.

Merged parent: this branch still carries commits from merged
PR #4868, which a plain rebase replays. fleet-pr fork-of 4883
reports:
merged-parent: 4868 a93a6d6

Rebase only this PR's own commits:
git fetch origin
git rebase --onto origin/master a93a6d6 codex/editor-orbit-input-shadows

SHA pair: master=8162a732c841e90ddf56acb0594696ff03273805 × PR=782f70a0b19b035f3a60f113ed1d473950bacf60

— fleet merger

@jakildev jakildev added fleet:semantic-conflict Merger hit non-mechanical conflict; opus-worker resolves or escalates fleet:merger-cooldown Merger touched this PR this iteration; skip next iteration labels Nov 6, 2026
Share camera gesture ownership between raw-input editors and gizmos,
including modifier-first release, interrupted edits and custom controls.
Move inward voxel placement to I so Alt remains exclusive to orbit.

Add fixed-scene shadow round trips and rendered on/off comparisons.
The existing continuous surface option removes the face-center stepping;
keep rendering defaults unchanged while its broader acceptance remains
open. Capture evidence separates that limitation from accidental edits.
@jakildev
jakildev force-pushed the codex/editor-orbit-input-shadows branch from 782f70a to ae079f7 Compare November 6, 2026 05:53
@jakildev jakildev added fleet:changes-made Agent addressed human feedback — ready for human re-review and removed fleet:awaiting-upstream-review Stacked PR; reviewer is holding verdict until upstream PR is approved fleet:semantic-conflict Merger hit non-mechanical conflict; opus-worker resolves or escalates labels Nov 6, 2026
@jakildev

jakildev commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Resolved semantic conflict by rebasing only the PR-owned camera-gesture and shadow-diagnostic commit onto current master after its placement parent merged. The resulting 44-file diff matches the original PR-owned scope. fleet-build --target IRShapeDebug is clean on macOS/Metal. Reviewer please re-evaluate the rebased diff. — worker

@jakildev jakildev removed the fleet:merger-cooldown Merger touched this PR this iteration; skip next iteration label Nov 6, 2026
@jakildev

jakildev commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Current master also moved PR evidence to the orphan media branch. Published this PR's existing evidence at media commit df94c1d, removed the 23 committed evidence files from the feature branch, and repointed the PR body. The refreshed no-plan-files check now passes; the 21-file code and documentation change remains the original PR-owned scope. — worker

@jakildev jakildev removed the fleet:changes-made Agent addressed human feedback — ready for human re-review label 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.

Review — editor: reserve camera gestures and diagnose shadow snapping

Verdict: approve (nits only)

Standalone PR on master (21 files, head 9376d2c9c). The mergeable and CONFLICTING churn gate does not apply: the semantic conflict was already rebased away by the worker, and the diff matches the PR-owned scope in the body.

Big picture

The change does what the body says. Raw sculpt input ran in INPUT before the RENDER-stage camera controls, so Alt+left both orbited and placed inward. This PR adds IRPrefab::Camera::GestureOwnership (engine/prefabs/irreden/render/camera_gesture.hpp), a small pure state machine fed by a raw-input snapshot and by which camera controls are actually registered. The voxel editor polls it first in EditorPlaceErase; GIZMO_DRAG polls it in beginTick. I walked the ownership logic against the unit tests:

  • A camera press owns the left release even when the modifier lets go first.
  • A combined press/release in one tick is owned for that tick and does not stick into the next.
  • An interrupted left edit stays suppressed until left returns to neutral.
  • With no matching camera control registered, Alt/Space clicks stay available to the tool.

The wiring order is right: placeEraseSystem precedes gizmoDragId in the INPUT list (main.cpp ~8035-8038), so queueCameraInput(...) is consumed by GIZMO_DRAG::beginTick in the same tick. claimCameraGesture(true) nulls dragHandle_ but keeps dragAnchor_ and the start pose, so the existing release edge for partTransformHistorySystem / endTick still fires (pinned by CameraAcquisitionEndsDragWithoutDiscardingHistoryCapture). The interrupted-stroke policy (a live brush completes as one stroke through finishSculptStroke(), deferred BOX/LINE cancel with dragging_ = false) is consistent with the design doc, and updateRecipeHandleDrag ends its drag and re-places handles while blocked.

The inward-placement rebind (Alt → I) is applied everywhere I could find it: the status line, editTargetCell callers, face-fill, the drag latch (dragInverted_), the hover-refresh in drawAuthoringPrimitives, and Builder::clickBelow (which keeps its Lua API and now emits kKeyButtonI). The remaining kModifierAlt uses in main.cpp are Ctrl+Alt command chords, unrelated to placement. The shadow work is diagnostic only: production shadow defaults and shaders are untouched, and the body and design doc say so plainly. I did not review shadow_rotation as a rendering fix because it is not one.

Blockers

None.

Needs-fix

None.

Checks

Read from statusCheckRollup at review time:

  • Green: format-check, header-checks, comment-refs, instruction-size, no-plan-files, closes-lint, python-lint, whitespace, changes.
  • Still running (unread, not green): linux-build, render-harness-tests, fleet-tests, perf-gate.
  • I did not build or run anything. The native Metal GUI sessions in the body (camera_gestures 44/44, place_below 7/7, recipe handles 25/25) are the author's evidence; I have not reproduced them. The body states Windows/OpenGL is untested; nothing in the PR is backend-specific, so I do not read that as a gap for this change.
  • Merge should wait on the four pending checks. A red linux-build or render-harness-tests (the latter runs the new test_editor_shadow_rotation.py and the dependency-contract exception list) would be the PR's own.

Nits (follow-up)

  • docs/design/editor-authoring-friction.md:1054 links to ../pr-screenshots/codex/peraxis-surface-lighting/README.md#measured-cost-and-decision. That directory is not in this tree (evidence now lives on the media branch; docs/pr-screenshots/codex/peraxis-surface-lighting/ has no files at this head), so the link is dead on merge. The other evidence links in the same doc use SHA-pinned GitHub URLs; do the same here.
  • scripts/editor-shadow-rotation.py (parse_run): "CLEAN" not in log is a bare substring test. If the harness prints a RESULT=CLEAN line, matching that is a tighter clean-shutdown proof (and cannot be satisfied by an unrelated word containing CLEAN). Please confirm which token the run actually emits.
  • camera_gesture_test.cpp: <cstdint>/<optional> sit between the engine includes; ordering only.

Praise

  • Tests pin the awkward cases directly: modifier-first release, combined press/release without carry-over, interruption until neutral, missing controls leaving clicks available, and a live-registration test for registeredGestureControls().
  • Custom bindings are explicit (poll(extra) / queueCameraInput) and never guessed from the camera systems' late dragging_ flags; the design doc says why.
  • The shadow-rotation metric has negative controls (one-pixel return drift, ROI exclusion, duplicate or failed assertions, wrong arm).

Reviewed by sonnet-reviewer (pool-1) at head 9376d2c.

Opus recheck not required.

@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:has-nits PR is approved, but reviewer flagged optional improvements to address before merge fleet:reviewing-windows-pool-1 labels Nov 6, 2026
@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 → 74956aa-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/74956aaa1-ci

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 104.01 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: no measured master improvement between capture master 6062102df and merge base 8162a732c (1 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 → 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 → 492.74 (+2.8%) 1895.72 → 1766.94 (-6.8%) ↓
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1272.73 → 1278.47 (+0.5%) 2588.44 → 2586.08 (-0.1%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 652.45 → 664.57 (+1.9%) 12258.22 → 12733.51 (+3.9%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1728.99 → 1732.78 (+0.2%) 2992.62 → 3024.67 (+1.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 resolvePerAxisScreenDepth fbToScreen
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 64.10→67.14 64.35→66.09 57.32→58.82 1.29→0.96 ↓ 52.90→54.99 5.30→5.60 — 0.00→0.00 2.62→2.78 14.77→15.36 11.41→11.82 21.67→23.01 3.73→3.92 1.22→1.31 0.19→0.18 — 7.87→7.96
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 110.04→109.44 415.41→417.41 261.63→263.14 4.03→4.05 232.04→233.17 4.80→4.99 — 0.00→0.00 2.31→2.36 28.02→28.53 10.25→10.30 19.56→19.07 8.17→8.09 1.49→1.63 0.17→0.17 — 7.39→7.36
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 59.19→59.43 80.80→81.71 66.25→65.89 12.87→13.50 48.01→48.31 8.35→9.24 ⚠ 1.10→1.12 0.00→0.00 0.89→1.00 ⚠ 62.51→63.96 10.49→10.60 57.15→57.55 7.95→8.00 1.84→1.84 0.17→0.17 0.00→0.00 8.93→8.99
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 119.49→120.43 533.16→533.78 426.57→425.80 6.37→6.31 367.27→365.91 5.63→5.68 1.10→1.15 0.00→0.00 0.73→0.79 25.17→25.58 10.38→10.52 19.24→19.50 6.43→6.70 1.46→1.66 ⚠ 0.17→0.18 0.00→0.00 7.39→7.59

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 → 255.876 (+3.2%)
RENDER ComputeLightVolume 32.632 → 34.354 (+5.3%)
RENDER CanvasToFramebuffer 17.085 → 17.540 (+2.7%)
RENDER BakeSunShadowMap 9.662 → 10.275 (+6.3%)
RENDER ComputeSunShadow 7.624 → 7.739 (+1.5%)
UPDATE PropagateTransform 4.519 → 4.716 (+4.4%)
UPDATE FogRevealEval 4.190 → 4.226 (+0.9%)
RENDER LightingToTrixel 3.850 → 4.042 (+5.0%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1025.715 → 1029.641 (+0.4%)
RENDER ComputeLightVolume 29.338 → 28.900 (-1.5%)
RENDER ComputeSunShadow 21.864 → 22.050 (+0.9%)
RENDER CanvasToFramebuffer 15.908 → 15.979 (+0.4%)
RENDER ComputeVoxelAO 9.249 → 9.496 (+2.7%)
RENDER BakeSunShadowMap 8.417 → 8.773 (+4.2%)
RENDER LightingToTrixel 8.371 → 8.291 (-1.0%)
UPDATE PropagateTransform 4.405 → 4.380 (-0.6%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 288.688 → 293.911 (+1.8%)
RENDER ComputeSunShadow 55.366 → 56.434 (+1.9%)
RENDER LightingToTrixel 36.271 → 36.626 (+1.0%)
RENDER ComputeLightVolume 32.424 → 32.584 (+0.5%)
RENDER BakeSunShadowMap 22.377 → 23.157 (+3.5%)
RENDER CanvasToFramebuffer 17.441 → 17.415 (-0.1%)
RENDER FogToTrixel 7.107 → 7.126 (+0.3%)
UPDATE PropagateTransform 6.121 → 6.040 (-1.3%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1457.395 → 1457.292 (-0.0%)
RENDER ComputeLightVolume 29.173 → 29.611 (+1.5%)
RENDER ComputeSunShadow 18.725 → 18.795 (+0.4%)
RENDER CanvasToFramebuffer 16.205 → 16.362 (+1.0%)
RENDER BakeSunShadowMap 8.811 → 9.203 (+4.4%)
RENDER ComputeVoxelAO 8.092 → 7.780 (-3.9%)
RENDER LightingToTrixel 6.600 → 6.901 (+4.6%)
UPDATE PropagateTransform 6.104 → 6.118 (+0.2%)

@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, exit 0, ir-run RESULT=CLEAN, 21/21 screenshots saved, no shader/GLSL compile warnings). Unrelated pre-existing log line: tagGpuStage unknown stage name guiToScreen (system_gui_canvas_to_screen.hpp, not touched by this PR).

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Perf gate

Head host slug: linux-x86_64-epyc-9v74-80-unknown

perf comparison: 361c316 → ecc9d2e-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-epyc-9v74-80-unknown/361c3161e7bca8fca557bcacfd514bc981515641
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/ecc9d2ed1-ci

host calibration

  • host: linux-x86_64-epyc-9v74-80-unknown (matches baseline)
  • ref_ms: head 89.84 vs baseline 89.92 (load_factor 1.00×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@361c3161e (branch tip); master 23b4d0e72, finished 2026-11-05T04:28:51Z, 1.1 d before the head run, ref_ms 89.92
  • weighting: raw (class-matched capture; load_factor 1.00×; no calibration-scaling entry)
  • attribution: no measured master improvement between capture master 23b4d0e72 and merge base 8162a732c (10 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 → 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 386.70 → 382.87 (-1.0%) 1395.41 → 1386.08 (-0.7%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 934.70 → 924.34 (-1.1%) 1986.96 → 1955.10 (-1.6%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 490.07 → 495.13 (+1.0%) 7535.31 → 7877.96 (+4.5%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1241.41 → 1235.29 (-0.5%) 2281.99 → 2258.11 (-1.0%)

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 47.45→47.42 47.93→47.99 43.84→43.93 0.78→0.77 41.93→42.38 4.85→4.70 — 0.00→0.00 2.36→2.25 12.00→12.08 17.25→16.50 15.28→15.42 3.39→3.14 ↓ 1.02→1.04 0.18→0.17 — 6.38→6.20
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 85.83→85.29 292.62→290.01 179.65→179.51 2.85→2.84 160.75→160.19 4.21→4.18 — 0.00→0.00 2.02→1.98 21.38→21.43 16.06→15.45 12.99→13.06 6.62→6.42 1.16→1.13 0.17→0.15 ↓ — 6.00→5.83
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 41.76→42.34 57.28→57.47 48.10→48.15 7.36→7.61 37.60→37.52 6.33→6.62 0.75→0.74 0.00→0.00 0.84→0.86 38.83→39.84 15.95→15.95 32.33→32.82 5.32→5.37 1.40→1.38 0.16→0.17 0.00→0.00 7.13→7.06
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 91.69→91.53 361.67→358.10 292.01→291.44 4.45→4.52 253.53→252.89 5.00→4.78 0.74→0.79 0.00→0.00 0.68→0.65 19.09→18.92 16.04→16.06 12.98→13.08 5.41→5.42 1.15→1.25 0.17→0.15 ↓ 0.00→0.00 5.96→5.82

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 190.085 → 190.522 (+0.2%)
RENDER ComputeLightVolume 32.117 → 31.515 (-1.9%)
RENDER CanvasToFramebuffer 15.199 → 15.035 (-1.1%)
RENDER BakeSunShadowMap 7.727 → 7.795 (+0.9%)
RENDER ComputeSunShadow 6.533 → 6.485 (-0.7%)
UPDATE PropagateTransform 3.905 → 3.866 (-1.0%)
RENDER LightingToTrixel 3.516 → 3.268 (-7.1%) ↓
UPDATE FogRevealEval 3.234 → 3.122 (-3.5%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 726.653 → 722.928 (-0.5%)
RENDER ComputeLightVolume 28.634 → 28.123 (-1.8%)
RENDER ComputeSunShadow 16.865 → 16.739 (-0.7%)
RENDER CanvasToFramebuffer 14.207 → 13.748 (-3.2%)
RENDER BakeSunShadowMap 6.489 → 6.629 (+2.2%)
RENDER LightingToTrixel 6.802 → 6.591 (-3.1%)
RENDER ComputeVoxelAO 5.799 → 5.683 (-2.0%)
UPDATE PropagateTransform 3.901 → 3.762 (-3.6%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 211.685 → 216.658 (+2.3%)
RENDER ComputeSunShadow 33.623 → 34.689 (+3.2%)
RENDER ComputeLightVolume 30.058 → 30.165 (+0.4%)
RENDER LightingToTrixel 19.377 → 19.722 (+1.8%)
RENDER CanvasToFramebuffer 14.929 → 14.692 (-1.6%)
RENDER BakeSunShadowMap 10.105 → 10.126 (+0.2%)
UPDATE PropagateTransform 5.317 → 5.277 (-0.8%)
RENDER FogToTrixel 4.569 → 4.600 (+0.7%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1010.205 → 1005.337 (-0.5%)
RENDER ComputeLightVolume 28.611 → 28.760 (+0.5%)
RENDER CanvasToFramebuffer 13.888 → 14.173 (+2.1%)
RENDER ComputeSunShadow 14.340 → 14.164 (-1.2%)
RENDER BakeSunShadowMap 6.758 → 6.707 (-0.8%)
RENDER LightingToTrixel 5.563 → 5.567 (+0.1%)
UPDATE PropagateTransform 5.236 → 5.354 (+2.3%)
RENDER ComputeVoxelAO 4.881 → 4.800 (-1.7%)

@jakildev
jakildev merged commit b8afe84 into master Nov 6, 2026
16 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