docs: record design B retention pressure and the 16 GiB commit reduction #2772
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2780"
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?
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
Release()+ completed fences retire prior references/submissions but a live slot stays reboundable; slice 3 ended with #2719;X2W_D3D12_RELEASE_RETIRED_VIEWSis diagnostic-only. The retained bytes are intended pressure, not a reclamation bug.main6b9fb9d9, one release build, onlyX2W_D3D12_RELEASE_RETIREDdiffers, 600 s window. Off: access violation at 490.7 s after 8x0x8007000e, 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.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.X2W_D3D12_RETIRE_REASONS=1->retire_reasons_lineHeldcategories 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), plusleft-class:*/never-class:*,total,unattributed. A current GTX 1660 SUPER line is quoted.-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 KiBbuffers,MEM_MAPPEDduplicates).No game names, paths, dumps, or captures; adapters and aggregate counters only.
Verified (
ab604660, fromorigin/main96a7b4fb)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
AI-assisted.
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:Heldnames in the doc match theheld_names[]array insrc/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-heapis also in the heartbeat line.X2W_D3D12_RETIRE_REASONSis read in that file, andX2W_D3D12_RELEASE_RETIRED_VIEWSis still referenced there.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.
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.
We couldn’t complete this review. Comment
@codex reviewto try again.ab60466ℹ️ 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.
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.
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.
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), andgit diff --check; all passed.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.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-budgetnon-local peak 4,066 MiB withheap3,371 MiB (the multi-GiBOpenExistingHeapFromAddresspin #2775 targets) and texture 4,319 MiB.XMemMapPhysicalPages failed1450/1455 -> AV).heap0 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.