Skip to content

render: default to click-anchored orbit with a visible pivot - #4888

Merged
jakildev merged 4 commits into
codex/job-completion-orderingfrom
codex/click-anchored-orbit
Nov 6, 2026
Merged

jakildev merged 4 commits into
codex/job-completion-orderingfrom
codex/click-anchored-orbit

Conversation

@jakildev

@jakildev jakildev commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

Interactive orbit now defaults to the point clicked when the gesture begins. The engine shares this policy across Ctrl+middle and Alt+left; the voxel editor uses it for right-drag too. A gold cross marks the anchor while held. Reanchoring and release preserve the view, including at 120° and 240°.

  • Extend Camera::setCursorPivotByDefault to both standard controls, default enabled. Shift reverses the policy for one gesture.
  • Resolve the exact cursor ray against the surface, falling back to the reference floor. The editor supplies its local-canvas picking and authoring-floor resolver through Camera::setCursorPivotOptions.
  • Reuse the screen overlay for a stable, DPI-aware marker with no hit target or serialized state. Pick once per press; retain the focus after release.
  • Move editor camera reset from Space to Home to avoid resetting yaw during Space+left panning.

Test plan

  • Debug and Release IRVoxelEditor builds; header/component inventory, formatting, comment-reference lint, and diff checks passed.
  • 68 unit tests passed across camera reset, pivot math, screen markers, pan, gesture state, and save-registry coverage.
  • Native click_orbit: 70/70 assertions; letterboxed variant: 70/70. No layout findings. Solid and floor cases at 0°, 30°, 67°, 90°, 120°, 240°, and 270°, with pan/zoom, reanchoring, release continuity, and unchanged authored cells/history.
  • Actual framebuffer gold-marker centroid: zero pixel error and zero press-to-held drift in both window configurations. Independent world-anchor projection checks also pass.
  • Existing camera_gestures: 44/44; region_tools: 25/25; no layout findings.
  • Legacy pivot-verify --blocks cursor-latch: FOCUS-OK, 9/9 focus assertions. Rotating-silhouette centroid remains diagnostic, not a stationary-marker gate.

Screenshots

Same existing right-drag capture before and after; the new gold cross marks the clicked point:

Before After
Before After

30° solid press and held rotation (unscaled crops around the same anchor):

Press Held
Press Held

Capture configuration, reproduction commands, full frames, and filtered assertions.

Validation ran on macOS / Apple M4 Max / Metal. The orbit fixture is unlit; these images make no lighting-quality claim. Creations rendering custom transformed geometry must supply their matching surface resolver. The stable screen marker uses DEBUG_OVERLAY; creations without it retain the existing SDF marker fallback.

Open-PR overlap

fleet-pr-overlap returned informational overlap; no new merge conflicts. Non-upstream rows:

#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/job-completion-ordering 01a7ef1f1 alone)
#4872 creations/editors/voxel_editor/sessions.hpp clean
#4887 engine/prefabs/irreden/render/CLAUDE.md clean

@jakildev jakildev added the fleet:author-codex Implementation last authored by Codex; route review to Claude label Nov 3, 2026
@jakildev
jakildev added this pull request to stack #4870 November 3, 2026 22:34
@jakildev jakildev added the fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend label Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Perf gate

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

perf comparison: c61eacb → 69e4421-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-epyc-9v74-80-unknown/c61eacb95e6a49563d8e1c785af47eed895b5b59
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/69e44214c-ci

host calibration

  • host: linux-x86_64-epyc-9v74-80-unknown (matches baseline)
  • ref_ms: head 90.50 vs baseline 91.61 (load_factor 0.99×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@c61eacb95 (branch tip); master 1fe4e7cdb, finished 2026-11-03T04:39:41Z, 0.8 d before the head run, ref_ms 91.61
  • weighting: raw (class-matched capture; load_factor 0.99×; no calibration-scaling entry)
  • attribution: improvement withheld, stacked: merge base 01a7ef1f1 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 375.77 → 388.90 (+3.5%) 1499.81 → 1544.11 (+3.0%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 925.84 → 935.50 (+1.0%) 1972.35 → 1947.61 (-1.3%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 486.83 → 496.79 (+2.0%) 7579.92 → 7796.69 (+2.9%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1235.81 → 1244.00 (+0.7%) 2227.06 → 2277.14 (+2.2%)

GPU frame timing (ms; separate from stage samples)

cell envelope (base→head) buffer spans (base→head) coverage (base→head)
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable

GPU stage timing (avg ms per sampled invocation)

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 46.28→45.87 47.18→47.56 43.24→43.23 0.99→1.91 ⚠ 41.25→40.80 4.44→4.81 — 0.00→0.00 2.24→2.23 11.18→11.68 16.05→16.82 14.70→15.18 3.04→3.35 ⚠ 0.98→1.04 0.16→0.18 ⚠ — 6.11→6.50
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 85.24→85.67 290.25→294.21 181.29→181.08 2.85→2.85 160.50→160.73 4.39→4.59 — 0.00→0.00 1.95→2.07 20.91→20.88 15.25→15.69 12.85→13.15 6.37→6.89 1.16→1.23 0.15→0.17 ⚠ — 5.84→5.91
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 41.94→42.26 57.39→57.60 48.24→47.96 7.20→8.10 ⚠ 37.36→37.38 6.08→6.52 0.75→0.76 0.00→0.00 0.86→0.88 40.45→39.40 15.86→16.48 32.77→32.36 5.36→5.42 1.40→1.42 0.16→0.18 ⚠ 0.00→0.00 7.10→7.17
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 91.53→91.66 362.76→361.22 292.12→293.28 4.42→4.43 252.77→253.28 4.88→4.88 0.72→0.74 0.00→0.00 0.75→0.67 ↓ 19.01→18.50 15.37→15.70 12.96→13.06 5.38→5.41 1.14→1.17 0.15→0.17 ⚠ 0.00→0.00 5.85→6.13

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 186.935 → 188.893 (+1.0%)
RENDER ComputeLightVolume 30.360 → 31.497 (+3.7%)
RENDER CanvasToFramebuffer 14.598 → 14.902 (+2.1%)
RENDER BakeSunShadowMap 7.375 → 7.525 (+2.0%)
RENDER ComputeSunShadow 5.941 → 6.277 (+5.7%)
UPDATE PropagateTransform 3.863 → 4.000 (+3.5%)
RENDER LightingToTrixel 3.173 → 3.512 (+10.7%) ⚠
UPDATE FogRevealEval 3.108 → 3.300 (+6.2%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 725.536 → 730.232 (+0.6%)
RENDER ComputeLightVolume 27.716 → 28.409 (+2.5%)
RENDER ComputeSunShadow 16.346 → 16.309 (-0.2%)
RENDER CanvasToFramebuffer 13.809 → 14.055 (+1.8%)
RENDER LightingToTrixel 6.541 → 7.065 (+8.0%)
RENDER BakeSunShadowMap 6.504 → 6.600 (+1.5%)
RENDER ComputeVoxelAO 5.854 → 5.832 (-0.4%)
UPDATE PropagateTransform 3.791 → 3.749 (-1.1%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 210.323 → 215.269 (+2.4%)
RENDER ComputeSunShadow 35.217 → 34.133 (-3.1%)
RENDER ComputeLightVolume 30.028 → 30.472 (+1.5%)
RENDER LightingToTrixel 19.713 → 19.543 (-0.9%)
RENDER CanvasToFramebuffer 14.725 → 15.146 (+2.9%)
RENDER BakeSunShadowMap 9.900 → 10.437 (+5.4%)
UPDATE PropagateTransform 5.255 → 5.386 (+2.5%)
RENDER FogToTrixel 4.625 → 4.625 (+0.0%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1010.454 → 1011.029 (+0.1%)
RENDER ComputeLightVolume 27.947 → 28.364 (+1.5%)
RENDER CanvasToFramebuffer 13.785 → 14.240 (+3.3%)
RENDER ComputeSunShadow 14.024 → 13.897 (-0.9%)
RENDER BakeSunShadowMap 6.899 → 6.614 (-4.1%)
RENDER LightingToTrixel 5.535 → 5.573 (+0.7%)
UPDATE PropagateTransform 5.179 → 5.330 (+2.9%)
RENDER ComputeVoxelAO 4.828 → 4.817 (-0.2%)

@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 #4886 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

Rebased onto the rewritten parent: the stack below was replayed onto master after #4882 merged, so this layer's owned commits (render: anchor interactive orbit at the clicked point) were replayed with git rebase --onto <new parent head> <old parent head>; the inherited pre-rework 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 944a0d6e8ca83268d1711db605bb77c645882f4f and the body's image links repointed, so the no-plan-files check passes. The reviewer hold stays until the upstream is approved. — opus-architect

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Perf gate

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

perf comparison: 596ab14 → 23079d3-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-xeon-platinum-8370c-unknown/596ab146de8fb9cf27aeeed3e9055f741960195c
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/23079d3ca-ci

host calibration

  • host: linux-x86_64-xeon-platinum-8370c-unknown (matches baseline)
  • ref_ms: head 125.98 vs baseline 115.28 (load_factor 1.09×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@596ab146d (branch tip); master 34ed50e69, finished 2026-11-05T03:04:58Z, 1.2 d before the head run, ref_ms 115.28
  • weighting: raw (class-matched capture; load_factor 1.09×; no calibration-scaling entry)
  • attribution: improvement withheld, stacked: merge base a93329e76 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 519.35 → 531.60 (+2.4%) 1599.75 → 1762.27 (+10.2%) ⚠
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1296.96 → 1345.08 (+3.7%) 2394.55 → 2448.74 (+2.3%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 616.52 → 629.16 (+2.1%) 8701.06 → 8807.32 (+1.2%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1739.45 → 1784.65 (+2.6%) 2838.08 → 2857.56 (+0.7%)

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 70.74→70.88 61.47→62.10 52.28→53.94 0.97→1.42 ⚠ 55.69→56.66 6.13→6.39 — 0.00→0.00 2.35→2.34 15.75→15.87 20.12→20.25 22.07→22.33 3.48→3.82 1.22→1.25 0.23→0.20 ↓ — 8.71→9.18
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 126.45→129.89 399.67→417.22 239.30→248.24 4.21→4.32 241.63→249.46 5.43→5.48 — 0.00→0.00 2.01→2.13 29.08→30.23 17.53→18.82 19.86→20.04 8.31→8.59 1.20→1.24 0.18→0.20 — 8.18→8.76
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 62.74→64.05 73.12→74.78 57.00→58.76 8.87→9.21 48.87→50.07 8.04→8.15 1.37→1.44 0.00→0.00 1.00→1.02 45.34→48.03 17.59→18.66 42.20→43.87 6.31→6.57 1.64→1.71 0.18→0.19 0.00→0.00 9.50→10.07
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 142.41→145.73 515.84→526.92 389.90→402.86 6.61→6.77 379.75→391.30 6.27→6.15 1.41→1.47 0.00→0.00 0.84→0.88 26.80→27.55 17.52→18.84 19.63→20.13 6.56→6.92 1.35→1.38 0.17→0.20 ⚠ 0.00→0.00 8.27→8.75

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 249.493 → 254.295 (+1.9%)
RENDER ComputeLightVolume 41.777 → 42.041 (+0.6%)
RENDER CanvasToFramebuffer 19.842 → 20.410 (+2.9%)
RENDER BakeSunShadowMap 9.784 → 9.723 (-0.6%)
RENDER ComputeSunShadow 8.200 → 8.345 (+1.8%)
UPDATE PropagateTransform 5.263 → 5.594 (+6.3%)
UPDATE FogRevealEval 4.684 → 4.686 (+0.0%)
RENDER LightingToTrixel 3.604 → 4.000 (+11.0%) ⚠

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1015.702 → 1053.726 (+3.7%)
RENDER ComputeLightVolume 37.047 → 38.327 (+3.5%)
RENDER ComputeSunShadow 22.718 → 23.667 (+4.2%)
RENDER CanvasToFramebuffer 18.391 → 19.598 (+6.6%)
RENDER LightingToTrixel 8.531 → 8.801 (+3.2%)
RENDER BakeSunShadowMap 8.330 → 8.636 (+3.7%)
RENDER ComputeVoxelAO 8.200 → 8.387 (+2.3%)
UPDATE PropagateTransform 4.814 → 5.009 (+4.1%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 272.459 → 275.183 (+1.0%)
RENDER ComputeSunShadow 38.223 → 40.739 (+6.6%)
RENDER ComputeLightVolume 38.583 → 39.973 (+3.6%)
RENDER LightingToTrixel 22.570 → 23.937 (+6.1%)
RENDER CanvasToFramebuffer 19.636 → 20.415 (+4.0%)
RENDER BakeSunShadowMap 12.392 → 12.796 (+3.3%)
UPDATE PropagateTransform 6.225 → 5.876 (-5.6%) ↓
RENDER FogToTrixel 5.466 → 5.612 (+2.7%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1440.951 → 1480.311 (+2.7%)
RENDER ComputeLightVolume 36.749 → 38.457 (+4.6%)
RENDER ComputeSunShadow 20.302 → 20.924 (+3.1%)
RENDER CanvasToFramebuffer 18.709 → 19.548 (+4.5%)
RENDER BakeSunShadowMap 8.460 → 8.655 (+2.3%)
RENDER LightingToTrixel 6.734 → 7.108 (+5.6%)
RENDER ComputeVoxelAO 6.807 → 7.022 (+3.2%)
UPDATE PropagateTransform 6.286 → 6.077 (-3.3%)

@jakildev jakildev removed the fleet:awaiting-upstream-review Stacked PR; reviewer is holding verdict until upstream PR is approved 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 — render: default to click-anchored orbit with a visible pivot

Verdict: needs-fix

Stacked on #4886 (cross-author, approved). Reviewing the child diff only — upstream is approved separately.

Big picture: the design is sound. One shared CursorPivot::OrbitAnchor now drives Ctrl+middle, Alt+left and the editor's right-drag. It resolves the pivot once per press (SCREEN_PIXEL surface, then exact floor ray on a miss), compensates the raw camera so acquisition and reanchoring do not move the view, retains the focus on release, and draws a window-space cross through DEBUG_OVERLAY. The pre-destroy hook handling, the MainThread tags, the save-registry opt-out for the new runtime-only component, and the cursor-pivot/overlay unit tests all read correctly. One CI validator is red on this PR's own change, and that blocks the merge.

Needs-fix

  • engine/prefabs/irreden/render/CLAUDE.md:126-136 — instruction-size is red, and the PR introduces it. The file is 210 lines on both origin/master and the #4886 base (budget 200, inside the 10-line band). This PR's rewrite of the cursor-pivot bullet makes it 213 lines (+13 past budget). The run log reports introduced: engine/prefabs/irreden/render/CLAUDE.md: 213 lines, budget 200 (+13, past the 10-line band). Instruction Size is green on the last three master commits, so this is not inherited. Fix: shorten the bullet by at least 3 lines (back to ≤210). It already links prefab-render-surface.md#cursor-latched-rotation-pivot, which holds the long form. The DEBUG_OVERLAY / SDF-fallback sentence and the pre-destroy forwarding sentence are already in that doc, so point there instead of repeating them. Do not raise the baseline for this.

Checks not read

  • linux-build / Engine Tests (run 42175571645) was still in_progress on head 47b61c12b when I reviewed. It is unread, not green. The author's local Debug and Release IRVoxelEditor builds and 68 unit tests are in the body but are not the CI gate. Every other check is green: format, header-checks, comment-refs, closes-lint, no-plan-files, whitespace, fleet-tests, perf-gate.

Nits (follow-up)

  • creations/editors/voxel_editor/main.cpp:6868 — the startup help log still prints Space: re-center + reset yaw, but this PR moves reset to Home (main.cpp command registration, voxel_editor/CLAUDE.md). Update the line to Home: re-center + reset yaw and mention Space+left: pan.
  • creations/editors/voxel_editor/main.cpp (EditorViewportRotate) — right-drag now also refuses to start while documentInteractionBlocked() or a widget is hovered. That is sensible, but it is a behaviour change beyond the orbit pivot. A half-line in the PR body or voxel_editor/CLAUDE.md would record it.

Praise

  • cursor_pivot.hpp detail::preserveViewCamera / setFocusPreservingView — keeping the view fixed by compensating the raw camera, rather than un-singularising the live-center inverse at 120°/240°, is a non-obvious choice. ReanchorKeepsAllWorldPointsFixedAtEveryYaw pins it at every yaw.
  • Reading C_ScreenSpaceMarker live in the DEBUG_OVERLAY flush, rather than queueing, means a press-and-release inside one frame cannot leave a stale marker. The doc records the trade-off.

Test plan the author should run before merge

  • After trimming the bullet, python3 scripts/lint_instruction_size.py --against origin/master reports no new offender.
  • linux-build finishes green on the pushed head.

Escalation: author-agent to address, then re-request review.

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

Opus recheck required: I read the lifecycle logic in engine/prefabs/irreden/render at sonnet depth only (pre-destroy hooks that cancel drags, main-thread eager createEntity in OrbitAnchor::begin, the explicit pivot focus retained after release). Recheck on the fixed head.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Perf gate

Head host slug: linux-x86_64-epyc-9v45-96-unknown

perf comparison: ec70f10 → f3eded3-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-epyc-9v45-96-unknown/ec70f10c01d23624051e8c800651a24d365eb254
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/f3eded30f-ci

host calibration

  • host: linux-x86_64-epyc-9v45-96-unknown (matches baseline)
  • ref_ms: head 57.53 vs baseline 57.81 (load_factor 1.00×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@ec70f10c0 (branch tip); master ef578cf13, finished 2026-10-30T06:47:02Z, 7.0 d before the head run, ref_ms 57.81
  • weighting: raw (class-matched capture; load_factor 1.00×; no calibration-scaling entry)
  • attribution: improvement withheld, stacked: merge base a93329e76 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 316.79 → 307.88 (-2.8%) 1066.40 → 970.53 (-9.0%) ↓
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 789.82 → 761.51 (-3.6%) 1545.76 → 1462.63 (-5.4%) ↓
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 374.51 → 389.77 (+4.1%) 5352.30 → 5432.87 (+1.5%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1038.25 → 1024.57 (-1.3%) 1765.57 → 1745.86 (-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 41.55→41.21 41.33→39.56 36.55→35.44 0.67→0.65 36.45→34.31 ↓ 4.99→4.66 ↓ — 0.00→0.00 1.25→2.23 ⚠ 4.76→10.29 ⚠ 14.71→12.18 ↓ 12.88→12.27 3.28→2.69 ↓ 1.13→0.92 ↓ 0.18→0.15 ↓ — 6.27→5.45 ↓
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 79.40→76.92 244.57→233.91 156.41→151.05 4.78→2.41 ↓ 138.90→135.43 4.74→4.49 ↓ — 0.00→0.00 1.10→1.94 ⚠ 11.51→17.89 ⚠ 13.01→11.58 ↓ 11.18→10.60 ↓ 6.15→5.39 ↓ 1.43→1.06 ↓ 0.18→0.14 ↓ — 5.95→4.98 ↓
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 34.41→37.71 46.16→48.27 37.51→38.41 5.65→5.18 ↓ 29.86→31.06 5.64→6.31 ⚠ 0.72→0.74 0.00→0.00 0.76→0.77 25.80→31.15 ⚠ 11.84→12.18 24.91→24.76 4.17→4.07 1.20→1.19 0.13→0.14 0.00→0.00 6.09→5.92
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 81.24→80.96 301.09→292.17 248.74→244.70 3.77→3.81 217.66→212.70 5.05→5.03 0.77→0.74 0.00→0.00 0.69→0.58 ↓ 7.89→15.84 ⚠ 12.22→11.82 10.81→10.62 4.76→4.48 ↓ 1.32→1.13 ↓ 0.15→0.14 ↓ 0.00→0.00 5.63→5.22 ↓

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 164.152 → 158.859 (-3.2%)
RENDER ComputeLightVolume 27.204 → 24.089 (-11.5%) ↓
RENDER CanvasToFramebuffer 12.842 → 11.734 (-8.6%) ↓
RENDER BakeSunShadowMap 1.225 → 7.463 (+509.2%) ⚠
RENDER ComputeSunShadow 4.687 → 4.938 (+5.4%)
RENDER LightingToTrixel 3.394 → 2.799 (-17.5%) ↓
UPDATE PropagateTransform 2.792 → 2.724 (-2.4%)
UPDATE FogRevealEval 2.312 → 2.450 (+6.0%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 630.881 → 604.702 (-4.1%)
RENDER ComputeLightVolume 23.692 → 21.828 (-7.9%) ↓
RENDER ComputeSunShadow 11.466 → 13.543 (+18.1%) ⚠
RENDER CanvasToFramebuffer 12.352 → 10.676 (-13.6%) ↓
RENDER BakeSunShadowMap 1.089 → 6.251 (+474.0%) ⚠
RENDER LightingToTrixel 6.399 → 5.533 (-13.5%) ↓
RENDER ComputeVoxelAO 5.526 → 5.103 (-7.7%) ↓
UPDATE PropagateTransform 2.609 → 2.641 (+1.2%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 167.005 → 175.151 (+4.9%)
RENDER ComputeSunShadow 25.352 → 26.023 (+2.6%)
RENDER ComputeLightVolume 23.052 → 23.760 (+3.1%)
RENDER LightingToTrixel 14.689 → 14.171 (-3.5%)
RENDER CanvasToFramebuffer 11.851 → 11.871 (+0.2%)
RENDER BakeSunShadowMap 1.836 → 9.248 (+403.7%) ⚠
UPDATE PropagateTransform 3.727 → 3.610 (-3.1%)
RENDER FogToTrixel 3.556 → 3.460 (-2.7%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 859.274 → 841.279 (-2.1%)
RENDER ComputeLightVolume 22.681 → 22.077 (-2.7%)
RENDER ComputeSunShadow 7.820 → 11.274 (+44.2%) ⚠
RENDER CanvasToFramebuffer 11.706 → 11.198 (-4.3%)
RENDER BakeSunShadowMap 1.105 → 6.442 (+483.0%) ⚠
RENDER LightingToTrixel 4.901 → 4.619 (-5.8%) ↓
RENDER ComputeVoxelAO 4.129 → 4.054 (-1.8%)
UPDATE PropagateTransform 3.837 → 3.772 (-1.7%)

@jakildev jakildev added fleet:changes-made Agent addressed human feedback — ready for human re-review and removed fleet:has-nits PR is approved, but reviewer flagged optional improvements to address before merge fleet:amending-mac-pool-2 labels Nov 6, 2026
@jakildev

jakildev commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Addressed feedback:\n- Updated voxel-editor startup help: Home resets the camera and yaw; Space+left pans.\n- Documented that editor right-drag does not begin while a widget is hovered or document interaction is blocked.\n- Clarified retained-focus behavior and the interactive-orbit effect on --pivot-origin help; rewrapped the render-prefab pivot instruction.\n- Verified C_ScreenSpaceMarker is already explicitly runtime-only and excluded from snapshots, so no persistence code change was needed.\n\nValidation: IRVoxelEditor build passed; instruction-size, comment-reference, and format checks passed. light-verify could not complete because this macOS session has no WindowServer display (RESULT=NO-DISPLAY).\n\n— worker (Codex)

@github-actions github-actions Bot added human:re-review Human pushed changes to an approved PR — fleet should re-review and removed fleet:approved Fleet reviewer approved — ready for human merge labels Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

New commits pushed after fleet approval. Re-tagging human:re-review so the fleet picks it up again.

@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 — render: default to click-anchored orbit with a visible pivot (re-review, delta-scoped)

Verdict: approve

Stacked on #4886 (cross-author, open, fleet:approved). Reviewing the child diff only — upstream is approved separately. The delta since the Opus recheck at 6a4d2af40 is one commit, 2a75c1f78 ("docs: clarify orbit controls and pivot behavior"). It changes three string literals (--pivot-origin help in canvas_stress and shape_debug, the voxel editor's startup help line) and four docs. No logic, struct, or shader changed, so the Opus recheck of the lifecycle surface still stands.

Prior-review resolution

  • ✅ creations/editors/voxel_editor/main.cpp:6868 — startup help said Space: re-center + reset yaw — verified fixed at 2a75c1f. It now reads Space+left: pan camera Home: re-center + reset yaw, matching the Home registration and voxel_editor/CLAUDE.md.
  • ✅ creations/editors/voxel_editor/main.cpp (EditorViewportRotate) — undocumented right-drag refusal over a hovered widget or blocked document — verified fixed at 2a75c1f. voxel_editor/CLAUDE.md:46-47 now states it.
  • ✅ Opus nit, --pivot-origin silently switching to CAMERA_CENTER on the first interactive orbit — verified fixed at 2a75c1f. Both demo help strings now say "interactive orbit switches to camera center".
  • ✅ Opus nit, non-gesture yaw (AUTO_YAW_ROTATE, scripted setYaw) pivoting about the retained focus — verified fixed at 2a75c1f. prefab-render-surface.md ("subsequent pans and non-gesture yaw use the fixed-focus identity mapping") records it.
  • ✅ engine/prefabs/irreden/render/CLAUDE.md over-long last line — verified fixed at 2a75c1f. The bullet is re-wrapped and the file is still 210 lines. python3 scripts/lint_instruction_size.py --against origin/master exits 0 with an empty introduced: list, and the instruction-size check on the head is green.
  • ↗ Opus nit, the orbit indicator is written into world snapshots and each orbit → save → load adds a hidden sphere. It was a follow-up issue candidate, not a change to this PR. It is out of this PR's scope and does not block the merge.

Checks not read

  • linux-build, perf-gate, and fleet-tests were still pending on head 2a75c1f78 when I reviewed. They are unread, not green. Every completed check is green: changes, closes-lint, comment-refs, format-check, header-checks, instruction-size, no-plan-files, swap-approval-label, whitespace. The merge should wait for linux-build to finish green. The delta is help strings and docs, so I don't expect a change from the previous head.

Nits (follow-up)

  • engine/prefabs/irreden/render/CLAUDE.md:~133 — the trim dropped the blank line between the cursor-orbit bullet and the ## Help overlay and settings menu heading. It still renders, but every other heading in the file has a blank line above it. Restore it when the file is next touched and a line is available in the budget.

Test plan the author should run before merge

  • linux-build / Engine Tests finish green on 2a75c1f78.

Escalation: none. Safe for merge once linux-build finishes green; the delta is string literals and docs, so the earlier Opus recheck covers the executable surface.

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

Opus recheck not required.

@jakildev jakildev added fleet:approved Fleet reviewer approved — ready for human merge and removed fleet:changes-made Agent addressed human feedback — ready for human re-review human:re-review Human pushed changes to an approved PR — fleet should re-review fleet:reviewing-mac-pool-1 labels Nov 6, 2026
@jakildev

jakildev commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

declined: merger/sonnet @mac-pool-2 PR is MERGEABLE; no merger action required

@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 auto-screenshots saved, no shader compile warnings). Log noise, not PR-related: glad.h GL_INVALID_INDEX/GL_TIMEOUT_IGNORED macro redefinitions at build; runtime tagGpuStage unknown stage guiToScreen (pre-existing on master).

@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 → 9b85bd0-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/9b85bd092-ci

host calibration

  • host: linux-x86_64-epyc-9v74-80-unknown (matches baseline)
  • ref_ms: head 90.45 vs baseline 89.92 (load_factor 1.01×)
  • 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.01×; no calibration-scaling entry)
  • attribution: improvement withheld, stacked: merge base 4703fdf39 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 386.70 → 386.39 (-0.1%) 1395.41 → 1392.14 (-0.2%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 934.70 → 932.02 (-0.3%) 1986.96 → 1991.96 (+0.3%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 490.07 → 514.08 (+4.9%) 7535.31 → 7901.31 (+4.9%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1241.41 → 1239.91 (-0.1%) 2281.99 → 2285.22 (+0.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 47.45→47.39 47.93→47.90 43.84→43.73 0.78→0.79 41.93→42.16 4.85→4.87 — 0.00→0.00 2.36→2.31 12.00→12.13 17.25→16.98 15.28→15.78 3.39→3.37 1.02→1.13 ⚠ 0.18→0.18 — 6.38→6.40
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 85.83→86.36 292.62→290.93 179.65→179.89 2.85→2.87 160.75→160.78 4.21→4.42 — 0.00→0.00 2.02→2.08 21.38→21.89 16.06→16.09 12.99→13.13 6.62→6.67 1.16→1.33 ⚠ 0.17→0.17 — 6.00→5.94
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 41.76→44.56 57.28→59.64 48.10→50.02 7.36→7.51 37.60→39.45 6.33→6.79 0.75→0.80 0.00→0.00 0.84→0.97 ⚠ 38.83→42.73 ⚠ 15.95→16.85 32.33→34.21 5.32→5.45 1.40→1.48 0.16→0.19 ⚠ 0.00→0.00 7.13→7.38
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 91.69→91.45 361.67→359.43 292.01→291.97 4.45→4.44 253.53→253.76 5.00→4.88 0.74→0.72 0.00→0.00 0.68→0.75 ⚠ 19.09→19.37 16.04→16.14 12.98→13.06 5.41→5.42 1.15→1.24 0.17→0.17 0.00→0.00 5.96→5.96

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.626 (+0.3%)
RENDER ComputeLightVolume 32.117 → 32.416 (+0.9%)
RENDER CanvasToFramebuffer 15.199 → 15.306 (+0.7%)
RENDER BakeSunShadowMap 7.727 → 7.828 (+1.3%)
RENDER ComputeSunShadow 6.533 → 6.530 (-0.0%)
UPDATE PropagateTransform 3.905 → 3.896 (-0.2%)
RENDER LightingToTrixel 3.516 → 3.530 (+0.4%)
UPDATE FogRevealEval 3.234 → 3.150 (-2.6%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 726.653 → 726.377 (-0.0%)
RENDER ComputeLightVolume 28.634 → 28.821 (+0.7%)
RENDER ComputeSunShadow 16.865 → 16.903 (+0.2%)
RENDER CanvasToFramebuffer 14.207 → 14.031 (-1.2%)
RENDER BakeSunShadowMap 6.489 → 7.063 (+8.8%)
RENDER LightingToTrixel 6.802 → 6.903 (+1.5%)
RENDER ComputeVoxelAO 5.799 → 5.836 (+0.6%)
UPDATE PropagateTransform 3.901 → 3.718 (-4.7%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 211.685 → 222.473 (+5.1%)
RENDER ComputeSunShadow 33.623 → 36.801 (+9.5%)
RENDER ComputeLightVolume 30.058 → 31.945 (+6.3%)
RENDER LightingToTrixel 19.377 → 20.338 (+5.0%)
RENDER CanvasToFramebuffer 14.929 → 15.651 (+4.8%)
RENDER BakeSunShadowMap 10.105 → 11.122 (+10.1%) ⚠
UPDATE PropagateTransform 5.317 → 5.223 (-1.8%)
RENDER FogToTrixel 4.569 → 4.737 (+3.7%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1010.205 → 1007.754 (-0.2%)
RENDER ComputeLightVolume 28.611 → 28.799 (+0.7%)
RENDER ComputeSunShadow 14.340 → 14.514 (+1.2%)
RENDER CanvasToFramebuffer 13.888 → 14.098 (+1.5%)
RENDER BakeSunShadowMap 6.758 → 6.852 (+1.4%)
RENDER LightingToTrixel 5.563 → 5.574 (+0.2%)
UPDATE PropagateTransform 5.236 → 5.312 (+1.5%)
RENDER ComputeVoxelAO 4.881 → 4.857 (-0.5%)

jakildev and others added 4 commits November 6, 2026 00:00
Default camera gestures to a shared click-latched pivot, preserving the view when reanchoring and releasing. Show a stable screen-space anchor and allow creations to supply their own surface and floor resolution.

Use the same policy in the voxel editor and move camera reset to Home so Space remains a pan gesture. Validate actual rendered anchors, input chords, pan, zoom, and release continuity across intermediate yaws and letterboxed windows.
The evidence directories now live at media commit 944a0d6; master keeps no
committed PR screenshots.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The note grew the file past the instruction-size band once the layer sat
on current master; the contract now fits in the budget and the design
doc keeps the detail.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@jakildev
jakildev force-pushed the codex/click-anchored-orbit branch from 2a75c1f to 634b38c Compare November 6, 2026 08:00
@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 → 042aa74-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/042aa74cb-ci

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 103.88 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.1 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 4703fdf39 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 → 486.01 (+1.4%) 1895.72 → 1928.09 (+1.7%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1272.73 → 1290.93 (+1.4%) 2588.44 → 2612.74 (+0.9%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 652.45 → 680.63 (+4.3%) 12258.22 → 13315.01 (+8.6%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1728.99 → 1742.14 (+0.8%) 2992.62 → 3030.64 (+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 64.10→64.95 64.35→64.13 57.32→56.59 1.29→1.30 52.90→53.03 5.30→5.57 — 0.00→0.00 2.62→2.66 14.77→14.94 11.41→11.42 21.67→21.92 3.73→3.98 1.22→1.27 0.19→0.25 ⚠ — 7.87→8.06
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 110.04→112.74 415.41→417.90 261.63→263.27 4.03→4.08 232.04→235.10 4.80→5.25 — 0.00→0.00 2.31→2.41 28.02→29.08 10.25→10.45 19.56→19.39 8.17→8.51 1.49→1.68 ⚠ 0.17→0.21 ⚠ — 7.39→7.74
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 59.19→60.09 80.80→83.31 66.25→67.26 12.87→13.60 48.01→48.23 8.35→9.30 ⚠ 1.10→1.14 0.00→0.00 0.89→1.01 ⚠ 62.51→67.92 10.49→10.59 57.15→59.72 7.95→8.39 1.84→1.85 0.17→0.21 ⚠ 0.00→0.00 8.93→9.34
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 119.49→120.82 533.16→534.80 426.57→427.15 6.37→6.37 367.27→368.53 5.63→5.67 1.10→1.14 0.00→0.00 0.73→0.83 ⚠ 25.17→25.52 10.38→10.66 19.24→19.38 6.43→6.73 1.46→1.71 ⚠ 0.17→0.21 ⚠ 0.00→0.00 7.39→7.91

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 → 248.397 (+0.2%)
RENDER ComputeLightVolume 32.632 → 32.774 (+0.4%)
RENDER CanvasToFramebuffer 17.085 → 17.307 (+1.3%)
RENDER BakeSunShadowMap 9.662 → 9.682 (+0.2%)
RENDER ComputeSunShadow 7.624 → 7.795 (+2.2%)
UPDATE PropagateTransform 4.519 → 4.650 (+2.9%)
UPDATE FogRevealEval 4.190 → 4.257 (+1.6%)
RENDER LightingToTrixel 3.850 → 4.181 (+8.6%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1025.715 → 1035.767 (+1.0%)
RENDER ComputeLightVolume 29.338 → 29.310 (-0.1%)
RENDER ComputeSunShadow 21.864 → 22.481 (+2.8%)
RENDER CanvasToFramebuffer 15.908 → 16.817 (+5.7%)
RENDER ComputeVoxelAO 9.249 → 9.526 (+3.0%)
RENDER BakeSunShadowMap 8.417 → 8.941 (+6.2%)
RENDER LightingToTrixel 8.371 → 8.718 (+4.1%)
UPDATE PropagateTransform 4.405 → 4.331 (-1.7%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 288.688 → 299.272 (+3.7%)
RENDER ComputeSunShadow 55.366 → 60.621 (+9.5%)
RENDER LightingToTrixel 36.271 → 38.247 (+5.4%)
RENDER ComputeLightVolume 32.424 → 33.119 (+2.1%)
RENDER BakeSunShadowMap 22.377 → 23.102 (+3.2%)
RENDER CanvasToFramebuffer 17.441 → 17.932 (+2.8%)
RENDER FogToTrixel 7.107 → 7.477 (+5.2%)
UPDATE PropagateTransform 6.121 → 6.181 (+1.0%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1457.395 → 1462.648 (+0.4%)
RENDER ComputeLightVolume 29.173 → 29.546 (+1.3%)
RENDER ComputeSunShadow 18.725 → 18.907 (+1.0%)
RENDER CanvasToFramebuffer 16.205 → 16.582 (+2.3%)
RENDER BakeSunShadowMap 8.811 → 9.042 (+2.6%)
RENDER ComputeVoxelAO 8.092 → 7.848 (-3.0%)
RENDER LightingToTrixel 6.600 → 6.911 (+4.7%)
UPDATE PropagateTransform 6.104 → 6.224 (+2.0%)

@jakildev
jakildev merged commit 4b6092d into master Nov 6, 2026
13 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