Skip to content

editor: center swipe orbit and enable continuous trackpad zoom - #4893

Merged
jakildev merged 4 commits into
masterfrom
codex/editor-plane-navigation
Nov 10, 2026
Merged

jakildev merged 4 commits into
masterfrom
codex/editor-plane-navigation

Conversation

@jakildev

@jakildev jakildev commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

Horizontal trackpad swipes orbit the center of the editing plane and mark it in gold. Option/Alt-drag still orbits the surface or floor under the pointer. Reset View, Home, and Cmd+0 on Mac recenter the plane in the unobstructed work area and return to 4×. Set --home-zoom 0 to preserve the current scale or supply a different reset zoom.

Vertical swipes use the existing continuous renderer from 1× to 64×. Scroll distance changes zoom proportionally at every scale; --scroll-zoom-rate controls sensitivity. Authored LODs still switch at their existing thresholds. Separate work tracks configurable thresholds and hysteresis (#4891) and comparing filters at silhouettes and pick boundaries (#4892).

Mac document shortcuts accept Command, with the active platform's labels in editor help. Text fields own their shortcuts while editing. Long F1 lists wrap into two columns and fit in the default 1600×900 editor.

Continuous zoom exposed a Metal placement error at 180°: the gather used the screen Y direction when positioning the texture in the intermediate framebuffer. The two stages now use their respective coordinate conventions. OpenGL placement is unchanged.

Original implementation validation

  • Built Debug and Release IRVoxelEditor on macOS Metal.

  • Native viewport_scroll passed 15/15 with default reset zoom and with zoom preservation. Starting from 30° and 67°, swipes produced 4.269×, 8.451× and 3.668×; Home, Reset View and Cmd+0 centered the plane within zero measured window points.

  • Native click_orbit (70/70), local_canvas (10/10), lod_workflow (9/9), document_workflow (25/25), and nway_symmetry (8/8). The sessions inject input into the native editor; physical trackpad feel still needs a hands-on check.

  • 137 focused camera, raster placement, input, and editor tests passed. Native zoom calibration measured 21 silhouette widths in 21 zoom settings from 2× through 4×, with no backward step.

  • Native screen_alignment passed 70/70 and the independent pixel comparisons passed all seven poses. At 180°, all five face probes now agree with the rendered normals; out-of-band outline pixels fell from four to zero. All seven poses had zero ghost leakage and an exact floor-to-placed-cell silhouette match. The grader rejects integer zoom at the two fractional poses; its 18 unit tests pass.

Before swipe orbit change After Mac shortcuts
Pointer pivot Editing plane pivot Mac keyboard shortcuts

Stack validation — 2026-11-06

Replayed the owned editor commits onto merged master f7b1dbfa2, preserving the four-PR chain. Range-diff inspection found no lost runtime hunks. Moved detailed validation/session contracts into docs/design/editor-validation.md to fix instruction-size CI. Corrected the newly inherited document-transition fixture's stale File/Discard click centers and made composite Save As repeatable.

Validated the combined stack at 683a6017c8a7be6964c5872282cba5d982c839a3 on macOS/Metal:

  • IRVoxelEditor and IrredenEngineTest builds pass.
  • 273 focused editor, camera, input, command, keymap and Lua tests pass.
  • 265 native assertions pass across viewport_scroll (15), material_tools (12), shapes_workflow (22), region_tools (35), workspace_controls (19), workspace_restore (2), camera_gestures (44), screen_alignment (70), document_workflow (28), motion_preview (11), and test_dock_rails (7); zero layout findings and clean shutdowns.
  • Independent PNG alignment grading passes all seven poses, including 30 and 67 degrees: no preview leakage through solids, no grid over solid interiors, exact floor-to-cell silhouettes. Its 18 unit controls pass.
  • Header conventions, instruction-size, comment references, changed fixture formatting and whitespace pass.

Follow-up integration — 2026-11-07

The two parked follow-ups are reconciled in dependency order: #4903 → #4908 → #4918. #4908 maps Actions to the current tools and integer fields, isolates modal input, and keeps remapped badges synchronized. #4918 preserves the Shapes/dock UI gate and diagnoses replay clicks swallowed by UI.

Current evidence: 273 focused unit tests pass. The combined native registry covers 75 cases and 1,524 assertions; all 73 pre-existing case verdicts and failure sets are unchanged, and both new click-occlusion controls behave as expected. Six baseline failures remain: fill_ghost, click_orbit, mode_preview, component_field_key (layout findings), text_input_command_capture, and test_recipe_reapply. These are disclosed with exact results in #4918; this is not an all-green editor suite. Per-case comparison. The overlap gate is overlap with clean trial merges and no blockers. This PR is ready for review in stack order; no merge or fleet approval is claimed.

Overlap gate

fleet-pr-overlap --self-pr 4893: VERDICT: overlap (exit 1). All shared-path trial merges are clean; no blocking or base-conflict rows.

Upstream rows: none.

#4895, #4896, #4903, #4908, #4918: identical clean grades on 30 shared paths

The gate reports the following rows for #4895; the same paths are graded clean for #4896, #4903, #4908, #4918.

#4895 creations/editors/voxel_editor/CLAUDE.md clean
#4895 creations/editors/voxel_editor/construction_grid.hpp clean
#4895 creations/editors/voxel_editor/local_part_edit.hpp clean
#4895 creations/editors/voxel_editor/main.cpp clean
#4895 creations/editors/voxel_editor/screen_alignment.hpp clean
#4895 creations/editors/voxel_editor/session_builder.hpp clean
#4895 creations/editors/voxel_editor/sessions.hpp clean
#4895 creations/editors/voxel_editor/viewport_scroll_workflow.hpp clean
#4895 creations/editors/voxel_editor/workarea_framing.hpp clean
#4895 docs/design/continuous-camera-zoom.md clean
#4895 docs/design/editor-validation.md clean
#4895 docs/design/lua-input-commands.md clean
#4895 engine/command/include/irreden/ir_command.hpp clean
#4895 engine/input/CLAUDE.md clean
#4895 engine/input/include/irreden/input/ir_input_types.hpp clean
#4895 engine/input/include/irreden/ir_input.hpp clean
#4895 engine/input/src/ir_input.cpp clean
#4895 engine/prefabs/irreden/render/cursor_pivot.hpp clean
#4895 engine/prefabs/irreden/render/help_overlay.hpp clean
#4895 engine/prefabs/irreden/render/systems/system_help_overlay.hpp clean
#4895 engine/prefabs/irreden/render/systems/system_trixel_to_framebuffer.hpp clean
#4895 engine/prefabs/irreden/render/systems/system_widget_apply_number_field.hpp clean
#4895 engine/prefabs/irreden/render/systems/system_widget_apply_text_input.hpp clean
#4895 engine/prefabs/irreden/render/systems/system_widget_input.hpp clean
#4895 engine/script/include/irreden/script/lua_command_bindings.hpp clean
#4895 scripts/editor-screen-alignment.py clean
#4895 scripts/tests/test_editor_screen_alignment.py clean
#4895 test/render/camera_zoom_policy_test.cpp clean
#4895 test/render/widget_keyboard_test.cpp clean
#4895 test/script/lua_command_test.cpp clean

@jakildev jakildev added fleet:wip Work in progress — not ready for review fleet:author-codex Implementation last authored by Codex; route review to Claude labels Nov 4, 2026
@jakildev
jakildev added this pull request to stack #4870 November 4, 2026 07:22
@jakildev jakildev added the fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend label Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

Perf gate

Head host slug: linux-x86_64-xeon-6975p-c-03-0-vga

Perf gate — seeding new baseline

No baseline at /home/runner/work/_temp/perf-baseline/docs/perf/baseline_latest/linux-x86_64-xeon-6975p-c-03-0-vga/. The next master push from this host will seed one. Gate is informational this PR.

@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 commit (editor: center swipe orbit and enable continuous trackpad zoom) was replayed with git rebase --onto <new parent head> <old parent head>; the inherited pre-rework commits are gone. One file needed resolution, creations/editors/voxel_editor/sessions.hpp: master's document-workflow recipe gained three composite/discard segments at the end, and this layer appends its platform_shortcuts_help segment with an assertion on the final segment. The layer's segment now follows master's three, and its check row repeats the state master's last segment leaves (the composite row with animation controls disabled), since the F1 help overlay changes no document state; the segment count still matches the table. Everything else in the diff is the original PR-owned scope. Evidence moved off the branch to media commit a8215a23d3998c21ebdbaf13def861076313f768 and the body's image links repointed, so the no-plan-files check passes. fleet-build --target IRVoxelEditor is clean on windows-debug. This layer stays a draft with fleet:wip as the author left it. — opus-architect

@jakildev

jakildev commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Re-replayed once more onto #4890's follow-up commit (format and doc-size fixes). This layer rewrites the trackpad paragraph of creations/editors/voxel_editor/CLAUDE.md, so the paragraph is the layer's own text again; note for the author that the file is at 220 lines against a 200-line budget with a 10-line band, so the instruction-size check fails on this draft exactly as it did before the rebase (the previous tip was at 221). Trimming that paragraph by about ten lines, or pointing at a design doc, clears it. — opus-architect

@jakildev
jakildev force-pushed the codex/editor-plane-navigation branch from d9f5ae7 to d9829c0 Compare November 6, 2026 06:59
@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 → c09813d-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/c09813d72-ci

host calibration

  • host: linux-x86_64-epyc-9v45-96-unknown (matches baseline)
  • ref_ms: head 62.42 vs baseline 57.81 (load_factor 1.08×)
  • 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.08×; no calibration-scaling entry)
  • attribution: improvement withheld, stacked: merge base 1a39fb102 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 → 311.20 (-1.8%) 1066.40 → 1090.78 (+2.3%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 789.82 → 772.07 (-2.2%) 1545.76 → 1464.26 (-5.3%) ↓
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 374.51 → 408.13 (+9.0%) 5352.30 → 6120.12 (+14.3%) ⚠
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1038.25 → 1038.09 (-0.0%) 1765.57 → 1762.34 (-0.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 41.55→41.50 41.33→40.31 36.55→36.33 0.67→0.82 ⚠ 36.45→34.69 4.99→4.56 ↓ — 0.00→0.00 1.25→2.25 ⚠ 4.76→9.60 ⚠ 14.71→11.83 ↓ 12.88→12.17 ↓ 3.28→2.44 ↓ 1.13→0.86 ↓ 0.18→0.12 ↓ — 6.27→5.03 ↓
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 79.40→75.17 ↓ 244.57→241.07 156.41→154.65 4.78→2.35 ↓ 138.90→137.60 4.74→4.24 ↓ — 0.00→0.00 1.10→1.78 ⚠ 11.51→16.88 ⚠ 13.01→11.23 ↓ 11.18→10.69 6.15→5.12 ↓ 1.43→0.89 ↓ 0.18→0.12 ↓ — 5.95→4.88 ↓
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 34.41→37.73 46.16→48.56 37.51→39.30 5.65→5.82 29.86→31.71 5.64→6.27 ⚠ 0.72→0.77 0.00→0.00 0.76→0.80 25.80→33.60 ⚠ 11.84→12.28 24.91→26.29 4.17→4.39 1.20→1.25 0.13→0.13 0.00→0.00 6.09→6.07
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 81.24→82.19 301.09→298.62 248.74→248.93 3.77→3.86 217.66→216.99 5.05→4.94 0.77→0.72 ↓ 0.00→0.00 0.69→0.56 ↓ 7.89→15.65 ⚠ 12.22→11.70 10.81→10.68 4.76→4.43 ↓ 1.32→1.00 ↓ 0.15→0.12 ↓ 0.00→0.00 5.63→4.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 164.152 → 161.664 (-1.5%)
RENDER ComputeLightVolume 27.204 → 23.709 (-12.8%) ↓
RENDER CanvasToFramebuffer 12.842 → 11.306 (-12.0%) ↓
RENDER BakeSunShadowMap 1.225 → 6.866 (+460.5%) ⚠
RENDER ComputeSunShadow 4.687 → 4.956 (+5.7%)
UPDATE PropagateTransform 2.792 → 2.807 (+0.5%)
UPDATE FogRevealEval 2.312 → 2.584 (+11.8%) ⚠
RENDER LightingToTrixel 3.394 → 2.530 (-25.5%) ↓

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 630.881 → 616.141 (-2.3%)
RENDER ComputeLightVolume 23.692 → 21.641 (-8.7%) ↓
RENDER ComputeSunShadow 11.466 → 13.094 (+14.2%) ⚠
RENDER CanvasToFramebuffer 12.352 → 10.733 (-13.1%) ↓
RENDER BakeSunShadowMap 1.089 → 5.561 (+410.7%) ⚠
RENDER LightingToTrixel 6.399 → 5.278 (-17.5%) ↓
RENDER ComputeVoxelAO 5.526 → 4.653 (-15.8%) ↓
UPDATE PropagateTransform 2.609 → 2.680 (+2.7%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 167.005 → 181.101 (+8.4%)
RENDER ComputeSunShadow 25.352 → 28.445 (+12.2%) ⚠
RENDER ComputeLightVolume 23.052 → 23.910 (+3.7%)
RENDER LightingToTrixel 14.689 → 15.663 (+6.6%)
RENDER CanvasToFramebuffer 11.851 → 11.980 (+1.1%)
RENDER BakeSunShadowMap 1.836 → 9.468 (+415.7%) ⚠
UPDATE PropagateTransform 3.727 → 3.947 (+5.9%)
RENDER FogToTrixel 3.556 → 3.776 (+6.2%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 859.274 → 857.461 (-0.2%)
RENDER ComputeLightVolume 22.681 → 22.060 (-2.7%)
RENDER ComputeSunShadow 7.820 → 11.083 (+41.7%) ⚠
RENDER CanvasToFramebuffer 11.706 → 10.792 (-7.8%) ↓
RENDER BakeSunShadowMap 1.105 → 6.560 (+493.7%) ⚠
RENDER LightingToTrixel 4.901 → 4.564 (-6.9%) ↓
RENDER ComputeVoxelAO 4.129 → 4.050 (-1.9%)
UPDATE PropagateTransform 3.837 → 3.816 (-0.5%)

@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 → 423752e-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/423752e98-ci

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 103.83 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 e770be4d3 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 → 496.01 (+3.5%) 1895.72 → 1766.16 (-6.8%) ↓
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1272.73 → 1281.95 (+0.7%) 2588.44 → 2613.47 (+1.0%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 652.45 → 675.82 (+3.6%) 12258.22 → 13146.15 (+7.2%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1728.99 → 1762.24 (+1.9%) 2992.62 → 3010.22 (+0.6%)

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.55 64.35→66.12 57.32→58.97 1.29→0.97 ↓ 52.90→55.34 5.30→5.64 — 0.00→0.00 2.62→2.77 14.77→15.62 11.41→12.35 21.67→22.98 3.73→3.81 1.22→1.34 0.19→0.20 — 7.87→8.16
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 110.04→110.22 415.41→416.94 261.63→262.72 4.03→4.11 232.04→233.67 4.80→4.82 — 0.00→0.00 2.31→2.39 28.02→28.38 10.25→10.38 19.56→19.34 8.17→8.23 1.49→1.72 ⚠ 0.17→0.19 ⚠ — 7.39→7.52
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 59.19→59.59 80.80→82.24 66.25→66.80 12.87→13.35 48.01→48.33 8.35→8.92 1.10→1.14 0.00→0.00 0.89→1.08 ⚠ 62.51→68.16 10.49→10.73 57.15→59.97 7.95→8.21 1.84→1.85 0.17→0.17 0.00→0.00 8.93→9.21
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 119.49→120.47 533.16→534.22 426.57→427.12 6.37→6.44 367.27→368.78 5.63→5.74 1.10→1.13 0.00→0.00 0.73→0.77 25.17→25.03 10.38→10.48 19.24→19.22 6.43→6.68 1.46→1.68 ⚠ 0.17→0.19 ⚠ 0.00→0.00 7.39→7.56

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 → 256.824 (+3.6%)
RENDER ComputeLightVolume 32.632 → 34.812 (+6.7%)
RENDER CanvasToFramebuffer 17.085 → 17.879 (+4.6%)
RENDER BakeSunShadowMap 9.662 → 10.228 (+5.9%)
RENDER ComputeSunShadow 7.624 → 8.040 (+5.5%)
UPDATE PropagateTransform 4.519 → 4.682 (+3.6%)
UPDATE FogRevealEval 4.190 → 4.256 (+1.6%)
RENDER ComputeVoxelAO 3.904 → 4.054 (+3.8%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1025.715 → 1030.154 (+0.4%)
RENDER ComputeLightVolume 29.338 → 29.215 (-0.4%)
RENDER ComputeSunShadow 21.864 → 22.069 (+0.9%)
RENDER CanvasToFramebuffer 15.908 → 16.323 (+2.6%)
RENDER ComputeVoxelAO 9.249 → 9.384 (+1.5%)
RENDER BakeSunShadowMap 8.417 → 8.647 (+2.7%)
RENDER LightingToTrixel 8.371 → 8.437 (+0.8%)
UPDATE PropagateTransform 4.405 → 4.477 (+1.6%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 288.688 → 295.934 (+2.5%)
RENDER ComputeSunShadow 55.366 → 60.643 (+9.5%)
RENDER LightingToTrixel 36.271 → 38.547 (+6.3%)
RENDER ComputeLightVolume 32.424 → 33.196 (+2.4%)
RENDER BakeSunShadowMap 22.377 → 23.170 (+3.5%)
RENDER CanvasToFramebuffer 17.441 → 17.570 (+0.7%)
RENDER FogToTrixel 7.107 → 7.318 (+3.0%)
UPDATE PropagateTransform 6.121 → 6.096 (-0.4%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1457.395 → 1462.064 (+0.3%)
RENDER ComputeLightVolume 29.173 → 29.227 (+0.2%)
RENDER ComputeSunShadow 18.725 → 18.670 (-0.3%)
RENDER CanvasToFramebuffer 16.205 → 16.518 (+1.9%)
UPDATE PropagateTransform 6.104 → 9.267 (+51.8%) ⚠
RENDER BakeSunShadowMap 8.811 → 8.693 (-1.3%)
RENDER ComputeVoxelAO 8.092 → 7.752 (-4.2%)
RENDER LightingToTrixel 6.600 → 6.857 (+3.9%)

Base automatically changed from codex/editor-trackpad-navigation to master November 6, 2026 17:25
jakildev and others added 3 commits November 6, 2026 09:37
The evidence directories now live at media commit a8215a2; master keeps no
committed PR screenshots.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@jakildev
jakildev force-pushed the codex/editor-plane-navigation branch from d9829c0 to 37c3594 Compare November 6, 2026 17:40
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Perf gate

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

perf comparison: a990fd6 → df3a055-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/df3a05563-ci

host calibration

  • host: linux-x86_64-xeon-platinum-8573c-unknown (matches baseline)
  • ref_ms: head 90.14 vs baseline 77.66 (load_factor 1.16×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@a990fd60f (branch tip); master 8e5df7839, finished 2026-10-25T01:27:15Z, 12.7 d before the head run, ref_ms 77.66
  • weighting: calibration-scaled (frame avg only; load_factor 1.16× ≥ 1.10×)
  • attribution: no measured master improvement between capture master 8e5df7839 and merge base 8e96ab1fc (97 commits)

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 → 626.44 (+30.4% raw, +12.4% scaled) ⚠ 6741.47 → 8963.39 (+33.0%) ⚠
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1415.27 → 1756.07 (+24.1% raw, +6.9% scaled) 2257.77 → 2704.89 (+19.8%) ⚠

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.63 ⚠ 64.15→75.44 ⚠ 50.06→59.31 ⚠ 7.00→9.08 ⚠ 42.52→49.22 ⚠ 7.32→9.45 ⚠ 1.35→1.54 ⚠ 0.00→0.00 0.73→0.88 ⚠ 31.77→47.07 ⚠ 15.88→17.13 31.35→38.71 ⚠ 5.15→6.36 ⚠ 1.52→1.83 ⚠ 0.17→0.22 ⚠ 0.00→0.00 7.75→9.33 ⚠
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 127.06→155.12 ⚠ 444.89→524.43 ⚠ 323.39→394.18 ⚠ 5.42→6.62 ⚠ 309.87→377.98 ⚠ 5.89→6.34 1.32→1.60 ⚠ 0.00→0.00 0.57→0.72 ⚠ 9.85→21.38 ⚠ 14.11→17.16 ⚠ 11.74→14.21 ⚠ 4.36→5.67 ⚠ 1.19→1.49 ⚠ 0.17→0.22 ⚠ 0.00→0.00 6.43→8.13 ⚠

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 → 283.280 (+17.8%) ⚠
RENDER ComputeSunShadow 31.232 → 41.045 (+31.4%) ⚠
RENDER ComputeLightVolume 29.633 → 32.235 (+8.8%)
RENDER LightingToTrixel 18.523 → 24.687 (+33.3%) ⚠
RENDER CanvasToFramebuffer 15.822 → 19.008 (+20.1%) ⚠
RENDER BakeSunShadowMap 1.167 → 10.859 (+830.5%) ⚠
UPDATE PropagateTransform 4.949 → 6.152 (+24.3%) ⚠
RENDER FogToTrixel 4.669 → 5.698 (+22.0%) ⚠

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1218.093 → 1466.729 (+20.4%) ⚠
RENDER ComputeLightVolume 25.504 → 30.869 (+21.0%) ⚠
RENDER CanvasToFramebuffer 14.310 → 17.853 (+24.8%) ⚠
RENDER ComputeSunShadow 9.793 → 15.780 (+61.1%) ⚠
RENDER BakeSunShadowMap 0.198 → 7.207 (+3539.9%) ⚠
RENDER ComputeVoxelAO 5.222 → 6.364 (+21.9%) ⚠
UPDATE PropagateTransform 4.911 → 6.273 (+27.7%) ⚠
RENDER LightingToTrixel 4.476 → 5.832 (+30.3%) ⚠

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


⚠️ Regression detected — at least one cell regressed >10% on mean frame avg. Fix or justify before merging.

@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: 2f0f893 → 5dd4a8b-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-epyc-9v45-96-unknown/2f0f8931f99da55c09283704664408698e42e36e
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/5dd4a8bc3-ci

host calibration

  • host: linux-x86_64-epyc-9v45-96-unknown (matches baseline)
  • ref_ms: head 57.44 vs baseline 60.31 (load_factor 0.95×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@2f0f8931f (branch tip); master 0554677a5, finished 2026-11-06T17:46:05Z, 0.0 d before the head run, ref_ms 60.31
  • weighting: raw (class-matched capture; load_factor 0.95×; no calibration-scaling entry)
  • attribution: no measured master improvement between capture master 0554677a5 and merge base 8e96ab1fc (4 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 302.55 → 310.35 (+2.6%) 1036.86 → 1037.79 (+0.1%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 749.95 → 752.44 (+0.3%) 1458.07 → 1450.09 (-0.5%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 387.07 → 366.24 (-5.4% raw, -0.7% scaled) 5539.04 → 5138.29 (-7.2%) ↓
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1005.10 → 1028.78 (+2.4%) 1711.76 → 1619.91 (-5.4%) ↓

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 39.80→41.39 38.89→39.62 34.45→35.84 0.82→0.63 ↓ 33.85→34.82 4.58→4.54 — 0.00→0.00 2.17→2.22 9.61→10.29 12.41→12.54 11.63→12.09 2.64→2.61 0.90→0.90 0.14→0.13 ↓ — 5.37→5.22
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 75.61→73.89 231.39→230.81 147.78→148.46 2.29→2.40 132.57→132.09 4.39→4.18 — 0.00→0.00 1.86→1.86 17.46→17.03 11.89→11.95 10.18→10.31 5.38→5.03 ↓ 1.06→0.91 ↓ 0.14→0.12 ↓ — 5.15→4.89
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 36.15→34.61 45.86→44.28 37.92→36.21 5.12→5.00 30.29→28.77 ↓ 8.59→5.67 ↓ 0.72→0.68 ↓ 0.00→0.00 0.62→0.64 28.21→27.95 11.94→9.62 ↓ 24.48→23.49 4.10→3.90 1.18→1.14 0.12→0.11 ↓ 0.00→0.00 5.71→5.60
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 78.50→80.15 288.98→296.95 241.25→247.99 3.72→3.56 208.81→215.42 4.97→4.77 0.70→0.71 0.00→0.00 0.51→0.48 15.31→15.02 11.43→11.62 10.14→10.47 4.09→4.27 0.96→0.96 0.12→0.13 0.00→0.00 4.71→4.83

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 155.605 → 159.789 (+2.7%)
RENDER ComputeLightVolume 23.730 → 24.281 (+2.3%)
RENDER CanvasToFramebuffer 11.479 → 11.524 (+0.4%)
RENDER BakeSunShadowMap 6.753 → 7.293 (+8.0%)
RENDER ComputeSunShadow 4.924 → 5.109 (+3.8%)
UPDATE PropagateTransform 2.752 → 2.794 (+1.5%)
RENDER LightingToTrixel 2.735 → 2.731 (-0.1%)
UPDATE FogRevealEval 2.349 → 2.535 (+7.9%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 594.720 → 592.805 (-0.3%)
RENDER ComputeLightVolume 21.725 → 21.924 (+0.9%)
RENDER ComputeSunShadow 13.222 → 13.147 (-0.6%)
RENDER CanvasToFramebuffer 11.138 → 10.676 (-4.1%)
RENDER BakeSunShadowMap 6.059 → 5.732 (-5.4%) ↓
RENDER LightingToTrixel 5.535 → 5.193 (-6.2%) ↓
RENDER ComputeVoxelAO 4.965 → 4.675 (-5.8%) ↓
UPDATE PropagateTransform 2.529 → 2.842 (+12.4%) ⚠

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 174.134 → 162.118 (-6.9%) ↓
RENDER ComputeSunShadow 23.916 → 23.608 (-1.3%)
RENDER ComputeLightVolume 23.033 → 20.295 (-11.9%) ↓
RENDER LightingToTrixel 14.300 → 13.730 (-4.0%)
RENDER CanvasToFramebuffer 11.948 → 11.489 (-3.8%)
RENDER BakeSunShadowMap 8.083 → 8.064 (-0.2%)
UPDATE PropagateTransform 3.815 → 3.606 (-5.5%) ↓
RENDER FogToTrixel 3.579 → 3.387 (-5.4%) ↓

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 827.933 → 850.702 (+2.8%)
RENDER ComputeLightVolume 21.308 → 21.800 (+2.3%)
RENDER ComputeSunShadow 11.119 → 10.983 (-1.2%)
RENDER CanvasToFramebuffer 10.617 → 10.719 (+1.0%)
RENDER BakeSunShadowMap 6.161 → 6.007 (-2.5%)
RENDER LightingToTrixel 4.223 → 4.376 (+3.6%)
RENDER ComputeVoxelAO 3.877 → 3.917 (+1.0%)
UPDATE PropagateTransform 3.787 → 3.856 (+1.8%)

@jakildev jakildev removed the fleet:wip Work in progress — not ready for review label Nov 7, 2026
@jakildev
jakildev marked this pull request as ready for review November 7, 2026 19:05

@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: center swipe orbit and enable continuous trackpad zoom

Verdict: approve

Standalone PR (baseRefName == master), MERGEABLE/CLEAN, no Closes #N (so no acceptance grading). Every check on head 176ac21aa completed SUCCESS (linux-build, header-checks, instruction-size, comment-refs, format-check, fleet-tests, render-harness-tests, python-lint, perf-gate, whitespace). The perf-gate comment for this head shows no regression (frame avg within ±3% on all four cells).

Big picture

The PR does what its summary says: horizontal swipe orbits the construction-plane centre, Option/Alt-drag keeps the pointer pivot, vertical swipe is a continuous log2 zoom clamped to kTrixelCanvasZoomMin/Max, and Home / RESET VIEW / Cmd+0 share one resetEditorView(). The approach is sound — it reuses OrbitAnchor (new beginAt), focusEditorPoints framing (new shared moveEditorViewBy) and the existing continuous-zoom renderer rather than adding a parallel path. Engine-side changes are small and each has a test:

  • kModifierSuper added to the mask, heldKeyModifiers(), kModifierAll, the Lua IRInput.Modifier.SUPER table, and modifierString (CMD/OPTION labels on macOS). The existing exhaustive-mask tests (keyboard_dispatch_test.cpp:708, widget_keyboard_test.cpp:445) iterate to kModifierAll, so they widen automatically.
  • WIDGET_APPLY_TEXT_INPUT / WIDGET_APPLY_NUMBER_FIELD ignore typed keys while Ctrl/Super is held; two new tests pin Cmd+S / Cmd+0 not typing into a focused field and Cmd+Left/Right moving the caret.
  • WIDGET_INPUT's "typed modifiers" predicate is now (held & ~Shift) == 0, which is the same set as before plus Super.
  • Metal gather fix in system_trixel_to_framebuffer.hpp:1187: I checked the arithmetic against ir_platform.hpp (screenYDirection_ is −1 on OpenGL, +1 on Metal). displayTranslation * (1, −sign.y) is raw·(1,−1) on both backends, so OpenGL is unchanged and Metal now matches the doc's "gather quad centre (1,−1)". The rewritten camera_zoom_policy_test negates Y unconditionally and recovers the same raw, which is consistent on both.
  • Help overlay two-column split keeps a command's wrapped description with its shortcut and falls back to one column if splitting is not shorter; textLineRect/builtText index across both columns consistently.
  • Document-workflow segment count (+3) and checks[] (+3) agree; kViewportScrollShotCount is 14 on non-Mac so the Mac-only Cmd+0 shot (index 14) is never indexed there.

Nits (follow-up)

  • main.cpp resetEditorView() returns early under authoringInteractionBlocked(), so Home is now a no-op mid-stroke where it previously always reset. Fine as a design choice; worth one line in creations/editors/voxel_editor/CLAUDE.md next to the Home description.
  • Behaviour note for the engine-wide mask: on Windows/Linux, holding the Super/Windows key now fails exact-match hotkeys (hotkey.modifiers_ != heldModifiers_ in system_widget_input.hpp) that previously fired. Probably desired, not covered by a test; no action required.
  • Validation evidence is macOS/Metal only (OpenGL is covered by the green Linux build, not by a run of viewport_scroll/screen_alignment). The cross-host smoke label below records that debt.

Praise

  • Moving the long validator and session-contract text into docs/design/editor-validation.md and shrinking the CLAUDE.md paragraph is the right fix for the instruction-size budget.
  • scripts/editor-screen-alignment.py now rejects integer zoom at the two fractional poses, with a negative unit test, so the alignment oracle cannot silently pass on a snapped zoom.

Checklist notes

  • ECS / ownership / globals: no new per-entity getComponent in ticks, no header globals, no manager pointers stored. constructionPlane() uses getComponentOptional outside any system tick.
  • Math: new code uses IRMath::log2/pow/clamp/isFinite; no glm::/std:: math outside engine/math/.
  • Render: no shader or std140 changes; the only render-path change is the Metal gather Y sign above.
  • Comments: no issue-number or history comments added (comment-refs green).

Test plan the author should run before merge

  • Hands-on trackpad feel check on macOS (called out as outstanding in the body).
  • A Windows/OpenGL run of viewport_scroll and screen_alignment when a Windows host picks up the smoke label.

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

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

Opus recheck required: touches public module headers ir_command.hpp / ir_input.hpp / ir_input_types.hpp (engine-wide modifier mask widened to include Super, changing kModifierAll semantics for every command and action blocked-mask) and system_trixel_to_framebuffer.hpp (Metal gather placement sign, render path I could only verify arithmetically, not by running).

@jakildev jakildev added fleet:needs-opus-recheck Sonnet flagged this PR for Opus recheck before merge fleet:needs-windows-smoke PR needs windows-debug build + smoke-run validation and removed fleet:reviewing-mac-pool-1 labels Nov 8, 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: center swipe orbit and enable continuous trackpad zoom

Verdict: approve

Head 176ac21aa, standalone on master. Sonnet's first pass is confirmed. This pass covers the two items Sonnet escalated: the wider engine modifier mask, and the Metal gather Y sign.

Metal gather sign (system_trixel_to_framebuffer.hpp, canvasGatherTranslation)

Sonnet checked the arithmetic but could not run it. I agree with the fix, and I can now say why it is right instead of only that it is consistent:

  • The gather stage works in a Y-up framebuffer on both backends. placeGatherQuad builds ortho(0,w,0,h) with no backend term. Both canvasPositionFromPixel implementations (GLSL ir_iso_common.glsl, MSL ir_iso_common.metal) map (frag - centre) * (1, -1), and the Metal path first converts its fragment position to gl_FragCoord form. So a gather translation must not carry kIsoToScreenSign. That sign belongs to the screen blit (cameraRasterScreenResidual), which keeps it.
  • The other placements into the same framebuffer already follow this. cameraRasterDetachedOffset (continuous) and cameraSnappedDetachedOffset (floor(fract(c)·p) * (1, -1)) have no backend term, and they feed ENTITY_CANVAS_TO_FRAMEBUFFER, the per-axis scatter, and depth_tested_primitives.hpp. Before this PR the continuous main-canvas gather was the only one carrying kIsoToScreenSign, so on Metal it moved opposite to every detached canvas whenever the camera sat between cells. The fix gives raw * (1, -1) on both backends, and OpenGL is unchanged.
  • Other consumers: shape_sample_probe.hpp::gatherMap goes through the same canvasGatherTranslation → placeGatherQuad pair, so the probe and the render stay in step. shape_debug::logZoomCalibrationState reads gather.x only. entity_canvas_hitbox_test calls the unchanged cameraRasterGatherTranslation directly. Nothing else reads the changed value.
  • The rewritten ACameraFollowingCanvasPlacesFromTheFrame recovers floor(H) + phase through (placed.x, -placed.y) on either backend, so it pins the new contract rather than a backend-specific value.

Engine modifier mask (kModifierSuper, kModifierAll)

Sonnet flagged the change to kModifierAll. Having traced every consumer, I agree it is safe:

  • action_registry.cpp:59: the blocked mask is kModifierAll & ~chord, so a plain-key action no longer fires under Cmd/Super. On macOS this is what stops Cmd+S from also triggering an S action. Intended.
  • action_registry.cpp:99, widget_hotkeys.hpp:105, lua_widget_bindings.hpp:822: validators now accept bit 3. Older keymaps never stored it, so they still load.
  • system_actions_window.hpp:391 and the exhaustive loops in keyboard_dispatch_test.cpp:708 / widget_keyboard_test.cpp:445 widen automatically.
  • KeyModifierMask is uint8_t, and the key & 0xFFFF / mods packing in WIDGET_INPUT has room for bit 3.
  • GLFW's Cocoa backend forwards key-up events while Command is held, which is the known trap for Cmd chords. The author's native Cmd+0 / Cmd+S sessions exercise it.

Nits (follow-up)

  • Possible latent Metal issue on the snapped policy. This PR does not cause it, and I have not run it. snappedGatherTranslation still returns cameraSubPixelOffsets(...).framebufferGamePxOffset_, which multiplies by kIsoToScreenSign. Under the snapped zoom policy on Metal, the main-canvas gather is therefore raw * (1, +1) while cameraSnappedDetachedOffset is raw * (1, -1). For the same raw value they differ by 2·floor(fract(c.y)·zoom) framebuffer pixels in Y. That is zero at zoom 1 or with the camera on a cell boundary, and non-zero mid-cell at zoom 2 and above. The editor now enables continuous zoom, so this PR never hits it. Default-policy demos with detached canvases on macOS would. It needs a Metal pan capture at zoom 4 with the camera mid-cell; if confirmed, it deserves its own issue.
  • WIDGET_APPLY_TEXT_INPUT now ignores the whole key set under Ctrl/Super, including Backspace, Delete, the arrows, Home and End. Before, Ctrl+Left behaved as plain Left and Ctrl+Backspace deleted one character. Only macOS Cmd+Left/Right get replacements. That fits "the field owns no chords", but on Windows/Linux, Ctrl+Backspace/arrow now do nothing where word-delete/word-move would be expected.
  • HelpOverlay::builtText() returns layout_.text_ + secondColumn_.text_. This only works because appendRow always ends a row with a newline; otherwise column one's last line would merge into column two's first. textLineRect already indexes the columns separately, so a one-line comment on builtText, or inserting '\n' explicitly, would make this robust.
  • Sonnet's nits stand: Home is a no-op under authoringInteractionBlocked(), and holding Super on Windows/Linux now fails exact-match hotkeys.

Not run by this pass

I did not build or run anything on this host. The Metal judgement rests on the convention trace above plus the author's native macOS screen_alignment (70/70) and seven-pose PNG grading. fleet:needs-windows-smoke is already set for the OpenGL run of viewport_scroll / screen_alignment.

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

@jakildev jakildev added fleet:approved Fleet reviewer approved — ready for human merge and removed fleet:needs-opus-recheck Sonnet flagged this PR for Opus recheck before merge fleet:reviewing-mac-pool-2 labels Nov 8, 2026
@jakildev
jakildev merged commit 728d653 into master Nov 10, 2026
17 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:needs-windows-smoke PR needs windows-debug build + smoke-run validation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant