docs: record design B retention pressure and the 16 GiB commit reduction #2772

Merged
triggered02 merged 2 commits from upstream-pr/2780 into main 2026-11-26 09:30:50 +00:00
triggered02 commented 2026-11-26 08:30:19 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-26T08:30:19Z.


Records the #2379 design-B retention pressure and the separate 16 GiB host-commit reduction in docs/experiments.md, as R0Y00 requested ("record the approximately 9 GB result as pressure measured in that run, alongside the bytes still owned by live slots, recording holds and in-flight work where the counters distinguish them") and as promised after #2719 landed. Docs only; no behavior change. Refs #2379, #2679, #2719, #1199.

What is recorded

  • Design B is the standing decision (#2679 / R0Y00 on #2379): a materialized descriptor and its copies own the resource until the slot is overwritten, copied over, or the heap is destroyed; final guest Release() + completed fences retire prior references/submissions but a live slot stays reboundable; slice 3 ended with #2719; X2W_D3D12_RELEASE_RETIRED_VIEWS is diagnostic-only. The retained bytes are intended pressure, not a reclamation bug.
  • Matched retention pair (MasterDomino, #2379): AMD Radeon RX 9070 XT 16 GB, main 6b9fb9d9, one release build, only X2W_D3D12_RELEASE_RETIRED differs, 600 s window. Off: access violation at 490.7 s after 8x 0x8007000e, texture retained peak 10.67 GB / 4,874. On: survived to 600 s, 53,000 references dropped, retained peak 9.41 GB / 4,364 (end 9.10 GB / 4,267), local usage ~5.4 GB over the DXGI budget. Retention-over-time table included.
  • Attribution (JB2WIN local opt-in counter, #2379, 1cce2a32): ~4.4 GB (4,445,110,272 B / 2,297 objects, oldest 4,374 frames) are slot 133 class members held only by never-overwritten shader-visible descriptor slots (view-refs), ~0.55 GB never-class buffers, ~0.2 GB never-class RT/DS/UAV, unattributed=0/0.
  • Upstream counter taxonomy: X2W_D3D12_RETIRE_REASONS=1 -> retire_reasons_line Held categories separating live descriptor slots (view-refs, view-refs-in-visible-heap), recording holds (list-hold, unqueued, drain-pending), and in-flight work (flight, queued-waiting-fence), plus left-class:* / never-class:*, total, unattributed. A current GTX 1660 SUPER line is quoted.
  • 16 GiB host-commit reduction (this session, GTX 1660 SUPER, 300 s, 3,260 storage requests, 6,434 frames, -LazyMemory + X2W_D3D12_LAZY_TEXTURES=1): #2767 + #2770 + #2773 + #2775 together cut host commit peak 12,144 MiB -> 8,787 MiB (-3.28 GiB), DXGI non-local 2,897 -> 695 MiB, existing-heap 2,199 -> 0 MiB. Explicitly distinguished from local-VRAM retention; remaining commit targets named (RT/DS/UAV slot 133 textures, tiny < 64 KiB buffers, MEM_MAPPED duplicates).

No game names, paths, dumps, or captures; adapters and aggregate counters only.

Verified (ab604660, from origin/main 96a7b4fb)

python -B tests/docs_links_check.py    # Checked 24 Markdown files and 540 links; self-test passed
python -B tests/bidi_controls_check.py # 2024 tracked files, no bidirectional controls
git diff --check                       # clean

The referenced fixtures (startup_resource_retire_reasons, startup_resource_retire_views, startup_slot133_lazy_textures, startup_slot133_heap_cap, xmem_*) are the acceptance commands listed in the section; the matched title pairs are local executable runs recorded as pressure measurements, not source-built fixtures.

NOT established

  • That the local-VRAM overcommit causes the device removal in the original #2379 report (a correlation from the budget heartbeat, as the issue states).
  • The ~9 GB design-B remainder is not reclaimed by this docs change; reclaiming it would reverse #2679 and is explicitly out of scope per R0Y00's decision.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6622622972 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2780). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-26T08:30:19Z. --- Records the #2379 design-B retention pressure and the separate 16 GiB host-commit reduction in `docs/experiments.md`, as R0Y00 requested ("record the approximately 9 GB result as pressure measured in that run, alongside the bytes still owned by live slots, recording holds and in-flight work where the counters distinguish them") and as promised after #2719 landed. Docs only; no behavior change. Refs #2379, #2679, #2719, #1199. ### What is recorded - **Design B is the standing decision** (#2679 / R0Y00 on #2379): a materialized descriptor and its copies own the resource until the slot is overwritten, copied over, or the heap is destroyed; final guest `Release()` + completed fences retire prior references/submissions but a live slot stays reboundable; slice 3 ended with #2719; `X2W_D3D12_RELEASE_RETIRED_VIEWS` is diagnostic-only. The retained bytes are intended pressure, not a reclamation bug. - **Matched retention pair** (MasterDomino, #2379): AMD Radeon RX 9070 XT 16 GB, `main` `6b9fb9d9`, one release build, only `X2W_D3D12_RELEASE_RETIRED` differs, 600 s window. Off: access violation at 490.7 s after 8x `0x8007000e`, texture retained peak 10.67 GB / 4,874. On: survived to 600 s, 53,000 references dropped, retained peak 9.41 GB / 4,364 (end 9.10 GB / 4,267), local usage ~5.4 GB over the DXGI budget. Retention-over-time table included. - **Attribution** (JB2WIN local opt-in counter, #2379, `1cce2a32`): ~4.4 GB (4,445,110,272 B / 2,297 objects, oldest 4,374 frames) are slot 133 class members held only by never-overwritten shader-visible descriptor slots (`view-refs`), ~0.55 GB never-class buffers, ~0.2 GB never-class RT/DS/UAV, `unattributed=0/0`. - **Upstream counter taxonomy**: `X2W_D3D12_RETIRE_REASONS=1` -> `retire_reasons_line` `Held` categories separating live descriptor slots (`view-refs`, `view-refs-in-visible-heap`), recording holds (`list-hold`, `unqueued`, `drain-pending`), and in-flight work (`flight`, `queued-waiting-fence`), plus `left-class:*` / `never-class:*`, `total`, `unattributed`. A current GTX 1660 SUPER line is quoted. - **16 GiB host-commit reduction** (this session, GTX 1660 SUPER, 300 s, 3,260 storage requests, 6,434 frames, `-LazyMemory` + `X2W_D3D12_LAZY_TEXTURES=1`): #2767 + #2770 + #2773 + #2775 together cut host commit peak **12,144 MiB -> 8,787 MiB (-3.28 GiB)**, DXGI non-local **2,897 -> 695 MiB**, existing-heap **2,199 -> 0 MiB**. Explicitly distinguished from local-VRAM retention; remaining commit targets named (RT/DS/UAV slot 133 textures, tiny `< 64 KiB` buffers, `MEM_MAPPED` duplicates). No game names, paths, dumps, or captures; adapters and aggregate counters only. ### Verified (`ab604660`, from `origin/main` `96a7b4fb`) ```powershell python -B tests/docs_links_check.py # Checked 24 Markdown files and 540 links; self-test passed python -B tests/bidi_controls_check.py # 2024 tracked files, no bidirectional controls git diff --check # clean ``` The referenced fixtures (`startup_resource_retire_reasons`, `startup_resource_retire_views`, `startup_slot133_lazy_textures`, `startup_slot133_heap_cap`, `xmem_*`) are the acceptance commands listed in the section; the matched title pairs are local executable runs recorded as pressure measurements, not source-built fixtures. ### NOT established - That the local-VRAM overcommit causes the device removal in the original #2379 report (a correlation from the budget heartbeat, as the issue states). - The ~9 GB design-B remainder is not reclaimed by this docs change; reclaiming it would reverse #2679 and is explicitly out of scope per R0Y00's decision. AI-assisted.
tedin7 commented 2026-11-26 09:04:50 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T08:31:38Z.

Review: COMMENTED


Review of head ab604660, docs only (docs/experiments.md, +107 lines).

Verdict: no code concerns. Merge stays with MasterDomino or @R0Y00. The tables report numbers from running the game: the matched retention pair, the ~6 min start-up attribution run, and the 16 GiB host-commit table built from #2767, #2770, #2773 and #2775. I do not have the game, so I could not reproduce any of those numbers. They are taken as the author's and MasterDomino's reports. Someone who has run the game should confirm them before this is merged.

What I checked against origin/main:

  • The Held names in the doc match the held_names[] array in src/startup_stubs/d3d12_xs_device.cpp: view-refs, list-hold, flight, queued-waiting-fence, drain-pending, unqueued, left-class:*, never-class:*. view-refs-in-visible-heap is also in the heartbeat line.
  • X2W_D3D12_RETIRE_REASONS is read in that file, and X2W_D3D12_RELEASE_RETIRED_VIEWS is still referenced there.
  • #2767, #2770, #2719, #2468 and #2679 are merged. #2773 and #2775 are still open, so the "together" row in the host-commit table describes changes that are not all on main yet.
  • The text names no game, path, dump or capture.

Small nit, not blocking: the new ## Design B ... heading comes right after a closing code fence with no blank line before it (line 17293). Add one blank line.

Commands run in a worktree at the exact head:

  • python3 tests/docs_links_check.py: passed, 24 files, 540 links.
  • python3 tests/bidi_controls_check.py: passed.
  • git diff --check origin/main...HEAD: clean.

CI was still pending when I looked. No Win2025 run (docs only).

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6070740894 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2780#pullrequestreview-6070740894). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T08:31:38Z. **Review:** COMMENTED --- Review of head `ab604660`, docs only (`docs/experiments.md`, +107 lines). **Verdict: no code concerns. Merge stays with MasterDomino or @R0Y00.** The tables report numbers from running the game: the matched retention pair, the ~6 min start-up attribution run, and the 16 GiB host-commit table built from #2767, #2770, #2773 and #2775. I do not have the game, so I could not reproduce any of those numbers. They are taken as the author's and MasterDomino's reports. Someone who has run the game should confirm them before this is merged. What I checked against `origin/main`: - The `Held` names in the doc match the `held_names[]` array in `src/startup_stubs/d3d12_xs_device.cpp`: `view-refs`, `list-hold`, `flight`, `queued-waiting-fence`, `drain-pending`, `unqueued`, `left-class:*`, `never-class:*`. `view-refs-in-visible-heap` is also in the heartbeat line. - `X2W_D3D12_RETIRE_REASONS` is read in that file, and `X2W_D3D12_RELEASE_RETIRED_VIEWS` is still referenced there. - #2767, #2770, #2719, #2468 and #2679 are merged. #2773 and #2775 are still open, so the "together" row in the host-commit table describes changes that are not all on main yet. - The text names no game, path, dump or capture. Small nit, not blocking: the new `## Design B ...` heading comes right after a closing code fence with no blank line before it (line 17293). Add one blank line. Commands run in a worktree at the exact head: - `python3 tests/docs_links_check.py`: passed, 24 files, 540 links. - `python3 tests/bidi_controls_check.py`: passed. - `git diff --check origin/main...HEAD`: clean. CI was still pending when I looked. No Win2025 run (docs only). AI-assisted; commands listed were executed locally.
chatgpt-codex-connector[bot commented 2026-11-26 09:04:54 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T08:30:27Z.


Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-26T08:30:24.516569Z
We couldn’t complete this review. Comment @codex review to try again.
ab60466 PR opened
ℹ️ 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7186676669 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2780#issuecomment-7186676669). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-26T08:30:27Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"ab60466073e361aed06e65a70434d4215fa09941","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-26T08:30:24.516569Z">2026-11-26T08:30:24.516569Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `ab60466` | PR opened | <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>
chatgpt-codex-connector[bot commented 2026-11-26 09:04:54 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T08:30:29Z.


You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7186677274 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2780#issuecomment-7186677274). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-26T08:30:29Z. --- You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage). To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your [settings](https://chatgpt.com/settings/code-review).
triggered02 commented 2026-11-26 09:04:55 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-26T09:00:48Z.


Thanks @tedin7. Added the blank line before the ## Design B ...\ heading and rebased onto current \main\ (\b46eb60). \docs_links_check.py\ (25 files / 540 links) and \git diff --check\ clean. Agreed on the merge gate: the host-commit 'combined four' row is a local measurement with #2767/#2770/#2773/#2775 applied together (the latter two still open), not a claim they are all on main; the matched retention pair and attribution are MasterDomino's and JB2WIN's #2379 reports. Someone who has run the title should confirm the numbers before merge.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7187301202 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2780#issuecomment-7187301202). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-26T09:00:48Z. --- Thanks @tedin7. Added the blank line before the \## Design B ...\ heading and rebased onto current \main\ (\b46eb60\). \docs_links_check.py\ (25 files / 540 links) and \git diff --check\ clean. Agreed on the merge gate: the host-commit 'combined four' row is a local measurement with #2767/#2770/#2773/#2775 applied together (the latter two still open), not a claim they are all on main; the matched retention pair and attribution are MasterDomino's and JB2WIN's #2379 reports. Someone who has run the title should confirm the numbers before merge.
upstream-sync closed this pull request 2026-11-26 10:03:57 +00:00
R0Y00 commented 2026-11-26 10:03:57 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T09:30:44Z.

Review: APPROVED


Reviewed the published measurement sources and the title-neutral docs at d49ae8cc. The RX 9070 XT matched pair, the separate ownership attribution, the 180 s main-only run and the 300 s combined experiment now link to their respective reports. The text labels the large-heap cap as opt-in and avoids assigning the combined delta to one patch. This is a documentation review of contributor reports. Local checks on this head were docs links (25 files / 540 links), bidirectional controls (2,024 tracked files), and git diff --check; all passed.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6071580544 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2780#pullrequestreview-6071580544). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T09:30:44Z. **Review:** APPROVED --- Reviewed the published measurement sources and the title-neutral docs at `d49ae8cc`. The RX 9070 XT matched pair, the separate ownership attribution, the 180 s main-only run and the 300 s combined experiment now link to their respective reports. The text labels the large-heap cap as opt-in and avoids assigning the combined delta to one patch. This is a documentation review of contributor reports. Local checks on this head were docs links (25 files / 540 links), bidirectional controls (2,024 tracked files), and `git diff --check`; all passed.
triggered02 commented 2026-11-26 10:04:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-26T09:12:13Z.


Title-run confirmation (@tedin7's merge gate): I ran the title locally on a 16 GiB host (GTX 1660 SUPER, 5,966 MiB VRAM, Windows 11, SysCommitLimit 22,931.8 MiB), release build, -Render -Translate -FakeUser -GpuMirror -LazyMemory, X2W_D3D12_BUDGET=1 X2W_D3D12_RELEASE_RETIRED=1 X2W_D3D12_RETIRE_REASONS=1.

  • main alone (d1b2be6a, merged #2767 + #2770, without the still-open #2773/#2775): 180 s window, 3,260 storage requests, 3,994 frames @ 23.6 fps, 0 device-removal / OOM / mapping-failure lines, host commit peak 11,053 MiB (10.79 GiB); x2w-budget non-local peak 4,066 MiB with heap 3,371 MiB (the multi-GiB OpenExistingHeapFromAddress pin #2775 targets) and texture 4,319 MiB.
  • baseline main before the memory series: commit peak 12,144 MiB, and an earlier 16 GiB run died at ~126 s on host-commit exhaustion (XMemMapPhysicalPages failed 1450/1455 -> AV).
  • combined four (#2767 + #2770 + #2773 + #2775 applied together locally, 300 s, 6,434 frames): commit peak 8,787 MiB, non-local 695 MiB, heap 0 MiB. This is the doc's 'combined four' row; #2775's cap was default-ON at measurement time and is now opt-in, so the default existing-heap pin returns until the copied-buffer consumer follow-up.

So the merged-fix portion and the baseline are confirmed by a fresh title run; the full 8,787 MiB combined figure depends on #2773/#2775 landing. The matched RX 9070 XT retention pair and the view-refs attribution remain MasterDomino's and JB2WIN's #2379 reports as cited.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7187587300 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2780#issuecomment-7187587300). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-26T09:12:13Z. --- Title-run confirmation (@tedin7's merge gate): I ran the title locally on a 16 GiB host (GTX 1660 SUPER, 5,966 MiB VRAM, Windows 11, SysCommitLimit 22,931.8 MiB), release build, `-Render -Translate -FakeUser -GpuMirror -LazyMemory`, `X2W_D3D12_BUDGET=1 X2W_D3D12_RELEASE_RETIRED=1 X2W_D3D12_RETIRE_REASONS=1`. - **main alone** (`d1b2be6a`, merged #2767 + #2770, without the still-open #2773/#2775): 180 s window, 3,260 storage requests, 3,994 frames @ 23.6 fps, **0 device-removal / OOM / mapping-failure lines**, host commit peak **11,053 MiB (10.79 GiB)**; `x2w-budget` non-local peak 4,066 MiB with `heap` 3,371 MiB (the multi-GiB `OpenExistingHeapFromAddress` pin #2775 targets) and texture 4,319 MiB. - **baseline main** before the memory series: commit peak 12,144 MiB, and an earlier 16 GiB run died at ~126 s on host-commit exhaustion (`XMemMapPhysicalPages failed` 1450/1455 -> AV). - **combined four** (#2767 + #2770 + #2773 + #2775 applied together locally, 300 s, 6,434 frames): commit peak **8,787 MiB**, non-local 695 MiB, `heap` 0 MiB. This is the doc's 'combined four' row; #2775's cap was default-ON at measurement time and is now opt-in, so the default existing-heap pin returns until the copied-buffer consumer follow-up. So the merged-fix portion and the baseline are confirmed by a fresh title run; the full 8,787 MiB combined figure depends on #2773/#2775 landing. The matched RX 9070 XT retention pair and the view-refs attribution remain MasterDomino's and JB2WIN's #2379 reports as cited.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2772
No description provided.