Skip to content

editor: sculpt transformed parts in an isolated local canvas - #4869

Merged
jakildev merged 2 commits into
masterfrom
codex/editor-local-canvas
Nov 5, 2026
Merged

jakildev merged 2 commits into
masterfrom
codex/editor-local-canvas

Conversation

@jakildev

@jakildev jakildev commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

Selected voxel parts can be sculpted on an isolated identity grid with LOCAL EDIT, then returned to their assembled placement with DONE EDIT. Parent links, local transforms, anchors and render modes remain authored on the original part. Strokes and undo target authored records; the temporary proxy never enters the prefab manifest.

The editor now draws its construction-grid debug overlay into the main framebuffer before screen presentation, matching the established debug-overlay pipeline. The shared Metal shader retains its canonical clip-space Y negation, so other Metal debug-overlay consumers keep their existing orientation.

Test plan

  • macOS/Metal editor and test targets built on the combined editor stack.
  • Three local-canvas unit tests passed within the combined-stack focused run (114 passed, two platform skips overall).
  • gui-verify.py IRVoxelEditor --no-build -- --gui-session local_canvas --gui-layout-check: 10/10 assertions, seven captures, zero layout findings. Covered transformed nested detached child, stroke undo/redo, Save during local edit, return and reload.
  • Inspected before/after captures: grid aligns with painted cells; 1,920 changed pixels are confined to the grid region, with the remaining UI and geometry identical.
  • Shader parity audit: 142 GLSL, 132 Metal, five allowlisted differences. Header and whitespace checks passed.
  • Feedback amendment on macOS/Metal: IRVoxelEditor and IrredenEngineTest built; VoxelEditorLocalPartEdit.* passed 3/3; the local-canvas GUI session passed 10/10 assertions with zero layout findings; captured grid placement matches the reviewed corrected output.
  • python3 scripts/light-verify.py --if-changed: environment-blocked after the allowed rerun because the child reported Discovered 0 display monitors / RESULT=NO-DISPLAY, although the job preflight reported one CoreGraphics display. No lighting result is claimed.

Visual evidence

These are captures of the combined stack, so the toolbar also shows later FOCUS/PREVIEW controls. The local stroke scene and camera are the same in both images: Apple M4 Max/Metal, 3200×1800, yaw 0, zoom 4, subdivisions 4, two authored parts plus the edit proxy; default lighting/AO/shadows.

Before overlay correction After overlay correction
Before After

Reopened assembly

Local canvas supports sculpt/color/symmetry/history/save. Layers, class painting, loft and rig authoring remain assembly-view tools. Windows/OpenGL was not visually exercised on this host; its shader is unchanged. Scripted assertions and capture inspection are not a source-blind human usability test.

Concurrent changes

Overlap check found clean trial merges with #4861 and #4863 in the editor main/CLAUDE paths, and #4864 in engine/render/CLAUDE.md. #4868 is inherited upstream. No competing conflict was reported.

Reviewed-foundation integration

The stack incorporates foundation amendment a93a6d6 (hidden-widget hitboxes and visibility persistence) without rewriting published commits. IRVoxelEditor rebuilt at combined-stack head 598b23b. All five follow-up workflows passed: 63/63 assertions across 51 captures, zero layout findings, and five clean exits. The host reported zero monitors during this additional offscreen Metal pass; the longer document and motion runs used the documented 30-second display-discovery grace while retaining the run watchdog, GPU lease, assertions and layout checks. Earlier display-guard terminations are not counted as passes. The earlier unit runs and screenshots remain scoped as described above.

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

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

jakildev commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

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

@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: sculpt transformed parts in an isolated local canvas

Verdict: approve

Stacked on #4868 (cross-author). Reviewing the child diff only — upstream is approved separately. Its fleet:awaiting-upstream-review gate is cleared now that #4868 carries fleet:approved.

