d3d12/docs: add Windows committed-memory, Series X page-file, and 8 GB GPU guide (PORT-NV-DOCS-8GB-AND-WINMEM) #3120

Merged
zmasi merged 6 commits from upstream-pr/3120 into main 2026-12-02 18:36:47 +00:00
zmasi commented 2026-12-02 12:09:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-02T12:09:16Z.


Claimed in the coordination issue as: PORT-NV-DOCS-8GB-AND-WINMEM (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7246121512, https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7344011304)

What and why

Ports the Windows committed-memory and 8 GB GPU troubleshooting guide (d3d12/docs/windows-memory.md and d3d12/README.md cross-references) from trustno1-coder/VIctory-NVIDIA (f8eab8b01f, 19cc6f0c21, 7448ece334, 1db4ceac3a by mattiolocoding, GPL-3.0-or-later) and incorporates the Series X / 48 GB RAM fixed page-file and residency.rs commit-throttle measurements reported in #3109 (AquariusD0312, noted by @GKEnev24 in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7344011304):

  • Windows committed-memory & page-file diagnostics: Explains why scene loads or open-world sessions can exit when Windows' Committed limit is reached even while physical RAM remains free, how to inspect Event Viewer Resource-Exhaustion-Detector event 2004, crashes.log (Windows commit limit reached), memory allocation of / left to commit runtime lines, and Get-CimInstance Win32_PageFileUsage.
  • Fixed page-file sizing for Series X on 48 GB RAM (#3109): Documents the measured open-world Series X commit footprint (~35 GB mapped title memory + ~4.4 GB host copies -> 58.8 GB total system commit), why Windows' ~5 GB automatic page file on a 48 GB PC (52.8 GB commit limit) runs out before d3d12/crates/leonida-gpu/src/residency.rs (4 GiB pressure, < 1.5 GiB critical, 1,024 / 512 / 256 MiB reserves) can throttle speculative texture work, and how a fixed 32 GB (32768 MB) page file raised the commit limit to 79.8 GB (20,040 MB lowest remaining commit, 0 pressured samples).
  • 8 GB GPU starting profile & 32 GB RAM reproduction: Normalizes the Series S 540p starting command (.\d3d12\scripts\play-nvidia.ps1 -Exe <...> -Resolution 540 -NoFrameGen -NoSmoothMotion -More @{LEONIDA_FPS_CAP='30'}) and documents LEONIDA_PIPELINE_WORKERS, LEONIDA_CARD_ROOM_FOR_TARGETS_MB, LEONIDA_WINDOWS_BAR_MB / -WindowsBarMB, LEONIDA_THIN, and LEONIDA_JOIN_PARTS alongside the measured 32 GB RAM / RTX 3060 Ti 8 GB reproduction.
  • d3d12/README.md cross-references & credit: Adds the docs/windows-memory.md table entry, troubleshooting link, and mattiolocoding credit.

Tested

  • python -I scripts/check_no_game_data.py d3d12/docs/windows-memory.md d3d12/README.md (pass)
  • python -I tests/test_text_write_line_endings.py and python -I tests/test_i18n_index.py (pass)
  • All 13 tests/test_docs_*.py suites (adjacent_fenced_blocks, cli_flags, design_rows, encoding, env_vars, links, list_items, pr_template, python_deps, repeated_lines, repo_paths, table_ids, table_rows) (all pass)
  • .\d3d12\scripts\play-nvidia.ps1 ... -More @{LEONIDA_FPS_CAP='30'} -DryRun on Windows 11 PowerShell to verify [hashtable]$More binding (LEONIDA_FPS_CAP = 30)

GPUs tested: n/a (documentation and launcher -DryRun verification on Windows 11 Pro 10.0.26200, NVIDIA GeForce RTX 3090 24 GB driver 610.88)

AI-assisted: yes — authored with Gemini 4 Carbon (High) (building on an earlier port commit and mattiolocoding / AquariusD0312 measurements) and independently reviewed in a separate read-only pass by Gemini 4 Neon (XHigh) (opus-systems-critic, which caught and verified the PowerShell -More @{...} invocation syntax and XMemMapPhysicalPages / -WindowsBarMB details).

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5606077491 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3120). Originally posted by [zmasi](https://github.com/zmasi) on 2026-12-02T12:09:16Z. --- Claimed in the coordination issue as: `PORT-NV-DOCS-8GB-AND-WINMEM` (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7246121512, https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7344011304) ### What and why Ports the Windows committed-memory and 8 GB GPU troubleshooting guide (`d3d12/docs/windows-memory.md` and `d3d12/README.md` cross-references) from `trustno1-coder/VIctory-NVIDIA` (`f8eab8b01f`, `19cc6f0c21`, `7448ece334`, `1db4ceac3a` by `mattiolocoding`, GPL-3.0-or-later) and incorporates the Series X / 48 GB RAM fixed page-file and `residency.rs` commit-throttle measurements reported in #3109 (`AquariusD0312`, noted by `@GKEnev24` in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7344011304): - **Windows committed-memory & page-file diagnostics:** Explains why scene loads or open-world sessions can exit when Windows' **Committed** limit is reached even while physical RAM remains free, how to inspect Event Viewer `Resource-Exhaustion-Detector` event `2004`, `crashes.log` (`Windows commit limit reached`), `memory allocation of` / `left to commit` runtime lines, and `Get-CimInstance Win32_PageFileUsage`. - **Fixed page-file sizing for Series X on 48 GB RAM (#3109):** Documents the measured open-world Series X commit footprint (`~35 GB` mapped title memory + `~4.4 GB` host copies -> `58.8 GB` total system commit), why Windows' `~5 GB` automatic page file on a 48 GB PC (`52.8 GB` commit limit) runs out before `d3d12/crates/leonida-gpu/src/residency.rs` (`4 GiB` pressure, `< 1.5 GiB` critical, `1,024` / `512` / `256 MiB` reserves) can throttle speculative texture work, and how a fixed `32 GB` (`32768` MB) page file raised the commit limit to `79.8 GB` (`20,040 MB` lowest remaining commit, `0` pressured samples). - **8 GB GPU starting profile & 32 GB RAM reproduction:** Normalizes the Series S 540p starting command (`.\d3d12\scripts\play-nvidia.ps1 -Exe <...> -Resolution 540 -NoFrameGen -NoSmoothMotion -More @{LEONIDA_FPS_CAP='30'}`) and documents `LEONIDA_PIPELINE_WORKERS`, `LEONIDA_CARD_ROOM_FOR_TARGETS_MB`, `LEONIDA_WINDOWS_BAR_MB` / `-WindowsBarMB`, `LEONIDA_THIN`, and `LEONIDA_JOIN_PARTS` alongside the measured 32 GB RAM / RTX 3060 Ti 8 GB reproduction. - **`d3d12/README.md` cross-references & credit:** Adds the `docs/windows-memory.md` table entry, troubleshooting link, and `mattiolocoding` credit. ### Tested - `python -I scripts/check_no_game_data.py d3d12/docs/windows-memory.md d3d12/README.md` (pass) - `python -I tests/test_text_write_line_endings.py` and `python -I tests/test_i18n_index.py` (pass) - All 13 `tests/test_docs_*.py` suites (`adjacent_fenced_blocks`, `cli_flags`, `design_rows`, `encoding`, `env_vars`, `links`, `list_items`, `pr_template`, `python_deps`, `repeated_lines`, `repo_paths`, `table_ids`, `table_rows`) (all pass) - `.\d3d12\scripts\play-nvidia.ps1 ... -More @{LEONIDA_FPS_CAP='30'} -DryRun` on Windows 11 PowerShell to verify `[hashtable]$More` binding (`LEONIDA_FPS_CAP = 30`) GPUs tested: n/a (documentation and launcher `-DryRun` verification on Windows 11 Pro `10.0.26200`, NVIDIA GeForce RTX 3090 24 GB driver `610.88`) AI-assisted: yes — authored with Gemini 4 Carbon (High) (building on an earlier port commit and `mattiolocoding` / `AquariusD0312` measurements) and independently reviewed in a separate read-only pass by Gemini 4 Neon (XHigh) (`opus-systems-critic`, which caught and verified the PowerShell `-More @{...}` invocation syntax and `XMemMapPhysicalPages` / `-WindowsBarMB` details). ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed.
MoonEyes commented 2026-12-02 18:00:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:00:13Z.


Verified on Linux (Python 3.13.18): head 155719f27 merged into current main 45dc41f95 (clean merge, throwaway detached tree). Documentation only. Ready.

merge base 9b4d71899 (125 commits behind main), merge into 45dc41f95: no conflicts (d3d12/README.md auto-merged)
python -m unittest discover -s tests -p "test_docs_*.py"     Ran 57 tests in 418.5s, OK
python -I scripts/check_no_game_data.py d3d12/README.md d3d12/docs/windows-memory.md   exit 0

No red/green applies (no code, no new test).

Claims checked against the code on the merge:

  • residency.rs thresholds quoted in windows-memory.md match: pressure at commit <= 4 * GIB (next_pressure, residency.rs:180-186), critical below 1536 * MIB (critical_commit, :238-240), and the reserves 1024 * MIB / 512 * MIB / 256 * MIB (has_growth_reserve and has_upload_reserve, :59-71).
  • LEONIDA_CARD_ROOM_FOR_TARGETS_MB default 3,072 (resource.rs:2196), and the launcher's LEONIDA_WINDOWS_BAR_MB=3072 default on PCs under 48 GB with at least 6 GB of VRAM (play-nvidia.ps1:59-60).
  • The sample command's switches exist on play-nvidia.ps1 (-Exe mandatory, -Resolution with 540 in its ValidateSet, -NoFrameGen, -NoSmoothMotion, -DryRun, -More), and -Resolution turns DLSS off by itself ($wantDlss, play-nvidia.ps1:119), consistent with "the title's upscaler at 540p".

Notes (non-blocking):

  • The 48 GB / 32 GB page-file figures and the 8 GB RTX 3060 Ti section are single-machine reports, and the doc says so; the black-cutscene table is not a fix, it is an open observation. That is the right framing for docs/.
  • The new README row and windows-memory.md link external forks' issues and PRs; that is consistent with the credits section's existing practice, and the GPL-3.0 provenance is named.
  • windows-memory.md uses a few em dashes; the rest of d3d12/docs mostly does not, but no docs test enforces it.

Verdict: ready.

AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7353850412 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3120#issuecomment-7353850412). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:00:13Z. --- **Verified on Linux (Python 3.13.18): head `155719f27` merged into current `main` `45dc41f95` (clean merge, throwaway detached tree). Documentation only. Ready.** ``` merge base 9b4d71899 (125 commits behind main), merge into 45dc41f95: no conflicts (d3d12/README.md auto-merged) python -m unittest discover -s tests -p "test_docs_*.py" Ran 57 tests in 418.5s, OK python -I scripts/check_no_game_data.py d3d12/README.md d3d12/docs/windows-memory.md exit 0 ``` No red/green applies (no code, no new test). **Claims checked against the code on the merge:** - `residency.rs` thresholds quoted in `windows-memory.md` match: pressure at `commit <= 4 * GIB` (`next_pressure`, `residency.rs:180-186`), critical below `1536 * MIB` (`critical_commit`, `:238-240`), and the reserves `1024 * MIB` / `512 * MIB` / `256 * MIB` (`has_growth_reserve` and `has_upload_reserve`, `:59-71`). - `LEONIDA_CARD_ROOM_FOR_TARGETS_MB` default 3,072 (`resource.rs:2196`), and the launcher's `LEONIDA_WINDOWS_BAR_MB=3072` default on PCs under 48 GB with at least 6 GB of VRAM (`play-nvidia.ps1:59-60`). - The sample command's switches exist on `play-nvidia.ps1` (`-Exe` mandatory, `-Resolution` with `540` in its `ValidateSet`, `-NoFrameGen`, `-NoSmoothMotion`, `-DryRun`, `-More`), and `-Resolution` turns DLSS off by itself (`$wantDlss`, `play-nvidia.ps1:119`), consistent with "the title's upscaler at 540p". **Notes (non-blocking):** - The 48 GB / 32 GB page-file figures and the 8 GB RTX 3060 Ti section are single-machine reports, and the doc says so; the black-cutscene table is not a fix, it is an open observation. That is the right framing for `docs/`. - The new README row and `windows-memory.md` link external forks' issues and PRs; that is consistent with the credits section's existing practice, and the GPL-3.0 provenance is named. - `windows-memory.md` uses a few em dashes; the rest of `d3d12/docs` mostly does not, but no docs test enforces it. **Verdict: ready.** AI-assisted verification: Claude Opus (Claude Code), separate agent per batch. --- _Generated by [Claude Code](https://claude.ai/code)_
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
ProjectLeonida/mandy!3120
No description provided.