Skip to content

render: measure ownership-restricted gather filtering at fractional zoom - #4919

Merged
jakildev merged 2 commits into
masterfrom
claude/4892-gather-filter-diagnostic
Nov 6, 2026
Merged

jakildev merged 2 commits into
masterfrom
claude/4892-gather-filter-diagnostic

Conversation

@jakildev

@jakildev jakildev commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Closes #4892

Summary

Investigation spike for fractional-zoom minification shimmer. It adds an opt-in, measurement-only gather colour filter (IR_GATHER_FILTER_DIAGNOSTIC=unrestricted|owner, GLSL + Metal), a fixture and a grader, Metal measurements, and a decision: production stays nearest, and no setting is exposed. Unset, the diagnostic is byte-identical to the parent commit.

  • ir_trixel_to_framebuffer_body.{glsl,metal}: an area-weighted box over the canvas texels the pixel footprint covers. In owner mode a tap counts only if it shares the nearest texel's entity, face slot and flip, at a depth within a planar face's step. Depth, alpha, entity id and hover always come from the nearest texel. The mode rides the former hoverResolvePad_ slot (gatherFilterDiagnostic_, offset 268), so the UBO size and every other offset are unchanged.
  • gather_filter_diagnostic.hpp: reads the env var once at system creation, the same pattern as IR_PERAXIS_*. Only camera-following RECTANGULAR gathers are filtered (main canvas; world-placed detached canvases with that layout).
  • IRShapeDebug --gather-filter-fixture: unlit checker bodies as GRID / DETACHED / DETACHED_REVOXELIZE, an SDF box, a touching red/green pair, one voxel and a thin rotated DETACHED bar, with palettes chosen so cross-owner mixes are detectable. Its detached systems are registered only with the flag.
  • render-continuous-zoom-metric.py filter / filter-grade + scripts/gather_filter_metric.py: ownership counts per arm against nearest, motion-compensated interior temporal difference, and interior mean-colour spread.
  • docs/design/continuous-camera-zoom.md § "Filtered minification": readings, coverage and the decision. Evidence is published on the media branch: 37a3b3eb…/gather-filter-diagnostic.

Acceptance evidence

Criterion Evidence
1. Native metric through forward and reverse fractional sweeps across a density change at cardinal and intermediate yaw; GRID, detached, revoxelized and SDF control; publish zoom, effective subdivisions and output scale per sequence filter mode: z 1.80→2.40 and 2.40→1.80 (25 shots, density 2→3) at yaw 0 and 0.4, plus snapped z 2/4. Per-sweep zoom / density / scale are in results.json (density [2, 3], scale [2]). All four presentations are in one fixture. DETACHED (SOURCE_FACES) renders incompletely and non-deterministically in IRShapeDebug's pipeline, lit or unlit (about 74k differing px per sweep between identical runs). It is never gathered, so it is fenced off and reported apart; see Plan departures
2. Temporal variation in a tracked same-surface mask; mixed-owner colours, entity/depth disagreements, pick misses; unrestricted control must error; candidate zero owner changes / bleed / added pick misses; raw counts, paired differences, repeat noise, example frames; recommendation needs interior variation below nearest by more than repeat noise RESULT=PASS. Unrestricted control: bleed 33,482 px, owner disagreements 7,614. Owner candidate: 0 coverage changes, 0 bleed, 0 disagreements across all six sweeps. GRID interior temporal difference at yaw 0: nearest 10.73 / 10.84 → owner 5.18 / 5.50 (paired −5.55 / −5.34), repeat noise 0.0. Interior mean-colour spread: 0.511 → 0.113. Picking: gui-verify.py IRShapeDebug -- --continuous-zoom-gui-test 5/5 under unset, owner and unrestricted. Example frame below
3. Metal and OpenGL repeated guarded baseline/candidate runs at identical poses and output sizes; whole-frame GPU timing and run-to-run variation; per-backend cost; no summing of adjacent stages Metal: five alternating 600-frame --auto-profile runs per arm at z 2.2, yaw 0 (gpu-timing.txt). Whole-frame envelope per-run averages: nearest 1.16–3.42 ms, owner 1.20–2.18 ms, unrestricted 1.26–3.34 ms; best frames 0.966 / 0.972 / 0.975 ms. Cost is below run-to-run variation on this shared host, and no stage sums are quoted. OpenGL: not measured. This macOS pane cannot run GL; the residual is #4916
4. Diagnostic disabled: render-verify.py --all passes and snapped-control frames match byte-for-byte; decision published in the design doc naming modes, scales and ownership cases Byte-for-byte: 26/26 calibration-cube frames (13 continuous, 6 snapped, 7 at yaw 0.4) are identical to a build of the parent 23b4d0e72. render-verify --all on this host: 57 of 323 checks FAIL. All 57 fail on the parent 23b4d0e72 with the same check names (Launcher, FontMaker, UIWidgets, LightingSdfBlocker, CanvasStress cylinder_receiver*/so3_*, VoxelEditor previews, ShapeDebug yaw-180/270 shots), and the metrics match apart from animated scenes that drift between runs either way. One extra miss on the branch, LuaPerfGrid zoom1_origin (99.9993%), passed on two reruns. This criterion is not green on this host, and the red is inherited from the parent. Decision: continuous-camera-zoom.md § "Filtered minification"

Nearest / owner / unrestricted at z 2.05, density 3 (top: GRID checker body; bottom: touching pair):

gather filter arms

Plan departures

  • OpenGL readings (criterion 3) are not in this PR. The pane is macOS (Metal); GL builds here but cannot run. The GLSL twin mirrors the Metal code and passes shader_parity_audit.py and the GLSL reserved-word check, but no GL host has executed it. Filed render: measure the gather-filter diagnostic on OpenGL #4916 (Blocked by: #4892) for the OpenGL filter and timing rows. The cross-host smoke lane compiles the edited gather programs when it runs IRShapeDebug.
  • DETACHED (SOURCE_FACES) presentation cannot be graded in IRShapeDebug: identical runs differ by about 74k px in those owners, lit or unlit. This is not root-caused; IRShapeDebug normally registers no detached systems, and the fixture adds only REBUILD_DETACHED_VOXELS, PROPAGATE_CANVAS_ROTATION and ENTITY_CANVAS_TO_FRAMEBUFFER. Source faces are never gathered, so the candidate cannot touch them. The grader fences them (16 px margin) and reports their differing count separately.
  • Fixture is unlit (UNLIT overlay, AO and shadows off) so palette membership is exact. Lit scenes are listed in the doc as a precondition for any future proposal.
  • scripts/perf/repeat_profile.py admits only the SDF scene for IRShapeDebug, so timing used direct --auto-profile runs. The env var is still added to its experiment allowlist for future use.

Open-PR overlap

fleet-pr-overlap --base master: VERDICT: overlap, every trial merge clean. Reviewer: please check the doc edits for semantic disagreement.

#4893 docs/design/continuous-camera-zoom.md clean
#4893 engine/prefabs/irreden/render/systems/system_trixel_to_framebuffer.hpp clean
#4895 docs/design/continuous-camera-zoom.md clean
#4895 engine/prefabs/irreden/render/systems/system_trixel_to_framebuffer.hpp clean
#4896 docs/design/continuous-camera-zoom.md clean
#4896 engine/prefabs/irreden/render/systems/system_trixel_to_framebuffer.hpp clean
#4903 docs/design/continuous-camera-zoom.md clean
#4903 engine/prefabs/irreden/render/systems/system_trixel_to_framebuffer.hpp clean

#4893's doc hunk edits § Placement. This PR edits § Trade-offs, adds § Filtered minification and extends § Validators.

Test plan

  • python3 scripts/render-continuous-zoom-metric.py filter --output <dir> → RESULT=PASS (Metal)
  • python3 scripts/tests/test_render_continuous_zoom_metric.py (26 tests), python3 scripts/perf/test_repeat_profile.py (56)
  • python3 scripts/gui-verify.py IRShapeDebug -- --continuous-zoom-gui-test × 3 arms, 5/5
  • calibration sweeps byte-identical to parent build
  • shader_parity_audit.py, header checks, comment-ref lint

Not verified here: render-verify --all is red on this host and on the parent build, with identical failing checks; OpenGL readings are tracked in #4916.

🤖 Generated with Claude Code

An opt-in, measurement-only colour resolve for the camera-following
rectangular gather (IR_GATHER_FILTER_DIAGNOSTIC=unrestricted|owner):
an area-weighted box over the texels a minifying pixel covers, either
unrestricted (the bleeding control) or restricted to taps that share
the nearest texel's entity, face slot, flip and planar depth. Depth,
alpha, entity id and hover stay on the nearest texel. Unset, the
gather is byte-identical; the mode rides the former hover pad slot.

IRShapeDebug --gather-filter-fixture and the metric's filter mode
grade every arm against nearest across density-step zoom sweeps.
On Metal the owner rule changes no owner, bleeds nowhere and halves
the GRID interior's temporal difference at cardinal yaw. Production
keeps nearest; continuous-camera-zoom.md records why and what a
future opt-in policy would need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jakildev jakildev added fleet:author-claude Implementation last authored by Claude; route review to Codex fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend 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 — render: measure ownership-restricted gather filtering at fractional zoom

Verdict: needs-fix

Needs-fix

  • scripts/gather_filter_metric.py:317 — the file adds a blank line at EOF, so the PR's whitespace workflow fails. I reproduced it with git diff --check origin/master...HEAD. Remove the extra terminal blank line and let the whitespace check rerun green.

Praise

  • The diagnostic preserves the existing UBO size and nearest-sample ownership/depth/hover path, and the GLSL/Metal implementations mirror the ownership filter closely.
  • The metric uses a deliberately bleeding control, repeat captures, ownership counts, and a second stability statistic, which makes the negative production decision evidence-based rather than screenshot-only.

Acceptance (issue #4892)

Criterion Result Evidence
Fractional sweeps and fixture coverage Met Forward/reverse yaw 0 and 0.4 sweeps cross density 2→3; the fixture contains GRID, DETACHED, DETACHED_REVOXELIZE, SDF, touching owners, one voxel, and a thin detached bar. The documented SOURCE_FACES nondeterminism is fenced and reported rather than attributed to the gather.
Temporal stability and ownership controls Met The candidate gates zero coverage changes, bleed, and owner disagreements; unrestricted filtering supplies the positive bleed control; repeat noise and temporal/interior-mean readings are published. The 26 metric tests pass locally.
Metal and OpenGL repeated timing Deferred to #4916 Metal results are published. OpenGL execution is host-only smoke debt explicitly tracked by #4916; the GLSL twin passes shader parity, so this is not treated as an unmet criterion in this host review.
Disabled-path parity and decision Met with inherited host red disclosed The PR reports byte-identical snapped/control captures against its parent and records the nearest-production decision. The broad render harness is red for the same named checks on the parent; the PR does not misstate it as green.

Checks and tests

  • python3 scripts/tests/test_render_continuous_zoom_metric.py — 26 passed locally.
  • python3 scripts/perf/test_repeat_profile.py — 56 passed locally.
  • GitHub whitespace — failed on this head for the finding above.
  • GitHub linux-build, perf-gate, render-harness-tests, and fleet-tests — still pending at review time and therefore unread, not green.

Test plan the author should run before merge

  • Remove the extra blank line and verify git diff --check origin/master...HEAD is clean.
  • Confirm the rerun of the whitespace workflow passes and review any later failures from the currently pending checks.

Reviewed by Codex GPT-5 (review-pr skill; opus-class final pass).

Opus recheck not required (reviewed at opus class).

@jakildev jakildev added fleet:needs-fix Fleet reviewer found issues — author must address and removed fleet:reviewing-mac-pool-1 labels Nov 5, 2026
@jakildev jakildev removed the fleet:needs-fix Fleet reviewer found issues — author must address label Nov 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jakildev jakildev added fleet:changes-made Agent addressed human feedback — ready for human re-review and removed fleet:amending-mac-pool-1 labels Nov 5, 2026
@jakildev

jakildev commented Nov 5, 2026

Copy link
Copy Markdown
Owner Author

Addressed feedback:

  • scripts/gather_filter_metric.py:317 — removed the extra terminal blank line; git diff --check origin/master...HEAD is now clean (head 53468ecdb). The rest of the diff and the PR body are unchanged, and the whitespace workflow reruns on this push. — worker

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

Re-review — render: measure ownership-restricted gather filtering at fractional zoom

Verdict: approve

The requested whitespace fix is complete. The amend from b0970eaff to 53468ecdb only removes the trailing blank line from scripts/gather_filter_metric.py; no other files or behavior changed.

Checks

  • git diff --check origin/master...HEAD — clean locally.
  • GitHub whitespace — passed on 53468ecdb.
  • GitHub linux-build, perf-gate, render-harness-tests, and fleet-tests — still pending at re-review time and therefore unread, not green.

Reviewed by Codex GPT-5 (review-pr skill; opus-class final pass).

Opus recheck not required (reviewed at opus class).

@jakildev jakildev added fleet:approved Fleet reviewer approved — ready for human merge fleet:needs-windows-smoke PR needs windows-debug build + smoke-run validation and removed fleet:reviewing-mac-pool-1 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-9v74-80-unknown

perf comparison: 361c316 → 36b2635-ci

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

host calibration

  • host: linux-x86_64-epyc-9v74-80-unknown (matches baseline)
  • ref_ms: head 91.44 vs baseline 89.92 (load_factor 1.02×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@361c3161e (branch tip); master 23b4d0e72, finished 2026-11-05T04:28:51Z, 0.1 d before the head run, ref_ms 89.92
  • weighting: raw (class-matched capture; load_factor 1.02×; no calibration-scaling entry)
  • attribution: no measured master improvement between capture master 23b4d0e72 and merge base f77113dc0 (5 commits)

thresholds: regress ≥ 10%, improve ≥ 5%

voxel cull effectiveness

cell ratio (base→head) avg visible total avg feeder
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 262144 → 262144 0 → 0
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.788 → 0.788 (+0.0pp) 156630 → 156630 262144 → 262144 50080 → 50080 (1.000×)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 262144 → 262144 0 → 0
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.990 → 0.990 (+0.0pp) 255592 → 255592 262144 → 262144 3862 → 3862 (1.000×)

frame timing (ms)

cell avg p99
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 386.70 → 389.45 (+0.7%) 1395.41 → 1399.98 (+0.3%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 934.70 → 926.85 (-0.8%) 1986.96 → 1961.18 (-1.3%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 490.07 → 520.76 (+6.3%) 7535.31 → 8757.38 (+16.2%) ⚠
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1241.41 → 1243.82 (+0.2%) 2281.99 → 2270.69 (-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 47.45→47.23 47.93→47.90 43.84→43.77 0.78→0.82 41.93→42.11 4.85→4.99 — 0.00→0.00 2.36→2.42 12.00→12.12 17.25→18.00 15.28→15.42 3.39→3.32 1.02→1.07 0.18→0.19 — 6.38→6.45
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 85.83→85.46 292.62→289.79 179.65→179.51 2.85→2.84 160.75→159.76 4.21→4.45 — 0.00→0.00 2.02→1.96 21.38→21.14 16.06→15.64 12.99→12.93 6.62→6.22 ↓ 1.16→1.08 ↓ 0.17→0.15 ↓ — 6.00→5.81
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 41.76→42.85 57.28→58.56 48.10→48.75 7.36→7.66 37.60→37.98 6.33→6.77 0.75→0.74 0.00→0.00 0.84→0.96 ⚠ 38.83→43.65 ⚠ 15.95→16.14 32.33→34.59 5.32→5.52 1.40→1.43 0.16→0.20 ⚠ 0.00→0.00 7.13→7.40
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 91.69→91.32 361.67→359.87 292.01→292.16 4.45→4.43 253.53→253.78 5.00→4.96 0.74→0.77 0.00→0.00 0.68→0.74 ⚠ 19.09→19.43 16.04→16.35 12.98→13.13 5.41→5.33 1.15→1.36 ⚠ 0.17→0.17 0.00→0.00 5.96→6.04

top CPU systems by avg ms (head)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 190.085 → 190.182 (+0.1%)
RENDER ComputeLightVolume 32.117 → 32.982 (+2.7%)
RENDER CanvasToFramebuffer 15.199 → 15.309 (+0.7%)
RENDER BakeSunShadowMap 7.727 → 7.916 (+2.4%)
RENDER ComputeSunShadow 6.533 → 6.497 (-0.6%)
UPDATE PropagateTransform 3.905 → 3.938 (+0.8%)
RENDER LightingToTrixel 3.516 → 3.458 (-1.6%)
UPDATE FogRevealEval 3.234 → 3.246 (+0.4%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 726.653 → 723.117 (-0.5%)
RENDER ComputeLightVolume 28.634 → 28.197 (-1.5%)
RENDER ComputeSunShadow 16.865 → 16.715 (-0.9%)
RENDER CanvasToFramebuffer 14.207 → 13.862 (-2.4%)
RENDER LightingToTrixel 6.802 → 6.382 (-6.2%) ↓
RENDER BakeSunShadowMap 6.489 → 6.357 (-2.0%)
RENDER ComputeVoxelAO 5.799 → 5.678 (-2.1%)
UPDATE PropagateTransform 3.901 → 3.936 (+0.9%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 211.685 → 227.885 (+7.7%)
RENDER ComputeSunShadow 33.623 → 38.107 (+13.3%) ⚠
RENDER ComputeLightVolume 30.058 → 30.449 (+1.3%)
RENDER LightingToTrixel 19.377 → 21.393 (+10.4%) ⚠
RENDER CanvasToFramebuffer 14.929 → 15.669 (+5.0%)
RENDER BakeSunShadowMap 10.105 → 10.462 (+3.5%)
UPDATE PropagateTransform 5.317 → 5.301 (-0.3%)
RENDER FogToTrixel 4.569 → 4.769 (+4.4%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1010.205 → 1008.614 (-0.2%)
RENDER ComputeLightVolume 28.611 → 29.092 (+1.7%)
RENDER ComputeSunShadow 14.340 → 14.440 (+0.7%)
RENDER CanvasToFramebuffer 13.888 → 14.432 (+3.9%)
RENDER BakeSunShadowMap 6.758 → 6.925 (+2.5%)
RENDER LightingToTrixel 5.563 → 5.548 (-0.3%)
UPDATE PropagateTransform 5.236 → 5.336 (+1.9%)
RENDER ComputeVoxelAO 4.881 → 4.873 (-0.2%)

@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 → 2d6ee9f-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/2d6ee9f7e-ci

host calibration

  • host: linux-x86_64-epyc-7763-64-unknown (matches baseline)
  • ref_ms: head 103.95 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.1 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 → 479.62 (-3.3%) 1733.03 → 1843.07 (+6.3%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1280.43 → 1269.04 (-0.9%) 2564.36 → 2512.93 (-2.0%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 676.06 → 654.89 (-3.1%) 13290.72 → 12423.71 (-6.5%) ↓
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1740.16 → 1723.79 (-0.9%) 2996.81 → 2969.40 (-0.9%)

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→64.43 66.29→64.70 59.19→56.81 0.97→1.32 ⚠ 55.38→52.58 ↓ 5.79→5.51 — 0.00→0.00 2.71→2.58 15.78→14.52 ↓ 12.40→11.42 ↓ 23.21→21.87 ↓ 3.83→3.53 ↓ 1.27→1.25 0.19→0.18 ↓ — 8.00→7.58 ↓
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 110.36→108.24 417.46→414.94 263.18→262.10 4.05→4.03 232.52→232.08 4.98→4.94 — 0.00→0.00 2.41→2.37 28.57→27.88 10.46→10.11 19.46→19.18 8.26→7.89 1.75→1.27 ↓ 0.18→0.17 ↓ — 7.47→7.31
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 59.76→59.38 83.07→80.74 67.49→66.79 14.02→12.71 ↓ 47.97→47.85 9.06→8.87 1.11→1.07 0.00→0.00 1.04→0.85 ↓ 67.53→61.31 ↓ 10.54→10.48 59.67→56.34 ↓ 8.28→7.82 ↓ 1.85→1.78 0.20→0.16 ↓ 0.00→0.00 9.18→8.80
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 121.00→119.36 534.65→533.68 427.47→425.64 6.37→6.35 367.77→366.05 5.75→5.65 1.16→1.10 0.00→0.00 0.81→0.66 ↓ 25.75→24.66 10.64→10.11 ↓ 19.84→18.86 6.83→6.32 ↓ 1.76→1.35 ↓ 0.20→0.16 ↓ 0.00→0.00 7.66→7.32

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 → 248.069 (-3.6%)
RENDER ComputeLightVolume 35.123 → 32.847 (-6.5%) ↓
RENDER CanvasToFramebuffer 17.567 → 16.907 (-3.8%)
RENDER BakeSunShadowMap 10.266 → 9.471 (-7.7%) ↓
RENDER ComputeSunShadow 8.088 → 7.553 (-6.6%) ↓
UPDATE PropagateTransform 4.778 → 4.856 (+1.6%)
UPDATE FogRevealEval 4.235 → 4.230 (-0.1%)
RENDER ComputeVoxelAO 3.990 → 3.842 (-3.7%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1030.235 → 1023.953 (-0.6%)
RENDER ComputeLightVolume 29.441 → 28.849 (-2.0%)
RENDER ComputeSunShadow 21.962 → 21.663 (-1.4%)
RENDER CanvasToFramebuffer 16.233 → 15.900 (-2.1%)
RENDER ComputeVoxelAO 9.406 → 9.357 (-0.5%)
RENDER BakeSunShadowMap 8.992 → 8.556 (-4.8%)
RENDER LightingToTrixel 8.465 → 8.101 (-4.3%)
UPDATE PropagateTransform 4.339 → 4.470 (+3.0%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 299.030 → 294.418 (-1.5%)
RENDER ComputeSunShadow 60.014 → 54.142 (-9.8%) ↓
RENDER LightingToTrixel 38.631 → 35.556 (-8.0%) ↓
RENDER ComputeLightVolume 32.634 → 32.283 (-1.1%)
RENDER BakeSunShadowMap 23.692 → 22.322 (-5.8%) ↓
RENDER CanvasToFramebuffer 17.726 → 17.709 (-0.1%)
RENDER FogToTrixel 7.366 → 6.984 (-5.2%) ↓
UPDATE PropagateTransform 6.200 → 6.150 (-0.8%)

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

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 1462.392 → 1455.810 (-0.5%)
RENDER ComputeLightVolume 30.012 → 28.552 (-4.9%)
RENDER ComputeSunShadow 18.963 → 18.544 (-2.2%)
RENDER CanvasToFramebuffer 16.640 → 16.168 (-2.8%)
RENDER BakeSunShadowMap 9.165 → 8.436 (-8.0%) ↓
RENDER ComputeVoxelAO 7.862 → 7.885 (+0.3%)
RENDER LightingToTrixel 7.002 → 6.493 (-7.3%) ↓
UPDATE PropagateTransform 6.182 → 6.135 (-0.8%)

@jakildev jakildev added fleet:verified-windows Cross-host smoke passed on windows-debug and removed fleet:needs-windows-smoke PR needs windows-debug build + smoke-run validation labels Nov 6, 2026
@jakildev

jakildev commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Cross-host smoke OK on windows (fresh checkout + IRShapeDebug --auto-screenshot 10 — build clean, exit 0, ir-run RESULT=CLEAN, no shader/GLSL compile warnings). Non-blocking notes: glad.h macro-redefinition warnings at build, and a runtime tagGpuStage: unknown stage name "guiToScreen" log line from system_gui_canvas_to_screen.hpp, which this PR does not touch.

@jakildev
jakildev merged commit 63ca216 into master Nov 6, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fleet:approved Fleet reviewer approved — ready for human merge fleet:author-claude Implementation last authored by Claude; route review to Codex fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend fleet:verified-windows Cross-host smoke passed on windows-debug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

render: evaluate fractional canvas filtering at silhouettes and picking boundaries

1 participant