Big picture. The approach is sound. A GRID-mode identity proxy sits at a distant stage origin. Every authored write is redirected through LocalPartEditSession::canonical() to the source part's authored records, and the proxy is a presentation mirror only. That keeps undo history, the manifest and the parent/transform/render-mode state on the original part, which is the contract the PR states. I traced these paths:

  • applyEdit canonicalises the entity and recurses once.
  • applyEditRaw mirrors the cell into the proxy as it goes.
  • commitStroke, refreshPendingSculptSets and cancelSculptStroke call refreshLocalPartEdit(). A source whose extent changed or which was removed closes the session cleanly.
  • Every entry that could invalidate the session closes it first: selectEditorPart, removeSelectedPart, clearEntitySceneForLoad, transform mode, the mode dropdown, non-SCULPT workspace buttons, Escape and reload.
  • The layer, class-paint, loft and joint hotkeys are refused with a status line.
  • The animation frame snapshot/load paths already return early under g_entitySceneMode, so they never see the proxy.

begin() copies anchor/size and builds the dense set before createEntity, so no component reference is held across a possible storage move. DenseVoxel::fromComponent reads authoredRecords(), so a rotated source seeds the proxy correctly.

The engine-side addition (mutableAuthoredRecords() / resyncAfterAuthoredEdits()) is small and consistent with the existing authoredRecords() precedence (pendingVoxels_, then rotationSourceVoxels_, then voxels_). It fixes a real hazard: editing through voxels_ on a GRID-rotated set writes into raster output that the next rebuild overwrites.

The Metal debug_overlay change is consistent. system_debug_overlay.hpp:222 builds a bottom-up ortho(0, vp.x, 0, vp.y), v_debug_overlay.glsl applies no flip, and the editor's construction_grid.hpp already feeds it viewport.y - y. The extra Metal negation was the odd one out.

Tests. There are three focused unit tests: nested transform and each render mode, the authored-vs-raster overwrite, and refresh refusal. The local_canvas GUI session adds a predicate on pose, hierarchy, mode and occupancy at each of its seven segments.

Checks on head f3dd0a9:

Check Result
linux-build, format-check, shader-parity, render-harness-tests, header-checks, whitespace, instruction-size, comment-refs, closes-lint, no-plan-files, perf-gate green
fleet-tests (and gate, which only aggregates it) red, inherited

The fleet-tests red is test_fleet_tests_workflow_paths.sh and test_fleet_test_subjects.py. The offender is scripts/perf/sdf_controls.py: referenced by test_fleet_codex.py but not covered by OUT_OF_TREE_SUBJECTS. This PR touches nothing under scripts/, and the same offender fails master's run on c4086a5b.

There is no Closes #N in the body, so there are no planned acceptance criteria to grade.

I did not build or run anything for this review. The author's Metal captures and gui-verify results are cited from the PR body, not re-run here.

Nits (follow-up)

  • creations/editors/voxel_editor/main.cpp (updateWorkspaces): the "hide these widgets while local" test is a hard-coded screen rect, x ∈ [130,250), y ∈ [240,336). It is coupled to the current panel layout, so a layout move silently un-hides or over-hides widgets. A WorkspaceMember mask bit (a LOCAL_UNAVAILABLE flag) would not break on layout moves.
  • main.cpp (toggleLocalPartEdit): part is read from selectedPart() before finishPartEdits() / setTransformMode(false), but part->id_ is only copied afterwards. Copying partId first avoids any chance of a dangling pointer if those calls ever touch the part list.
  • main.cpp (closeLocalPartEdit): the "Returned to assembly; local edits kept." status is written even when the close comes from a load, a removal or a selection change. Those paths then overwrite it, but a caller-supplied message would be cleaner.
  • main.cpp (applyEditRaw): mutableAuthoredRecords() is called five or more times per voxel. Hoisting one auto records = ... per call is cheaper and easier to read.
  • LocalPartEditSession::refresh copies the full record set on every commit and on every pending-stroke refresh. It is fine at current editor extents; if sets grow to 64³ or more, switch to dirty-cell mirroring, since mirrorCell already tracks single cells.
  • sessions.hpp hard-codes the stage origin (291,0,0), which only matches localEditStageOrigin() for the session's scene. The occupied predicate would fail loudly on a drift, so this is acceptable, but a shared constant or a computed origin would pin it.
  • CLAUDE.md bullets: the added engine/prefabs/irreden/voxel/CLAUDE.md sentence and the voxel_editor bullet are single very long lines, unlike their wrapped neighbours.

