Skip to content

editor: align voxel placement and construction grids - #4882

Merged
jakildev merged 3 commits into
masterfrom
codex/editor-grid-placement-feedback
Nov 6, 2026
Merged

jakildev merged 3 commits into
masterfrom
codex/editor-grid-placement-feedback

Conversation

@jakildev

@jakildev jakildev commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

Voxel placement used a cardinal camera ray while the displayed voxels followed continuous yaw; the grid was a screen overlay through cell centers and the preview was a small hollow SDF. Picking now follows the displayed camera, the grid sits at the bottom support plane and tests voxel depth, and the preview is a complete translucent cell with an outline. The editor hides the red trixel highlight and adds F12 screenshots.

Test plan

  • Native Metal rendered-pixel oracle: 0°, 30°, 45°, 67°, 90°, 180°, 270°; multiple cursor samples per face; zoom/pan; normal and letterboxed windows. Both original runs pass 70/70 GUI assertions, zero layout findings and all pixel checks; the amended head rerun passes 70/70.
  • Zero grid/ghost pixels through solid interiors; exact blank-floor committed silhouettes; full translucent preview coverage with separately bounded raster edges and outline width. F12 produces the additional capture in both runs.
  • 135 focused C++ tests; 17 positive/negative pixel-oracle controls; 12 harness dependency tests.
  • Sculpt 46/46, fill preview 32/32, rotated-child local canvas 10/10, cardinal face-picking 10/10. Sculpt includes alternate paint-mode preview suppression/restoration. The amended head rerun passes sculpt 46/46.
  • Lighting regression 46/46; shader parity, header conventions, formatting, comment/instruction checks and Python lint.

Evidence

Capture protocol, measurements and manual feedback flows.

Before After
Before After

Native validation used macOS Metal offscreen captures at measured 2× DPI, with FIT output scales 1 and 2. The zero-monitor host used the documented bounded 30-second grace; watchdogs and CLEAN-exit checks remained enabled. Windows/OpenGL execution and native 1× DPI remain untested. The new depth helper is scoped to voxel authoring aids, not arbitrary analytic/private-canvas compositing.

Rebase verification

Rebased onto current master after the editor workflow stack merged. The inherited stack commits were removed; this branch now contains three PR-owned commits and a 23-file diff. The sole textual conflict was in IRRender::worldPos3DToMouseScreenPxExact: the resolution preserves current master's continuous-yaw projection and factors its window-point calculation through this PR's worldPos3DToWindowPointsExact helper.

  • fleet-build --target IRShapeDebug
  • fleet-build --target IRVoxelEditor
  • fleet-build --target IrredenEngineTest
  • fleet-run IrredenEngineTest --gtest_filter='DepthTestedPrimitives.*:PickingGridRay.*' — 17/17 pass.
  • python3 scripts/tests/test_editor_screen_alignment.py — 17/17 pass.
  • python3 scripts/tests/test_harness_dependency_contract.py — 12/12 pass.

Feedback amendment verification

Head 579301d0c removes the duplicate FRAMEBUFFER_TO_SCREEN registration introduced by the rebase and keeps the post-DEBUG_OVERLAY screen pass.

  • fleet-build --target IRVoxelEditor
  • fleet-run --env IR_WINDOW_MODE=offscreen IRVoxelEditor --exit-after-frames 30 — clean shutdown, exit 0.
  • python3 scripts/gui-verify.py IRVoxelEditor --no-build -- --gui-session screen_alignment — 70/70 assertions pass, clean exit.
  • python3 scripts/gui-verify.py IRVoxelEditor --no-build -- --gui-session sculpt_workflow — 46/46 assertions pass, clean exit.
  • python3 scripts/light-verify.py --if-changed — all 46 checks pass.

Concurrent PR overlap

The prior overlap table described the now-merged parent stack and is retired. The rebased diff is directly against current master; reviewer-visible scope is the 23-file grid placement, depth primitive, rendered-pixel oracle, and focused-test change listed by GitHub.

@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:12
@jakildev jakildev added the fleet:awaiting-upstream-review Stacked PR; reviewer is holding verdict until upstream PR is approved label Nov 3, 2026
@jakildev

jakildev commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

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

@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 → 4236476-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/4236476ff-ci

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 104.07 vs baseline 103.95 (load_factor 1.00×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@a39c8ac25 (branch tip); master 45cf005a8, finished 2026-11-03T04:41:55Z, 0.0 d before the head run, ref_ms 103.95
  • weighting: raw (class-matched capture; load_factor 1.00×; no calibration-scaling entry)
  • attribution: improvement withheld, stacked: merge base 598b23b38 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 → 494.54 (-0.5%) 1736.72 → 1800.64 (+3.7%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1279.98 → 1277.79 (-0.2%) 2588.51 → 2636.52 (+1.9%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 661.44 → 664.38 (+0.4%) 12290.31 → 12572.34 (+2.3%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1736.57 → 1738.21 (+0.1%) 3028.88 → 3043.77 (+0.5%)

GPU frame timing (ms; separate from stage samples)

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

GPU stage timing (avg ms per sampled invocation)

cell canvasClear voxelCompact voxelStage1 voxelCardinalElect voxelStage2 voxelSunFaces textToTrixel buildLightOcclusionGrid computeVoxelAO bakeSunShadowMap computeSunShadow computeLightVolume lightingToTrixel fogToTrixel trixelToFb resolvePerAxisScreenDepth fbToScreen
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 66.99→67.22 66.51→66.58 58.93→58.36 0.96→0.99 54.97→55.67 5.75→5.65 — 0.00→0.00 2.81→2.79 15.21→15.91 11.94→11.84 23.11→23.03 3.85→3.89 1.27→1.35 0.19→0.21 — 7.98→8.09
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 109.11→109.88 416.71→415.73 261.71→261.24 4.04→4.05 233.24→233.44 5.17→4.90 ↓ — 0.00→0.00 2.41→2.41 27.66→28.03 10.37→10.52 19.26→19.59 8.34→8.23 1.47→1.43 0.17→0.18 — 7.44→7.46
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 60.26→59.38 81.24→81.77 66.07→66.41 13.15→13.24 47.97→48.08 8.60→8.48 1.12→1.10 0.00→0.00 0.87→0.92 62.83→62.57 10.65→10.54 56.24→56.01 8.01→8.00 1.81→1.80 0.17→0.17 0.00→0.00 9.00→9.02
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 120.51→119.39 536.65→535.91 424.94→427.51 6.35→6.34 366.04→368.01 5.63→5.59 1.17→1.11 0.00→0.00 0.75→0.76 24.64→24.85 10.46→10.40 19.42→19.15 6.77→6.51 1.59→1.41 ↓ 0.17→0.18 0.00→0.00 7.43→7.44

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.596 (+0.1%)
RENDER ComputeLightVolume 34.529 → 34.365 (-0.5%)
RENDER CanvasToFramebuffer 17.421 → 17.568 (+0.8%)
RENDER BakeSunShadowMap 10.231 → 10.212 (-0.2%)
RENDER ComputeSunShadow 7.654 → 8.397 (+9.7%)
UPDATE PropagateTransform 4.943 → 4.622 (-6.5%) ↓
UPDATE FogRevealEval 4.273 → 4.237 (-0.8%)
RENDER ComputeVoxelAO 4.086 → 4.111 (+0.6%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1027.979 → 1026.867 (-0.1%)
RENDER ComputeLightVolume 29.161 → 29.616 (+1.6%)
RENDER ComputeSunShadow 21.416 → 21.711 (+1.4%)
RENDER CanvasToFramebuffer 16.262 → 16.127 (-0.8%)
RENDER ComputeVoxelAO 9.306 → 9.414 (+1.2%)
RENDER BakeSunShadowMap 8.616 → 8.687 (+0.8%)
RENDER LightingToTrixel 8.543 → 8.432 (-1.3%)
UPDATE PropagateTransform 4.472 → 4.494 (+0.5%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 290.147 → 294.136 (+1.4%)
RENDER ComputeSunShadow 55.651 → 55.362 (-0.5%)
RENDER LightingToTrixel 35.503 → 35.435 (-0.2%)
RENDER ComputeLightVolume 32.468 → 32.311 (-0.5%)
RENDER BakeSunShadowMap 22.592 → 22.767 (+0.8%)
RENDER CanvasToFramebuffer 17.400 → 17.589 (+1.1%)
RENDER FogToTrixel 7.108 → 7.090 (-0.3%)
UPDATE PropagateTransform 6.358 → 6.606 (+3.9%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1459.634 → 1462.062 (+0.2%)
RENDER ComputeLightVolume 29.423 → 29.101 (-1.1%)
RENDER ComputeSunShadow 18.270 → 18.340 (+0.4%)
RENDER CanvasToFramebuffer 16.184 → 16.408 (+1.4%)
RENDER BakeSunShadowMap 8.842 → 8.882 (+0.5%)
RENDER ComputeVoxelAO 7.740 → 7.812 (+0.9%)
RENDER LightingToTrixel 6.894 → 6.695 (-2.9%)
UPDATE PropagateTransform 6.141 → 6.363 (+3.6%)

@jakildev

jakildev commented Nov 5, 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: 89b210770 editor: preview assembly motion without changing authored poses (#4876); PR: 79591cc65 render: align editor voxel placement and grid depth
  • creations/editors/voxel_editor/main.cpp — master: 89b210770 editor: preview assembly motion without changing authored poses (#4876); PR: 79591cc65 render: align editor voxel placement and grid depth
  • creations/editors/voxel_editor/sessions.hpp — master: 89b210770 editor: preview assembly motion without changing authored poses (#4876); PR: 79591cc65 render: align editor voxel placement and grid depth
  • engine/prefabs/irreden/render/widgets.hpp — master: 4e8e10656 editor: establish sculpt, hierarchy and save workflows (#4868); PR: a93a6d692 widgets: persist visibility and disable hidden hitboxes
  • test/CMakeLists.txt — master: 89b210770 editor: preview assembly motion without changing authored poses (#4876); PR: 79591cc65 render: align editor voxel placement and grid depth
  • … and 1 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 4882
reports:
merged-parent: 4868 a93a6d6

Rebase only this PR's own commits:
git fetch origin
git rebase --onto origin/master a93a6d6 codex/editor-grid-placement-feedback

SHA pair: master=89b210770a68d1f8f638af2bf50832ab54f0b30a × PR=79591cc65f66e93d80bc0694597c0068baa7d690

— 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 5, 2026
Follow continuous camera yaw when picking authored cells and arbitrary
ray directions through the voxel grid. Render the support grid and
full translucent preview in voxel depth space, including cardinal depth
encoding and the camera raster phase. Add F12 screenshots and suppress
the redundant trixel cursor and stale alternate-mode previews.

Validate raw mouse samples from rendered pixels at seven angles, two
output scales and a letterboxed viewport. Include independent pixel
coverage/occlusion checks, negative controls and capture evidence.
@jakildev
jakildev force-pushed the codex/editor-grid-placement-feedback branch from 79591cc to a07c285 Compare November 5, 2026 05:12
@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 5, 2026
@jakildev

jakildev commented Nov 5, 2026

Copy link
Copy Markdown
Owner Author

Resolved semantic conflict: removed the merged editor-stack commits and replayed the grid-placement change onto current master; the projection conflict now preserves continuous yaw while sharing the new window-point helper. IRShapeDebug, IRVoxelEditor, and IrredenEngineTest build clean; 17 focused C++ tests and 29 Python tests pass. Reviewer please re-evaluate the rebased diff. — worker (Codex)

@jakildev jakildev removed fleet:merger-cooldown Merger touched this PR this iteration; skip next iteration fleet:resolving-mac-pool-1 labels Nov 5, 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: align voxel placement and construction grids

Verdict: approve (with one amend-worthy nit)

Standalone on master (the earlier "Holding review" comment concerned the parent stack, which has merged; no fleet:awaiting-upstream-review is present). Reviewed head a07c2851b, diff read in full for engine/, test/, and the editor construction_grid.hpp / editor_picking.hpp / main.cpp; scripts/ and the evidence docs only skimmed.

Big picture. The change does what the summary says. Edit picking now follows the displayed continuous-yaw camera instead of the cardinal ray. The grid moves to the bottom support plane and is drawn with voxel depth. The preview is a full translucent cell. The approach is sound:

  • Picking reuses IRRender::mouseWorldPos3DAtIsoDepthExact(0) / (3) for the ray origin and direction.
  • castGridRay gains a general vec3-direction overload, and the cardinal ivec3 overload keeps its unit-step assert and forwards to it.
  • The new depth-tested primitive path is opt-in and render-manager-owned, and it has GLSL and Metal shader counterparts.

Needs-fix

None found.

Nits

  • creations/editors/voxel_editor/main.cpp (~L7944): the render pipeline now has FRAMEBUFFER_TO_SCREEN twice, once right after EditorAuthoringPrimitives and once after DEBUG_OVERLAY. On master there is a single one, after DEBUG_OVERLAY. ScreenBlitGpuEncoder::beginScreen clears the default target, so the first blit looks fully overwritten by the second. That would be an extra full-screen blit and clear every frame. The body and commit message don't mention it. If it is intentional (some ordering need I could not see), say why. Otherwise drop the new line. I did not run the editor to measure it, so I'm flagging it for Opus to confirm rather than asserting it is a bug.

Nits (follow-up)

  • test/render/depth_tested_primitives_test.cpp:3: an engine test includes ../../creations/editors/voxel_editor/construction_grid.hpp. It couples test/ to a creation header, so a rename in the editor breaks the engine test target. A follow-up could move appendConstructionGridLines to the prefab layer or test only the engine-side pieces.
  • engine/render/include/irreden/ir_render.hpp: the doc block now describes cardinal versus continuous-yaw behaviour in prose across several functions. It is accurate as far as I can tell, but it is the sort of contract worth one table in engine/render/CLAUDE.md next time that file is touched.

CI / checks (as of this review)

  • Green on the head: changes, closes-lint, comment-refs, format-check, header-checks, instruction-size, no-plan-files, python-lint, shader-parity, whitespace.
  • Still running, so unread, not green: linux-build, fleet-tests, render-harness-tests, perf-gate. The perf-gate comment on the PR is for an older head (4236476ff), not this one.
  • I did not rebuild or re-run the macOS Metal oracle. The 70/70 GUI, 135 C++ test and pixel-oracle results come from the PR body and are unverified by me. The author states Windows/OpenGL and native 1x DPI remain untested, and the cross-host smoke labels below cover that lane.

Praise

  • Keeping the cardinal castGridRay assert while adding the general overload means existing lattice callers keep their contract.
  • appendVisibleBox emits each visible face once and dedups shared edges via an edge key, so there is no double alpha blending at the silhouette. The std::array<bool, 64> is large enough for min * 8 + max.

Escalation

This touches engine/render/ (new shader pair, new GPU buffer/VAO growth path in DepthTestedPrimitives::draw, depth encoding shared with the voxel composite, render pipeline ordering) plus picking math. Opus-only items I could not confirm:

  • The VAO re-assignment (*m_vao = IRRender::VAO(...)) on buffer growth, and GPU buffer lifetime across frames for the dynamic vertex buffer.
  • Whether depth testing against the main framebuffer after ENTITY_CANVAS_TO_FRAMEBUFFER is correct in every composite configuration.
  • The duplicate FRAMEBUFFER_TO_SCREEN above.

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

Escalation: please Opus-recheck before merge (touches: engine/render, engine/prefabs/irreden/render).
Opus recheck required: core render path (GPU buffer/VAO lifetime, depth-band sharing with the voxel composite, pipeline ordering) plus an unexplained second FRAMEBUFFER_TO_SCREEN stage in the editor pipeline.

@jakildev jakildev added fleet:needs-opus-recheck Sonnet flagged this PR for Opus recheck before merge and removed fleet:changes-made Agent addressed human feedback — ready for human re-review fleet:reviewing-mac-pool-7 labels Nov 5, 2026
@jakildev jakildev removed fleet:changes-made Agent addressed human feedback — ready for human re-review fleet:reviewing-mac-pool-6 labels Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

Perf gate

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

perf comparison: fae9b65 → b4bedc3-ci

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

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 103.68 vs baseline 104.48 (load_factor 0.99×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@fae9b6589 (branch tip); master f77113dc0, finished 2026-11-05T05:44:41Z, 0.0 d before the head run, ref_ms 104.48
  • weighting: raw (class-matched capture; load_factor 0.99×; no calibration-scaling entry)
  • attribution: no measured master improvement between capture master f77113dc0 and merge base f77113dc0 (0 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 495.75 → 490.45 (-1.1%) 1733.03 → 1800.47 (+3.9%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1280.43 → 1271.92 (-0.7%) 2564.36 → 2634.99 (+2.8%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 676.06 → 652.11 (-3.5%) 13290.72 → 12272.47 (-7.7%) ↓
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1740.16 → 1725.70 (-0.8%) 2996.81 → 3030.60 (+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 67.53→67.07 66.29→66.28 59.19→59.27 0.97→0.94 55.38→54.79 5.79→5.60 — 0.00→0.00 2.71→2.72 15.78→14.82 ↓ 12.40→11.81 23.21→22.75 3.83→3.60 ↓ 1.27→1.25 0.19→0.17 ↓ — 8.00→7.82
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 110.36→108.58 417.46→418.13 263.18→260.62 4.05→3.98 232.52→230.52 4.98→4.87 — 0.00→0.00 2.41→2.29 28.57→27.68 10.46→10.27 19.46→19.52 8.26→7.74 ↓ 1.75→1.38 ↓ 0.18→0.16 ↓ — 7.47→7.31
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 59.76→59.15 83.07→81.43 67.49→66.94 14.02→13.05 ↓ 47.97→47.72 9.06→8.05 ↓ 1.11→1.09 0.00→0.00 1.04→0.83 ↓ 67.53→62.23 ↓ 10.54→10.26 59.67→55.97 ↓ 8.28→7.82 ↓ 1.85→1.79 0.20→0.16 ↓ 0.00→0.00 9.18→8.81
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 121.00→119.55 534.65→533.71 427.47→426.54 6.37→6.31 367.77→365.46 5.75→5.48 1.16→1.10 ↓ 0.00→0.00 0.81→0.65 ↓ 25.75→24.47 10.64→10.31 19.84→18.97 6.83→6.21 ↓ 1.76→1.35 ↓ 0.20→0.16 ↓ 0.00→0.00 7.66→7.25 ↓

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 257.459 → 256.168 (-0.5%)
RENDER ComputeLightVolume 35.123 → 34.089 (-2.9%)
RENDER CanvasToFramebuffer 17.567 → 17.089 (-2.7%)
RENDER BakeSunShadowMap 10.266 → 10.071 (-1.9%)
RENDER ComputeSunShadow 8.088 → 7.394 (-8.6%) ↓
UPDATE PropagateTransform 4.778 → 4.810 (+0.7%)
UPDATE FogRevealEval 4.235 → 4.182 (-1.3%)
RENDER ComputeVoxelAO 3.990 → 3.926 (-1.6%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1030.235 → 1024.435 (-0.6%)
RENDER ComputeLightVolume 29.441 → 29.347 (-0.3%)
RENDER ComputeSunShadow 21.962 → 21.384 (-2.6%)
RENDER CanvasToFramebuffer 16.233 → 15.621 (-3.8%)
RENDER ComputeVoxelAO 9.406 → 9.203 (-2.2%)
RENDER BakeSunShadowMap 8.992 → 8.495 (-5.5%) ↓
RENDER LightingToTrixel 8.465 → 7.928 (-6.3%) ↓
UPDATE PropagateTransform 4.339 → 4.568 (+5.3%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 299.030 → 289.830 (-3.1%)
RENDER ComputeSunShadow 60.014 → 55.169 (-8.1%) ↓
RENDER LightingToTrixel 38.631 → 35.305 (-8.6%) ↓
RENDER ComputeLightVolume 32.634 → 31.955 (-2.1%)
RENDER BakeSunShadowMap 23.692 → 22.218 (-6.2%) ↓
RENDER CanvasToFramebuffer 17.726 → 17.282 (-2.5%)
RENDER FogToTrixel 7.366 → 6.983 (-5.2%) ↓
UPDATE PropagateTransform 6.200 → 6.059 (-2.3%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1462.392 → 1456.380 (-0.4%)
RENDER ComputeLightVolume 30.012 → 28.862 (-3.8%)
RENDER ComputeSunShadow 18.963 → 18.140 (-4.3%)
RENDER CanvasToFramebuffer 16.640 → 16.025 (-3.7%)
RENDER BakeSunShadowMap 9.165 → 8.774 (-4.3%)
RENDER ComputeVoxelAO 7.862 → 7.753 (-1.4%)
RENDER LightingToTrixel 7.002 → 6.374 (-9.0%) ↓
UPDATE PropagateTransform 6.182 → 6.149 (-0.5%)

@jakildev jakildev removed the fleet:needs-fix Fleet reviewer found issues — author must address label Nov 5, 2026
@jakildev jakildev added fleet:changes-made Agent addressed human feedback — ready for human re-review and removed fleet:amending-mac-pool-6 labels Nov 5, 2026
@jakildev

jakildev commented Nov 5, 2026

Copy link
Copy Markdown
Owner Author

Addressed feedback:

  • Published all 13 editor evidence files to immutable media commit 1b00a0fae54a54979c920f996732efbcfb627804.
  • Removed the evidence directory from the feature branch, so a synthetic merge with current master contains zero tracked docs/pr-screenshots files.
  • Repointed the README and before/after embeds in the PR body to SHA-pinned media URLs and refreshed the current commit/file counts.

No executable files changed; prior current-code validation remains applicable. Amended by Codex at 1f69a4e9e. — worker (Codex)

@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 (delta) — editor: align voxel placement and construction grids

Verdict: approve. The no-plan-files finding from my last pass is fixed, and the delta changes nothing else.

Standalone on master. Reviewed head 1f69a4e9e. This is a delta re-review against 579301d0c, the head my previous review covered. I did not re-review unchanged lines, and I did not build or run the editor.

Prior-review resolution

  • ✅ docs/pr-screenshots/codex/editor-grid-placement-feedback/ — committed PR screenshots refused by no-plan-files — verified fixed at 1f69a4e9e. git diff --stat 579301d0c 1f69a4e9e is 13 deletions (974 lines), all inside that directory. git ls-tree HEAD docs/pr-screenshots/codex is empty. no-plan-files is now SUCCESS on this head, completed 2026-11-05T06:12:24Z.
  • ✅ The earlier FRAMEBUFFER_TO_SCREEN finding stays fixed (unchanged in this delta).

Delta check

  • Every path outside docs/pr-screenshots/ is byte-identical between 579301d0c and 1f69a4e9e (git diff --stat 579301d0c 1f69a4e9e -- . ':!docs/pr-screenshots' is empty). The earlier Opus-confirmed render and picking review therefore still applies, and the evidence reruns on 579301d0c remain valid for this head.
  • The PR body's Evidence links are pinned to 1b00a0fae, the current tip of the media branch. I fetched README.md, sculpt-before.png and sculpt-after.png at that ref through the contents API. The PNG sizes (242502 and 238736 bytes) match the blobs this commit deleted, so the embeds resolve to the same files.

CI (head 1f69a4e9e)

  • Green: changes, closes-lint, comment-refs, format-check, header-checks, instruction-size, no-plan-files, python-lint, shader-parity, whitespace.
  • No completed run yet, so unread and not green: linux-build, fleet-tests, render-harness-tests, perf-gate. The latest perf-gate comment on the PR is for an older head. The author's host reports are their own, and I did not re-run them.

Nits (follow-up)

  • The two follow-up nits already posted still apply and do not block: the engine test test/render/depth_tested_primitives_test.cpp includes a creation header, and the continuous-yaw contract prose could become a table in engine/render/CLAUDE.md. The Metal subData orphan-per-frame note from the Opus pass also stands. I raise nothing new.

Test plan the author should run before merge

  • Confirm linux-build, fleet-tests and render-harness-tests finish green on 1f69a4e9e. This delta touches no executable file, so a failure would be inherited from the earlier head.

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

Escalation: none. Safe for merge.

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 fleet:reviewing-mac-pool-6 labels Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 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.

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