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

Manually merged
github merged 6 commits from github-bot/gh-3120 into main 2026-12-02 18:42:01 +00:00 AGit
Owner

@⁠zmasi on GitHub · 2026-12-02 12:09 UTC · original
zmasi:docs/d3d12-port-nv-docs-8gb-and-winmem → main · +163 −0 · 2 files · 6 commits · merged 2026-12-02 18:36 UTC

Claimed in the coordination issue as: PORT-NV-DOCS-8GB-AND-WINMEM (#2570, #2570)

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 #2570):

  • 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.
**@⁠zmasi** on GitHub · 2026-12-02 12:09 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3120) `zmasi:docs/d3d12-port-nv-docs-8gb-and-winmem` → `main` · +163 −0 · 2 files · 6 commits · merged 2026-12-02 18:36 UTC Claimed in the coordination issue as: `PORT-NV-DOCS-8GB-AND-WINMEM` (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/2570, https://git.gtahub.st/github/ubiquitarianism--leonida/issues/2570) ### 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://git.gtahub.st/github/ubiquitarianism--leonida/issues/2570): - **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.
Port docs/windows-memory.md and README cross-references from
trustno1-coder/VIctory-NVIDIA commits f8eab8b01f, 19cc6f0c21,
7448ece334, and 1db4ceac3a (GPL-3.0-or-later), adapted to Leonida's
launcher flags and LEONIDA_* environment variables.

Co-authored-by: mattiolocoding <[email protected]>
# Conflicts:
#	d3d12/README.md
Forward-merges origin/main cleanly into d3d12/README.md, documents the
measured Series X 58.8 GB commit footprint and fixed 32 GB page-file sizing
on 48 GB RAM hosts from #3109 alongside residency.rs commit-reserve behavior,
and switches the 8 GB starting command to direct PowerShell invocation so
[hashtable]$More binds without stringification.

Co-authored-by: mattiolocoding <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 12:11:32 +00:00
github manually merged commit f1a5598515 into main 2026-12-02 18:42:01 +00:00
Author
Owner

@⁠MoonEyes on GitHub · 2026-12-02 18:00 UTC · original

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

**@⁠MoonEyes** on GitHub · 2026-12-02 18:00 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3120#issuecomment-7353850412) **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)_
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!3120
No description provided.