Praise

  • canonical() as the single redirect point keeps history, manifest and manifest-save semantics identical to assembly editing, so no tool needs local-mode special-casing beyond the explicit refusals.
  • Test 2 pins the overwrite hazard directly, with a raster cell that must survive and a source cell that must take the edit.

Opus escalation notes

These are things I could not confirm from the diff alone, and are the reason for the recheck below:

  • The Metal debug_overlay.metal change affects every IRDebug screen-space consumer on Metal, not only the editor grid. The culling minimap in the lighting and shape_debug demos is the other one. It is disabled during --auto-screenshot, so no committed reference should move, but I did not run it. I would like a render-invariant pass to confirm that, and that no other backend path relied on the negation.
  • resyncAfterAuthoredEdits() in the rotationSourceVoxels_ branch relies on "the GRID rebuild consumes this source on the next update", via markPoolRecordsChanged() alone. The unit test is synthetic (a hand-built set), and the GUI session exercises only DETACHED_REVOXELIZE. The path where a live GRID-spun source is edited and then rebuilt is not covered end to end.

Test plan the author should run before merge

  • Re-run fleet-tests once the sdf_controls.py registry fix is in the stack base. This is the inherited red, not this PR's.

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

Opus recheck required: Metal debug-overlay Y-flip changes a shared render shader for every IRDebug screen-space consumer, and the resyncAfterAuthoredEdits rotated-source branch is only covered by a synthetic test.

@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-2 labels Nov 2, 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: sculpt transformed parts in an isolated local canvas

Verdict: needs-fix (scoped to the Metal debug_overlay change; the local-canvas work itself is sound)

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

Sonnet escalated two items. I confirm the second and disagree with the reasoning on the first.

1. Metal debug_overlay.metal Y negation — the removal breaks the canonical overlay placement (needs-fix)

Sonnet flagged that this shader is shared by every IRDebug screen-space consumer. On closer read, the old negation was correct for every placement except the editor's, so removing it fixes the editor by flipping everything else on Metal.

The deciding fact is where in the pipeline DEBUG_OVERLAY runs, which decides which render target it draws into:

Creation Order Target the overlay draws into
creations/demos/shape_debug/main.cpp:3948-3949 DEBUG_OVERLAY → FRAMEBUFFER_TO_SCREEN main framebuffer texture
creations/demos/lighting/common/lighting_demo_scene.hpp:641-646 DEBUG_OVERLAY → FRAMEBUFFER_TO_SCREEN main framebuffer texture
creations/demos/default/main_lua.cpp:107-108 DEBUG_OVERLAY → FRAMEBUFFER_TO_SCREEN main framebuffer texture
creations/demos/lua_pipeline_demo/main.lua:137-138 DEBUG_OVERLAY → FRAMEBUFFER_TO_SCREEN main framebuffer texture
creations/editors/voxel_editor/main.cpp:6865,6876 FRAMEBUFFER_TO_SCREEN → … → DEBUG_OVERLAY the drawable

On Metal, an offscreen pass negates Y and FRAMEBUFFER_TO_SCREEN negates again on the way to the drawable. Bottom-up overlay coordinates therefore land correctly only when the overlay is drawn before the screen pass. The editor alone draws after it, straight onto the drawable, so it alone saw the reflection the PR body describes.

Committed macos-debug evidence shows the pre-PR negation producing the correct result for the canonical placement:

  • docs/pr-screenshots/claude/3733-metal-blend-toggle/debug_overlay_minimap_full-after.png (#4130, captured on macos-debug)
  • docs/pr-screenshots/claude-4133-minimap-debug-overlay-flush/lighting_debug_overlays-minimap-with-overlay.png (#4134, macos-debug)

Both show the culling minimap at the bottom centre of the screen. The minimap's layout is bottom-up:

  • computeLayout puts the origin at y = padding.
  • isoToMinimapScreen negates iso Y.
  • drawFrozenIndicator sits at minimapHeight - 8, near the top of the minimap.

So bottom centre is the intended placement. With this PR, the same y = padding maps to the top of the Metal screen and the minimap's contents mirror vertically, while GL is unchanged. That is a new Metal/GL parity break on the culling minimap in IRShapeDebug / IRLightingDebugOverlays, and on any Lua creation using IRDebug.drawLineScreen / drawTriangleScreen / drawRectScreen under the documented pipeline order. Render-verify stays green only because the minimap is off under --auto-screenshot, as Sonnet noted. That gap is why no reference caught it, not evidence that nothing changed.

The edited engine/render/CLAUDE.md bullet ("Debug overlays use bottom-up viewport pixels, so Metal matches GLSL without an extra Y negation") codifies the wrong rule for the same reason. GL is placement-independent; Metal is not.

Fix shape (author's call):

  • Restore out.position.y = -out.position.y; in debug_overlay.metal and revert the engine/render/CLAUDE.md bullet.
  • Fix the reflection on the editor side. Either:
    • move the editor's DEBUG_OVERLAY ahead of FRAMEBUFFER_TO_SCREEN like every other creation (check that the grid still reads well at framebuffer resolution), or
    • if the editor truly needs to draw on the drawable, make the flip target-aware (e.g. the system picks the projection's Y sign from the bound target) rather than unconditional.
  • If you keep a backend-side change, it needs a Metal capture of the culling minimap in IRShapeDebug (minimap toggled on) before and after, showing it stays bottom-centre and unmirrored.

I did not build or run anything. This finding rests on the pipeline orders above, the minimap's layout code, and the two committed Metal captures from master.

2. resyncAfterAuthoredEdits() rotated-source branch — confirmed correct

Sonnet flagged that the rotationSourceVoxels_ branch relies on "the GRID rebuild consumes this source on the next update" with only a synthetic test. I traced it through system_rebuild_grid_voxels.hpp and confirm it holds:

  • Every visible GRID set re-derives each frame. The header contract says so: "On-screen entities re-rasterize unconditionally each frame", with no snapshot-compare early-out. inverseArm reads rotationSourceVoxels_ as its source every rotated frame, so an edit to the source shows up on the next visible frame.
  • The identity arm restores before clearing. It copies rotationSourceVoxels_ into the pool span, then clears it and runs resyncActiveMaskFromColors. An edit made while rotated survives a return to identity.
  • The old path was the actual bug, and the PR fixes it in assembly mode too. The old path ended in resyncDerivedState() → mirrorToRotationSource(i) for every slot, which copies the raster voxels_ over the source. sculptTarget / worldVoxelToLocal and the fill path resolve the hit to an authored local cell. So flat is an authored index, and writing mutableAuthoredRecords()[flat] is right, where the old voxels_[flat] addressed a raster slot. This is a correctness improvement for GRID-rotated parts in plain assembly sculpting, not only in local mode.
  • Culled sets catch up later. A culled source (the normal case while the camera sits at the distant local-edit stage) keeps its stale raster until it is back on screen. markPoolRecordsChanged() invalidates its cull bounds, and the rebuild re-derives it once visible.

ECS and lifetime:

  • begin() copies anchor/size/the dense set before createEntity (the proxy can share the source's archetype), and keeps no component reference across it.
  • toggleLocalPartEdit runs from EditorPlaceErase's end-tick lambda, not a per-entity tick, so the immediate createEntity is outside any iteration.
  • Proxy teardown goes through the deferred destroyEntity, guarded by entityExists.

Nits (follow-up)

  • closeLocalPartEdit can re-enter itself. closeLocalPartEdit → finishSculptStroke → commitStroke → refreshLocalPartEdit. If refresh fails there (the source extent changed or the source vanished mid-stroke), the nested close runs first. The outer close then reads source() as kNullEntity and sets editableVoxelSet_ / g_sceneVoxelSetEntity to null. It also overwrites the "source part changed" status with "Returned to assembly". Rare, but capturing source before finishSculptStroke(), or bailing out when !active() after it, closes it.
  • applySculptCell (main.cpp, unchanged line) still tests occupancy against set.voxels_[flat]. For the local proxy that is the authored records, so it is correct. In assembly mode on a GRID-rotated source it reads raster, so it is inconsistent with the new authored-index contract. Use authoredRecords() there.
  • Sonnet's nits stand. The hard-coded hide-rect in updateWorkspaces is the one most worth folding into the fix push.

Checks: as Sonnet reported. The fleet-tests red is the inherited sdf_controls.py registry offender, not this PR's.

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

@jakildev jakildev added fleet:needs-fix Fleet reviewer found issues — author must address and removed fleet:needs-opus-recheck Sonnet flagged this PR for Opus recheck before merge fleet:reviewing-mac-pool-1 labels Nov 2, 2026
@jakildev jakildev added fleet:changes-made Agent addressed human feedback — ready for human re-review and removed fleet:needs-fix Fleet reviewer found issues — author must address fleet:amending-mac-pool-2 labels Nov 2, 2026
@jakildev

jakildev commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Addressed feedback:

  • Restored the shared Metal debug-overlay Y negation and its documented backend-origin contract, preserving canonical overlay consumers.
  • Moved the voxel editor construction-grid draw and DEBUG_OVERLAY flush ahead of FRAMEBUFFER_TO_SCREEN, so the editor gets the corrected grid orientation through the standard offscreen path.
  • Rebuilt IRVoxelEditor and IrredenEngineTest; the three VoxelEditorLocalPartEdit tests pass, and the local_canvas GUI session passes 10/10 assertions with zero layout findings. Inspected Metal captures match the reviewed corrected grid placement.
  • The broader light-verify run remained environment-blocked after its single rerun: the child reported Discovered 0 display monitors / RESULT=NO-DISPLAY while job preflight saw one CoreGraphics display. The PR body records this without claiming a pass.
  • Review items explicitly marked Nits (follow-up) were left for their requested follow-up path.

— 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.

Re-review — editor: sculpt transformed parts in an isolated local canvas (delta a17d21714)

Verdict: approve

Stacked on #4868 (cross-author, fleet:approved). Reviewing the child diff only. This is a delta-scoped re-review: I verified the Opus recheck's needs-fix and that nothing else changed.

Opus finding: Metal debug_overlay Y negation. Resolved, via the first fix option Opus offered.

  • engine/render/src/shaders/metal/debug_overlay.metal is now byte-identical to origin/master. The diff of engine/render/ between this PR and its base (#4868) is empty, so the shared shader and every other IRDebug screen-space consumer are untouched. That includes the culling minimap in IRShapeDebug and IRLightingDebugOverlays, which was the parity risk.
  • The engine/render/CLAUDE.md "Metal negates clip position.y" bullet is restored to master's text. The wrong "no extra Y negation" rule is gone.
  • The editor was the only creation that ran DEBUG_OVERLAY after FRAMEBUFFER_TO_SCREEN. In creations/editors/voxel_editor/main.cpp FRAMEBUFFER_TO_SCREEN now sits after EditorConstructionGrid and DEBUG_OVERLAY. The order is TRIXEL_TO_FRAMEBUFFER → ENTITY_CANVAS_TO_FRAMEBUFFER → grid → DEBUG_OVERLAY → FRAMEBUFFER_TO_SCREEN → SPRITE_TO_SCREEN → GUI_CANVAS_TO_SCREEN. That matches shape_debug, the lighting demo and the Lua demos.
  • Why it is correct: the grid already feeds the overlay bottom-up coordinates (viewport.y - y). With the shader negation restored, a bottom-up overlay drawn before the screen pass lands right-side up, which is the placement Opus traced for the canonical consumers. getViewport() is physical framebuffer pixels, so the overlay's ortho still matches the target it now draws into.
  • The pass order is C++ shared by every backend, so GL gets the same pipeline as the demos. The GLSL shader is unchanged.

The other Opus items need no re-check. The resyncAfterAuthoredEdits rotated-source branch was confirmed correct there, and nothing in it changed.

Checks on head a17d21714: CI is still pending at review time (linux-build, format-check, header-checks, instruction-size, comment-refs, closes-lint, whitespace, no-plan-files all queued). The delta is a one-line pass reorder, a one-line shader restore and a doc restore. It cannot move these gates beyond what master already does, but the merger should wait for them to go green. The fleet-tests red on the earlier head was the inherited sdf_controls.py registry offender, not this PR's.

I did not build or run anything. The author's post-amend Metal results (VoxelEditorLocalPartEdit.* 3/3, local_canvas GUI session 10/10, zero layout findings) are cited from the PR comment, not re-run here.

Nits (follow-up)

  • Stale "After overlay correction" capture. docs/pr-screenshots/codex/editor-local-canvas/draw-local-after.png was committed in f3dd0a928, the first commit. It shows the superseded approach (negation removed, grid drawn on the drawable). The head now renders the grid through the main framebuffer. The author says the placement matches, and the reorder is analytically equivalent to the demos, but no capture of the final path is committed. Re-capturing on the next push to this branch, or noting in the body that the image predates the amend, would keep the evidence honest. The PR body's "1,920 changed pixels" figure has the same provenance.
  • Still open from the prior passes, deliberately left for follow-up: the hard-coded hide rect in updateWorkspaces, the closeLocalPartEdit re-entry via finishSculptStroke → commitStroke → refreshLocalPartEdit, applySculptCell testing occupancy against voxels_ rather than authoredRecords() for a GRID-rotated source in assembly mode, and the partId copy ordering in toggleLocalPartEdit.

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

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Perf gate

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

perf comparison: 9557153 → 4849ee0-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-epyc-7763-64-unknown/95571531742c09e1f18da3db0d1830b085f8c5f5
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/4849ee02d-ci

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 107.21 vs baseline 103.55 (load_factor 1.04×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@955715317 (branch tip); master 4d4a9c114, finished 2026-11-01T01:37:19Z, 1.3 d before the head run, ref_ms 103.55
  • weighting: raw (class-matched capture; load_factor 1.04×; no calibration-scaling entry)
  • attribution: improvement withheld, stacked: merge base 819ac8b32 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 482.68 → 497.88 (+3.1%) 1912.86 → 1765.56 (-7.7%) ↓
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1284.12 → 1281.81 (-0.2%) 2574.71 → 2593.30 (+0.7%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 672.58 → 662.74 (-1.5%) 12714.36 → 12554.93 (-1.3%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1743.19 → 1733.32 (-0.6%) 3027.44 → 3015.84 (-0.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 64.31→67.40 63.78→66.68 56.47→58.71 1.30→0.99 ↓ 52.89→55.30 5.40→5.62 — 0.00→0.00 2.58→2.81 14.84→15.70 11.85→12.09 21.74→23.41 3.82→4.00 1.24→1.31 0.21→0.20 ↓ — 8.02→8.01
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 107.96→110.20 417.24→417.69 261.53→262.21 8.04→4.04 ↓ 230.10→233.40 5.13→5.11 — 0.00→0.00 2.40→2.35 28.15→27.99 10.50→10.26 19.57→19.37 8.10→8.37 1.50→1.53 0.20→0.19 ↓ — 7.58→7.45
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 59.42→59.56 81.88→82.07 66.57→66.13 13.08→13.23 48.44→48.38 8.60→8.54 1.15→1.12 0.00→0.00 0.95→1.02 65.19→64.62 10.78→10.60 58.75→57.75 8.20→8.20 1.83→1.87 0.19→0.20 0.00→0.00 9.25→9.30
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 120.52→119.84 537.53→536.55 425.81→426.51 6.37→6.35 368.45→366.26 5.43→5.87 1.12→1.09 0.00→0.00 0.72→0.71 25.53→24.30 10.72→10.25 19.26→19.01 6.60→6.67 1.49→1.51 0.18→0.19 0.00→0.00 7.68→7.51

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 246.854 → 256.742 (+4.0%)
RENDER ComputeLightVolume 33.089 → 34.981 (+5.7%)
RENDER CanvasToFramebuffer 17.303 → 17.536 (+1.3%)
RENDER BakeSunShadowMap 9.493 → 10.326 (+8.8%)
RENDER ComputeSunShadow 7.826 → 8.061 (+3.0%)
UPDATE PropagateTransform 4.444 → 5.014 (+12.8%) ⚠
UPDATE FogRevealEval 4.251 → 4.302 (+1.2%)
RENDER LightingToTrixel 3.967 → 4.138 (+4.3%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1029.388 → 1030.086 (+0.1%)
RENDER ComputeLightVolume 29.437 → 29.134 (-1.0%)
RENDER ComputeSunShadow 21.807 → 21.701 (-0.5%)
RENDER CanvasToFramebuffer 16.427 → 16.200 (-1.4%)
RENDER ComputeVoxelAO 9.553 → 9.545 (-0.1%)
RENDER BakeSunShadowMap 8.723 → 8.605 (-1.4%)
RENDER LightingToTrixel 8.431 → 8.578 (+1.7%)
UPDATE PropagateTransform 4.525 → 4.639 (+2.5%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 291.808 → 291.600 (-0.1%)
RENDER ComputeSunShadow 57.890 → 57.286 (-1.0%)
RENDER LightingToTrixel 37.677 → 36.666 (-2.7%)
RENDER ComputeLightVolume 32.943 → 32.752 (-0.6%)
RENDER BakeSunShadowMap 23.010 → 23.012 (+0.0%)
RENDER CanvasToFramebuffer 17.714 → 17.829 (+0.6%)
RENDER FogToTrixel 7.272 → 7.317 (+0.6%)
UPDATE PropagateTransform 6.270 → 6.151 (-1.9%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1463.424 → 1460.647 (-0.2%)
RENDER ComputeLightVolume 29.476 → 28.790 (-2.3%)
RENDER ComputeSunShadow 19.108 → 18.058 (-5.5%) ↓
RENDER CanvasToFramebuffer 16.257 → 16.185 (-0.4%)
RENDER BakeSunShadowMap 8.716 → 8.570 (-1.7%)
RENDER ComputeVoxelAO 7.771 → 7.746 (-0.3%)
RENDER LightingToTrixel 6.805 → 6.862 (+0.8%)
UPDATE PropagateTransform 6.350 → 6.152 (-3.1%)

Base automatically changed from codex/editor-authoring-workflows to master November 4, 2026 05:54
Keep placed part hierarchies and render modes intact while editing an
identity-grid proxy. Route strokes and history into authored voxel records
rather than the rotated GRID raster, and restore the camera on return.

Add local-canvas and authored-storage regression coverage.
@jakildev
jakildev force-pushed the codex/editor-local-canvas branch from a17d217 to 320ce89 Compare November 4, 2026 05:54
@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 4, 2026
@github-actions

github-actions Bot commented Nov 4, 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 removed the human:re-review Human pushed changes to an approved PR — fleet should re-review label Nov 4, 2026
@jakildev

jakildev commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

declined: merger/sonnet @mac-pool-3 live PR is MERGEABLE and carries human:re-review; merger skip-set forbids rebase or mutation

@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.

Re-review — editor: sculpt transformed parts in an isolated local canvas (head 320ce8941)

Verdict: approve

This is a rebase-confirmation pass. The human:re-review tag came from the "new commits pushed after fleet approval" notice, not from a requested change.

  • Cause of the push. Upstream #4868 merged, so the PR now sits on master (4e8e10656) instead of the #4868 branch. Its two commits were re-cut onto it.
  • Content is unchanged.
    • git range-diff pairs f3dd0a928 with e3106783a (the local-canvas commit) as =, and a17d21714 with 320ce8941 (the Metal overlay-orientation fix) as =. They are patch-identical to the heads I approved earlier.
    • The PR's own diff is 609 additions and 27 deletions across the same 11 files. engine/render/ is untouched, so debug_overlay.metal still matches master.
    • The only difference between the old and new main.cpp and CLAUDE.md is master drift (recipe slider steps, --module-files / --module-arg). None of it is this PR's.
  • Checks. statusCheckRollup on the current head is all SUCCESS: linux-build, format-check, header-checks, instruction-size, closes-lint, whitespace, fleet-tests, gate. mergeStateStatus is CLEAN. I ran no local build, so build/test status is CI's. The author's macOS/Metal GUI and unit evidence from the earlier head was not re-run for this rebase.
  • Prior findings. The Opus recheck's Metal debug_overlay finding stays resolved: the shared shader is untouched and the editor grid draws before FRAMEBUFFER_TO_SCREEN.

No new findings. The light-verify result is still reported as environment-blocked in the PR body, not as a pass. That statement is accurate and unchanged.

Escalation: none. Safe for merge.

🤖 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:reviewing-mac-pool-1 labels Nov 4, 2026
@jakildev
jakildev merged commit f6ebdb2 into master Nov 5, 2026
12 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