Skip to content

render: record OpenGL gather-filter diagnostic readings - #5177

Merged
jakildev merged 1 commit into
masterfrom
claude/4916-gather-filter-gl
Nov 19, 2026
Merged

jakildev merged 1 commit into
masterfrom
claude/4916-gather-filter-gl

Conversation

@jakildev

Copy link
Copy Markdown
Owner

Summary

Records the OpenGL readings of the gather-filter diagnostic (IR_GATHER_FILTER_DIAGNOSTIC, merged in #4919) beside the Metal ones in docs/design/continuous-camera-zoom.md § "Filtered minification", so the decision now holds on both backends: production stays nearest. Measured on the native-Windows OpenGL host (NVIDIA, framebuffer 1280x720, output scale 1) at origin/master 44955ae9f. Docs only. OpenGL agrees with Metal to within 0.5% on every ownership count and 0.01 on every temporal mean, and the owner rule costs about 3 µs per main-canvas gather there. Evidence: 70e26990…/4916-gather-filter-gl.

Acceptance evidence

Criterion Check run Observed
1. filter --output <dir> exits 0 on OpenGL (candidate clean, unrestricted bleeds, nearest repeat byte-identical); per-body temporal table recorded python3 scripts/render-continuous-zoom-metric.py filter --output C:/msys64/tmp/p4916/filter --timeout 3000 Exit 0, RESULT=PASS. Owner arm: 0 coverage changes, 0 bleed, 0 owner disagreements in all six sweeps. Unrestricted bleed: 33,322 px. Nearest repeat: 0 in every count, repeat_noise 0.0. Temporal and spread tables are in the doc beside Metal. Met
2. Five 600-frame --auto-profile runs per arm (nearest / owner) at --zoom 2.2 --yaw 0: whole-frame GPU timing and run-to-run spread on OpenGL 2 × 5 alternating runs per arm (nearest, owner, unrestricted) through fleet-run: default config, then --config-preset configs/perf/sdf-on.lua Every report reads Coverage: supported=0: OpenGL has no whole-frame GPU timer. Steady wall frame: nearest 2.38–2.63 ms, owner 2.47–2.61 ms; the ranges overlap. Exclusive trixelToFb GPU time: nearest 0.018–0.020 ms, owner 0.021–0.023 ms. All 30 runs QUIET=guarded. Met through a substitute measurement; see Plan departures
3. Diagnostic unset: render-verify.py --all passes on the GL host render-verify.py --all --no-build --timeout 1200, then per-demo --target runs Not met. IRAnalyticOracle: 1/1 PASS. IRCanvasStress ran more than 1.5 h without finishing; its default pass is already red on Windows master (#4925). IRShapeDebug aborted with RESULT=LOCK-FAILED (ir-acquire 600 s gpu wait) and printed no rows. The other demos were not reached.
Reviewer notes

Plan departures

  • Criterion 2: OpenGL has no whole-frame GPU envelope. In its place, steady wall-frame time (stage timing off) is the whole-frame reading, and the exclusive GPU stage rows (stage timing on) give the gather's own cost. The diagnostic only changes the gather shader, so trixelToFb and entityCanvasToFb are where a cost shows; fbToScreen is the untouched control. Unrestricted was added as a third arm to match the Metal table. Per-run rows: gpu-timing.txt in the evidence link.
  • Criterion 3: not completed. Every pass waited on other panes' GPU-lock holds (about 30 min each), and one wait passed ir-acquire's 600 s limit. This PR changes one Markdown file and moves no render row, so what remains is a master-on-Windows reading. Refs, not Closes, keeps render: measure the gather-filter diagnostic on OpenGL #4916 open for it.

Notes for reviewer

  • On OpenGL, the fenced DETACHED (SOURCE_FACES) owners agree between identical runs (0 px). On Metal they differ by about 74,000 px per sweep. The doc records this beside the Metal note.
  • The first filter attempt hit the script's 300 s default per-run timeout while queued on the GPU lock; the exe itself ran in 6 s. The rerun with --timeout 3000 is the one recorded.
  • fleet-pr-overlap --base master: VERDICT: clean.

Refs #4916

🤖 Generated with Claude Code

Adds the OpenGL rows of the filter-mode ownership gate, temporal
difference and mean-colour spread beside the Metal ones; both backends
pass with matching readings. OpenGL has no whole-frame GPU timer, so its
cost is the steady wall-frame time plus the exclusive GPU time of the
gather stages; the owner rule costs about 3 us per main-canvas gather on
the fixture.

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-windows PR was opened from a Windows (MSYS2) host labels Nov 18, 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: record OpenGL gather-filter diagnostic readings

Verdict: approve

The documentation accurately transcribes the linked OpenGL diagnostic evidence and correctly keeps the unfinished host-wide verification as an open issue residual.

Checked

  • Read the complete PR and issue #4916 discussions, the one-file documentation diff, and the full Filtered minification section in context.
  • Cross-checked the OpenGL ownership totals and temporal readings against 4916-gather-filter-gl/results.json; the aggregate rows match the six recorded sweeps.
  • Confirmed the PR uses Refs #4916, while criterion 3 remains explicitly unmet rather than being presented as a pass.
  • All PR checks are complete and successful; this is a documentation-only change, so no local build was run.

Escalation: none. Safe for merge.

🤖 Reviewed by GPT-5 / Codex (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-4 labels Nov 18, 2026
@jakildev
jakildev merged commit c65f65f into master Nov 19, 2026
10 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-windows PR was opened from a Windows (MSYS2) host

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant