docs: complete the snapshot-switch documentation #3945

Manually merged
github merged 4 commits from github-bot/gh-3943 into gh-pr/3943/base 2026-12-03 17:23:39 +00:00 AGit
Owner

@⁠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 UTC

Draft — depends on #3939. The argument-snapshot paragraph documents X2W_INDIRECT_ARGUMENT_SNAPSHOT, which is not on main yet. 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:

  • the startup-runtime switch table (~:1987) had no row for any of them, so X2W_INDIRECT_INDEX_SNAPSHOT and X2W_INDIRECT_ARGUMENT_SNAPSHOT were only described in a prose paragraph, and the older X2W_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.
  • two quoted totals lines in docs/experiments.md (~:18028, ~:18035) no longer matched the code: the upload-ring line now continues with a snapshot pool: block, and the compute-dispatches line with two placed-input counters. The new snapshot pool fields 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.
  • the index paragraph did not state its gate (translated && env_on(...)) or that the bound is 64 KiB and dword-sized.
  • the argument paragraph's "the count-buffer path is unchanged, because its word is read at execution time" was misleading: a translated indirect draw cannot have a count buffer at all — count != 1 || count_buffer is refused as graphics_multi_command before the argument record is examined.
  • docs/startup-runtime.md claimed the bucket tests run "one case per code"; they run one per indirect-pipeline bucket code (graphics, compute, placeholder), with no case for cached_mesh_root, translated_draw_record, unknown or the other codes.
  • both snapshot paragraphs now name X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT as 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:

tests/docs_links_check.py     -> 285 Markdown files, 1010 links, self-test passed
tests/bidi_controls_check.py  -> 3089 tracked files, no bidirectional controls, self-test passed

No measurement is claimed anywhere in the change.

**@⁠triggered02** on GitHub · 2026-12-03 15:55 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3943) `triggered02:docs/snapshot-switches` → `main` · +51 −28 · 2 files · 4 commits · merged 2026-12-03 17:22 UTC **Draft — depends on #3939.** The argument-snapshot paragraph documents `X2W_INDIRECT_ARGUMENT_SNAPSHOT`, which is not on `main` yet. 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: - the startup-runtime switch table (~:1987) had no row for any of them, so `X2W_INDIRECT_INDEX_SNAPSHOT` and `X2W_INDIRECT_ARGUMENT_SNAPSHOT` were only described in a prose paragraph, and the older `X2W_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. - two quoted totals lines in `docs/experiments.md` (~:18028, ~:18035) no longer matched the code: the upload-ring line now continues with a `snapshot pool:` block, and the compute-dispatches line with two placed-input counters. The new `snapshot pool` fields 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. - the index paragraph did not state its gate (`translated && env_on(...)`) or that the bound is 64 KiB **and dword-sized**. - the argument paragraph's "the count-buffer path is unchanged, because its word is read at execution time" was misleading: a translated indirect draw cannot have a count buffer at all — `count != 1 || count_buffer` is refused as `graphics_multi_command` before the argument record is examined. - `docs/startup-runtime.md` claimed the bucket tests run "one case per code"; they run one per `indirect-pipeline` bucket code (graphics, compute, placeholder), with no case for `cached_mesh_root`, `translated_draw_record`, `unknown` or the `other` codes. - both snapshot paragraphs now name `X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT` as 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:** ``` tests/docs_links_check.py -> 285 Markdown files, 1010 links, self-test passed tests/bidi_controls_check.py -> 3089 tracked files, no bidirectional controls, self-test passed ``` No measurement is claimed anywhere in the change.
Document X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT, X2W_INDIRECT_INDEX_SNAPSHOT
and X2W_INDIRECT_ARGUMENT_SNAPSHOT in the switches table, extend the upload
ring and compute dispatch totals quotes for the snapshot-pool and placed-input
fields, state the index gate and 64 KiB/dword-sized bound, replace the
argument count-buffer sentence with the graphics_multi_command refusal, and
give both snapshot paragraphs the covering ctest command and an explicit
no-run-yet caveat. The indirect-pipeline bucket tests are described as
covering the graphics-pipeline, compute-pipeline and placeholder bucket codes.

The argument snapshot is open PR #3937; its rows and paragraph belong with it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 15:56:12 +00:00
Author
Owner

@⁠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 on main and the dependency is gone.

Since the last push I merged current main into 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:

  • it states the translated && env_on(...) gate;
  • it names X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT as the pool's owner and cross-references the sibling switch;
  • it replaces "the count-buffer path is unchanged, because its word is read at execution time" with the fact that a translated indirect draw cannot have a count buffer at all — count != 1 || count_buffer is refused as graphics_multi_command before the argument record is examined.

Everything else is unchanged from the draft you saw. Checks after the merge:

tests/docs_links_check.py     -> 285 Markdown files, 1010 links, self-test passed
tests/bidi_controls_check.py  -> 3090 tracked files, no bidirectional controls

The Windows and Linux CI from the draft head were green (9m59s / 6m35s); the merged head re-runs them.

**@⁠triggered02** on GitHub · 2026-12-03 16:13 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3943#issuecomment-7384485157) Un-drafting: **#3937 merged** (`ac81f34e`), so the argument-snapshot paragraph this PR documents is now on `main` and the dependency is gone. Since the last push I merged current `main` into 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: - it states the `translated && env_on(...)` gate; - it names `X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT` as the pool's owner and cross-references the sibling switch; - it replaces *"the count-buffer path is unchanged, because its word is read at execution time"* with the fact that a translated indirect draw cannot have a count buffer at all — `count != 1 || count_buffer` is refused as `graphics_multi_command` before the argument record is examined. Everything else is unchanged from the draft you saw. Checks after the merge: ``` tests/docs_links_check.py -> 285 Markdown files, 1010 links, self-test passed tests/bidi_controls_check.py -> 3090 tracked files, no bidirectional controls ``` The Windows and Linux CI from the draft head were green (9m59s / 6m35s); the merged head re-runs them.
Author
Owner

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T16:18:44.957595Z 925bc8e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

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:13 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3943#issuecomment-7384486800) · edited 2026-12-03 16:18 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"925bc8eb747ec30151c6cb60c582bd414d8bcf8b","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-12-03T16:18:44.957595Z">2026-12-03T16:18:44.957595Z</relative-time> | `925bc8e` | Draft marked ready | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

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

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review".

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](https://github.com/R0Y00/Xbox2Windows/pull/3943#pullrequestreview-6173756459) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `925bc8eb74` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review". 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". </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-12-03 16:18 UTC · original
On docs/experiments.md line 18079 (outdated):

@@ -18055,14 +18063,20 @@ With a device slot 67 placeholder bound, command-list slot 14 looks up the trans
 
 `startup_compute_dispatch_two_mips_` writes two distinct patterns through two UAVs of one RGBA16_FLOAT texture in the same translated Dispatch. The test compares all 1,280 half values in the 32×8 and 16×4 subresources, including the sentinel values outside the written rectangles. Before translation both mips keep their sentinels. Exchanging the two views moves the patterns to opposite mips and changes 64 half values relative to the ordered case.
 
-Every 300 render frames, `x2w-render upload ring: reserved <n> MiB in <n> reservations, refusals <n>, capacity <n> MiB` reports
+Every 300 render frames, `x2w-render upload ring: reserved <n> MiB in <n> reservations, refusals <n>, capacity <n> MiB; snapshot pool: used <n> bytes, high-water <n> bytes, chunks <n>, reserved <n> bytes in <n> reservations, refusals (invalid_size <n>, no_unused_capacity <n>, no_device <n>, create_failed <n>, map_failed <n>, bookkeeping_failed <n>)` reports
 cumulative successful reservations and their 512-byte-rounded sizes, including reservations in recycled chunks.
 `refusals` counts reservation attempts that exhaust the allocator's available options. The submit-time rejection
 of a list whose chunks were recycled is logged separately. `capacity` is the total allocated chunk size.
 With `X2W_D3D12_RING_RELEASE_AT_SUBMIT=1`, completed fenced submits can make chunks reusable sooner,
-so cumulative reserved bytes can exceed capacity. These totals do not measure current occupancy.
-
-The log line `x2w-render compute dispatches: translated <n>, refused <n>, no translation <n>, not modelled <n>, builder gate refused <n>` follows the upload ring totals. The builder gate field counts dispatches refused by `X2W_COMPUTE_BUILDER_GATE`. The "not modelled" field counts calls whose manifest exists but holds a line the runtime does not bind. It is followed by a census: the refused calls per first refusal reason of their key, and every dispatched key by call count, each with its count, the calls recorded and the first refused table descriptor.
+so cumulative reserved bytes can exceed capacity. The ring totals do not measure current occupancy. The `snapshot pool`
+fields cover the separate title-input pool, not the ring, and aggregate every consumer of it: title input snapshots
+(`X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT`), the zero bytes a null compute input is bound to, indirect index and argument
+snapshots (`X2W_INDIRECT_INDEX_SNAPSHOT`, `X2W_INDIRECT_ARGUMENT_SNAPSHOT`) and title copy snapshots
+(`X2W_D3D12_TITLE_COPY_SNAPSHOT`). Its `used` is the allocated prefix of all its chunks, cleared per chunk when the
+chunk is recycled, so it is current occupancy; `high-water` is its maximum, `chunks` is the allocated chunk count and
+`refusals` is split by cause.
+
+The log line `x2w-render compute dispatches: translated <n>, refused <n>, no translation <n>, not modelled <n>, builder gate refused <n>; placed inputs from a GPU copy <n>, from a title snapshot <n> (<n> KiB)` follows the upload ring totals. The builder gate field counts dispatches refused by `X2W_COMPUTE_BUILDER_GATE`. The "not modelled" field counts calls whose manifest exists but holds a line the runtime does not bind. It is followed by a census: the refused calls per first refusal reason of their key, and every dispatched key by call count, each with its count, the calls recorded and the first refused table descriptor. The two placed-input counters count translated compute inputs only: `from a GPU copy` counts an input a GPU copy on this list supplied, and `from a title snapshot` counts one copied from title memory by `X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT`, with the copied size rounded up to KiB. Of the snapshot switches these counters see only `X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT`; the indirect index and argument snapshots are not compute inputs and show up as forwarded calls in `x2w-render indirect:` and as pool bytes in the upload ring line.

P2 Badge Distinguish scalar-window copies in snapshot totals

When a translated compute manifest has a scalar_window input in title memory outside a placed buffer, the fallback at src/startup_stubs/d3d12_compute_dispatch.inl:1486-1497 copies it with frame_copy (the ordinary upload ring) and sets input_source to 2; lines 1883-1885 increment the same counter even if X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT is 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 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-12-03 16:18 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3943#discussion_r4787729610) On `docs/experiments.md` line 18079 (outdated): ```diff @@ -18055,14 +18063,20 @@ With a device slot 67 placeholder bound, command-list slot 14 looks up the trans `startup_compute_dispatch_two_mips_` writes two distinct patterns through two UAVs of one RGBA16_FLOAT texture in the same translated Dispatch. The test compares all 1,280 half values in the 32×8 and 16×4 subresources, including the sentinel values outside the written rectangles. Before translation both mips keep their sentinels. Exchanging the two views moves the patterns to opposite mips and changes 64 half values relative to the ordered case. -Every 300 render frames, `x2w-render upload ring: reserved <n> MiB in <n> reservations, refusals <n>, capacity <n> MiB` reports +Every 300 render frames, `x2w-render upload ring: reserved <n> MiB in <n> reservations, refusals <n>, capacity <n> MiB; snapshot pool: used <n> bytes, high-water <n> bytes, chunks <n>, reserved <n> bytes in <n> reservations, refusals (invalid_size <n>, no_unused_capacity <n>, no_device <n>, create_failed <n>, map_failed <n>, bookkeeping_failed <n>)` reports cumulative successful reservations and their 512-byte-rounded sizes, including reservations in recycled chunks. `refusals` counts reservation attempts that exhaust the allocator's available options. The submit-time rejection of a list whose chunks were recycled is logged separately. `capacity` is the total allocated chunk size. With `X2W_D3D12_RING_RELEASE_AT_SUBMIT=1`, completed fenced submits can make chunks reusable sooner, -so cumulative reserved bytes can exceed capacity. These totals do not measure current occupancy. - -The log line `x2w-render compute dispatches: translated <n>, refused <n>, no translation <n>, not modelled <n>, builder gate refused <n>` follows the upload ring totals. The builder gate field counts dispatches refused by `X2W_COMPUTE_BUILDER_GATE`. The "not modelled" field counts calls whose manifest exists but holds a line the runtime does not bind. It is followed by a census: the refused calls per first refusal reason of their key, and every dispatched key by call count, each with its count, the calls recorded and the first refused table descriptor. +so cumulative reserved bytes can exceed capacity. The ring totals do not measure current occupancy. The `snapshot pool` +fields cover the separate title-input pool, not the ring, and aggregate every consumer of it: title input snapshots +(`X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT`), the zero bytes a null compute input is bound to, indirect index and argument +snapshots (`X2W_INDIRECT_INDEX_SNAPSHOT`, `X2W_INDIRECT_ARGUMENT_SNAPSHOT`) and title copy snapshots +(`X2W_D3D12_TITLE_COPY_SNAPSHOT`). Its `used` is the allocated prefix of all its chunks, cleared per chunk when the +chunk is recycled, so it is current occupancy; `high-water` is its maximum, `chunks` is the allocated chunk count and +`refusals` is split by cause. + +The log line `x2w-render compute dispatches: translated <n>, refused <n>, no translation <n>, not modelled <n>, builder gate refused <n>; placed inputs from a GPU copy <n>, from a title snapshot <n> (<n> KiB)` follows the upload ring totals. The builder gate field counts dispatches refused by `X2W_COMPUTE_BUILDER_GATE`. The "not modelled" field counts calls whose manifest exists but holds a line the runtime does not bind. It is followed by a census: the refused calls per first refusal reason of their key, and every dispatched key by call count, each with its count, the calls recorded and the first refused table descriptor. The two placed-input counters count translated compute inputs only: `from a GPU copy` counts an input a GPU copy on this list supplied, and `from a title snapshot` counts one copied from title memory by `X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT`, with the copied size rounded up to KiB. Of the snapshot switches these counters see only `X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT`; the indirect index and argument snapshots are not compute inputs and show up as forwarded calls in `x2w-render indirect:` and as pool bytes in the upload ring line. ``` **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Distinguish scalar-window copies in snapshot totals** When a translated compute manifest has a `scalar_window` input in title memory outside a placed buffer, the fallback at `src/startup_stubs/d3d12_compute_dispatch.inl:1486-1497` copies it with `frame_copy` (the ordinary upload ring) and sets `input_source` to 2; lines 1883-1885 increment the same counter even if `X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT` is 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](https://github.com/R0Y00/Xbox2Windows/blob/925bc8eb747ec30151c6cb60c582bd414d8bcf8b/AGENTS.md#L353-L354) Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-03 16:21 UTC · original · requested changes

I checked the documentation against 925bc8eb and the docs link check passed all 1,010 links. Two wording points could cause incorrect interpretation of local measurements.

  • The translated-compute “from a title snapshot” counter includes the scalar_window fallback. That path uses frame_copy in the ordinary upload ring, tags the view as input_source 2, and reaches the same count and KiB accumulation even with X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT unset. Please describe it as a separate contributor to the counter and keep the snapshot pool totals separate.
  • Please use “no original-input run is reported” where the new text says no run with either switch on is reported. #3939 already records source-built WARP and hardware readbacks with the argument switch enabled, as well as the index controls. Also make clear that the two indirect opt-ins share the pool with the compute opt-in without requiring it.
**@⁠R0Y00** on GitHub · 2026-12-03 16:21 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3943#pullrequestreview-6173813553) · **requested changes** I checked the documentation against 925bc8eb and the docs link check passed all 1,010 links. Two wording points could cause incorrect interpretation of local measurements. - The translated-compute “from a title snapshot” counter includes the scalar_window fallback. That path uses frame_copy in the ordinary upload ring, tags the view as input_source 2, and reaches the same count and KiB accumulation even with X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT unset. Please describe it as a separate contributor to the counter and keep the snapshot pool totals separate. - Please use “no original-input run is reported” where the new text says no run with either switch on is reported. #3939 already records source-built WARP and hardware readbacks with the argument switch enabled, as well as the index controls. Also make clear that the two indirect opt-ins share the pool with the compute opt-in without requiring it.
Author
Owner

@⁠triggered02 on GitHub · 2026-12-03 16:25 UTC · original

Both corrections in 56a3ab96.

1. The from a title snapshot counter has two contributors. You are right, and my sentence named only one. A scalar_window input in title memory outside any placed buffer is copied by frame_copy into the ordinary upload ring (d3d12_compute_dispatch.inl:1486-1497), tagged input_source 2, and reaches the same counter and KiB accumulation with X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT unset. The paragraph now says that, and says to read the snapshot pool fields 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_check 285 files / 1010 links, bidi_controls_check 3090 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.

**@⁠triggered02** on GitHub · 2026-12-03 16:25 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3943#issuecomment-7384824626) Both corrections in `56a3ab96`. **1. The `from a title snapshot` counter has two contributors.** You are right, and my sentence named only one. A `scalar_window` input in title memory outside any placed buffer is copied by `frame_copy` into the ordinary upload ring (`d3d12_compute_dispatch.inl:1486-1497`), tagged `input_source 2`, and reaches the same counter and KiB accumulation **with `X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT` unset**. The paragraph now says that, and says to read the `snapshot pool` fields 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_check` 285 files / 1010 links, `bidi_controls_check` 3090 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.
Two corrections from R0Y00, both about text that would make a local measurement
misread:

* the translated-compute 'from a title snapshot' counter has two contributors.
  X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT copies into the snapshot pool, and a
  scalar_window input in title memory outside any placed buffer is copied by
  frame_copy into the ordinary upload ring, reaching the same counter and KiB
  accumulation with the switch unset. The paragraph now says so and points at the
  pool fields for the switch's own traffic and the ring fields for the copy.

* 'no run with either switch on is reported here yet' was wrong: #3937 records
  source-built WARP and hardware readbacks with the argument switch enabled, and
  the index control beside them. What is actually missing is a run against an
  original input, which is what the sentence now says.

Refs #3937, #3899.
Author
Owner

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

**@⁠R0Y00** on GitHub · 2026-12-03 16:40 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3943#issuecomment-7385253395) 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.
Author
Owner

@⁠triggered02 on GitHub · 2026-12-03 17:11 UTC · original

Both remaining attributions removed in 0e94a9b5.

  • The two indirect sections said the destination was "the title-input snapshot pool owned by 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.
  • The render totals paragraph said to read the snapshot pool fields "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_SNAPSHOT and X2W_INDIRECT_ARGUMENT_SNAPSHOT bytes, the last two without the compute opt-in — and that the ring fields cover the scalar_window copy. So the three paragraphs now make the same claim.

tests/docs_links_check.py: self-test passed, 285 Markdown files, 1,010 links.

**@⁠triggered02** on GitHub · 2026-12-03 17:11 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3943#issuecomment-7386108812) Both remaining attributions removed in `0e94a9b5`. - The two indirect sections said the destination was "the title-input snapshot pool **owned by** `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. - The render totals paragraph said to read the `snapshot pool` fields "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_SNAPSHOT` and `X2W_INDIRECT_ARGUMENT_SNAPSHOT` bytes, the last two without the compute opt-in — and that the ring fields cover the `scalar_window` copy. So the three paragraphs now make the same claim. `tests/docs_links_check.py`: self-test passed, 285 Markdown files, 1,010 links.
R0Y00 confirmed the counter-path correction and the original-input wording,
then pointed at two remaining descriptions that still implied per-switch
attribution. Both indirect sections called the destination "the title-input
snapshot pool owned by `X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT`", and the render
totals told a reader to take the `snapshot pool` fields as "the switch's own
traffic".

The pool and its counters are shared: the compute opt-in, the indirect index
switch and the indirect argument switch all allocate from it, and the indirect
switches do so without the compute switch on. The text now says the pool is
shared in both indirect sections and states that its totals aggregate every
consumer, which matches the aggregate paragraph above.

`tests/docs_links_check.py`: self-test passed, 285 Markdown files, 1,010 links.

Refs #3943.
github-bot changed target branch from main to gh-pr/3943/base 2026-12-03 17:23:30 +00:00
github manually merged commit 0e94a9b51f into gh-pr/3943/base 2026-12-03 17:23:39 +00:00
Author
Owner

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

**@⁠R0Y00** on GitHub · 2026-12-03 17:18 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3943#pullrequestreview-6174798067) · **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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.