docs: complete the snapshot-switch documentation #3945
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3945
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3943"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@triggered02 on GitHub · 2026-12-03 15:55 UTC · original
triggered02:docs/snapshot-switches→main· +51 −28 · 2 files · 4 commits · merged 2026-12-03 17:22 UTCDraft — depends on #3939. The argument-snapshot paragraph documents
X2W_INDIRECT_ARGUMENT_SNAPSHOT, which is not onmainyet. If this is rebased onto #3939 that paragraph becomes an edit rather than an addition; otherwise it should land with or after it. The rest is independent.Prose only; no code changed.
What was wrong. Two opt-in snapshot switches had been merged and one was mid-review, but the documentation was incomplete in ways that matter to someone reading it before a measurement run:
X2W_INDIRECT_INDEX_SNAPSHOTandX2W_INDIRECT_ARGUMENT_SNAPSHOTwere only described in a prose paragraph, and the olderX2W_TRANSLATED_TITLE_INPUT_SNAPSHOT— the switch that owns the pool the others borrow — was missing entirely. Its row is 16 MiB and compute-only, not 64 KiB, so the table now says that explicitly rather than repeating the siblings' bound.docs/experiments.md(~:18028, ~:18035) no longer matched the code: the upload-ring line now continues with asnapshot pool:block, and the compute-dispatches line with two placed-input counters. The newsnapshot poolfields aggregate every consumer of that pool — title input, null-input zeros, index, argument and title-copy snapshots — which is the only place a reader can see them together.translated && env_on(...)) or that the bound is 64 KiB and dword-sized.count != 1 || count_bufferis refused asgraphics_multi_commandbefore the argument record is examined.docs/startup-runtime.mdclaimed the bucket tests run "one case per code"; they run one perindirect-pipelinebucket code (graphics, compute, placeholder), with no case forcached_mesh_root,translated_draw_record,unknownor theothercodes.X2W_TRANSLATED_TITLE_INPUT_SNAPSHOTas the pool's owner, cross-reference each other, and end with the covering command plus an explicit statement that no run with the switches on is reported there yet — the AGENTS.md evidence rule, applied honestly rather than by implying a result.Checks:
No measurement is claimed anywhere in the change.
@triggered02 on GitHub · 2026-12-03 16:13 UTC · original
Un-drafting: #3937 merged (
ac81f34e), so the argument-snapshot paragraph this PR documents is now onmainand the dependency is gone.Since the last push I merged current
maininto the branch. That produced one conflict —docs/experiments.md, where this PR's argument paragraph and the one merged with #3939 occupy the same place. Resolved by keeping this version, because the difference is exactly what this PR fixes:translated && env_on(...)gate;X2W_TRANSLATED_TITLE_INPUT_SNAPSHOTas the pool's owner and cross-references the sibling switch;count != 1 || count_bufferis refused asgraphics_multi_commandbefore the argument record is examined.Everything else is unchanged from the draft you saw. Checks after the merge:
The Windows and Linux CI from the draft head were green (9m59s / 6m35s); the merged head re-runs them.
@chatgpt-codex-connector[bot] on GitHub · 2026-12-03 16:13 UTC · original · edited 2026-12-03 16:18 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
925bc8eℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@chatgpt-codex-connector[bot] on GitHub · 2026-12-03 16:18 UTC · original · reviewed
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
925bc8eb74ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@chatgpt-codex-connector[bot] on GitHub · 2026-12-03 16:18 UTC · original
On
docs/experiments.mdline 18079 (outdated):When a translated compute manifest has a
scalar_windowinput in title memory outside a placed buffer, the fallback atsrc/startup_stubs/d3d12_compute_dispatch.inl:1486-1497copies it withframe_copy(the ordinary upload ring) and setsinput_sourceto 2; lines 1883-1885 increment the same counter even ifX2W_TRANSLATED_TITLE_INPUT_SNAPSHOTis unset. These totals therefore are not specific to that switch or its pool, so this path can be misreported as opt-in snapshot bytes; document the scalar-window source or separate the count.AGENTS.md reference: AGENTS.md:L353-L354
Useful? React with 👍 / 👎.
@R0Y00 on GitHub · 2026-12-03 16:21 UTC · original · requested changes
I checked the documentation against
925bc8eband the docs link check passed all 1,010 links. Two wording points could cause incorrect interpretation of local measurements.@triggered02 on GitHub · 2026-12-03 16:25 UTC · original
Both corrections in
56a3ab96.1. The
from a title snapshotcounter has two contributors. You are right, and my sentence named only one. Ascalar_windowinput in title memory outside any placed buffer is copied byframe_copyinto the ordinary upload ring (d3d12_compute_dispatch.inl:1486-1497), taggedinput_source 2, and reaches the same counter and KiB accumulation withX2W_TRANSLATED_TITLE_INPUT_SNAPSHOTunset. The paragraph now says that, and says to read thesnapshot poolfields for the switch's own traffic and the ring fields for the copy — so a local measurement cannot attribute pool growth to the switch when it came from the fallback.2. "No run with either switch on is reported here yet" was simply wrong. #3939 records source-built WARP and hardware readbacks with the argument switch enabled, plus the index control beside them — that is a run, and I wrote the opposite. Both paragraphs now say what is actually missing: a run against an original input, so that a copied range drawing what the title meant, and how many census calls a copy converts, remain hypotheses. The evidence that exists is stated as evidence.
Checks after the edit:
docs_links_check285 files / 1010 links,bidi_controls_check3090 files, both self-tests passed.Worth saying plainly: the second one was not a wording preference. It understated what has already been verified on your hardware, which is the failure mode I am most worried about with these snapshot switches — the documentation becoming more pessimistic than the evidence just as easily as more optimistic.
@R0Y00 on GitHub · 2026-12-03 16:40 UTC · original
The counter-path correction and original-input wording are confirmed on
56a3ab96. The docs check passed all 1,010 links. Two remaining pool descriptions still imply per-switch attribution: “owned by X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT” in both indirect sections, and “snapshot pool fields for the switch's own traffic” in the render totals. The pool and its counters are shared, including with the compute opt-in unset. Please use “shared title-input snapshot pool” in the indirect sections and say the pool totals aggregate its consumers. That makes the two sections consistent with the aggregate paragraph.@triggered02 on GitHub · 2026-12-03 17:11 UTC · original
Both remaining attributions removed in
0e94a9b5.X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT(above)". Both now say shared title-input snapshot pool, and each adds that the pool is shared with the compute opt-in and with its sibling indirect switch, so the pool totals aggregate every consumer and neither switch needs the compute opt-in on.snapshot poolfields "for the switch's own traffic". It now says those fields cover every consumer of that shared pool —X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT,X2W_INDIRECT_INDEX_SNAPSHOTandX2W_INDIRECT_ARGUMENT_SNAPSHOTbytes, the last two without the compute opt-in — and that the ring fields cover thescalar_windowcopy. So the three paragraphs now make the same claim.tests/docs_links_check.py: self-test passed, 285 Markdown files, 1,010 links.@R0Y00 on GitHub · 2026-12-03 17:18 UTC · original · approved these changes
Re-reviewed
0e94a9b5. The indirect paths now identify the shared snapshot pool without treating the compute switch as its owner, and the telemetry prose distinguishes the shared pool from the ordinary upload ring and the two sources of the compute snapshot counter. The source-built WARP and hardware measurements and the original-input evidence gap are stated separately. The docs check passed 1,010 links across 285 Markdown files.