d3d12 launcher: 16 GB PCs keep title memory windows on the card up to 95 % of its budget (D3D12-16GB-WINDOWS-BAR-LINE) #3002

Closed
valenciana-nc wants to merge 2 commits from upstream-pr/3002 into main
valenciana-nc commented 2026-12-01 23:07:18 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by valenciana-nc on 2026-12-01T23:07:18Z.


Claimed in the coordination issue as: D3D12-16GB-WINDOWS-BAR-LINE (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7328510123)

Depends on: none

Related: draft #2658 (8 GB over-budget guard, measured on an RTX 3060 Ti 8 GB with 16 GB RAM) deals with the same 8 GB card / 16 GB RAM case from the card's side. This PR only changes the launcher's windows line and does not depend on it.

What and why

When a windows cap is set (the launcher's own LEONIDA_WINDOWS_BAR_MB=3072, or -WindowsBarMB other than 0), d3d12/scripts/play-nvidia.ps1 now also sets LEONIDA_WINDOWS_BAR_LINE=95 on PCs with 16 GB of RAM or less (under 20 GB as Windows counts it; this PC reads 15.6 GB) and a card known to have 8 GB or more. The card check is 7 GB and up by the driver's HardwareInformation.qwMemorySize, because the RTX 4060 Laptop GPU reads 8,188 MiB.

The runtime's default line is 80 (clamped to 50-97, shadow.rs window_mapped_line()). Title memory windows go to the card's CPU-mapped GPU_UPLOAD memory only while the card's memory in use plus the window stays under that share of its budget; otherwise they stay in the PC's memory. On a 16 GB PC the PC's memory runs out before the card's: at 80 the refused windows stay in RAM, free memory drops to tens or a few hundred MB, and frames stall.

  • PCs of 20 GB and more, 6 GB cards and cards of unknown size keep 80 (not measured).
  • -More @{LEONIDA_WINDOWS_BAR_LINE='80'} keeps 80, because -More is applied after the launcher's settings and the F1 menu's.
  • Also updated: the 16 GB note in d3d12/README.md, a new section in d3d12/docs/findings.md ("The windows' line on a 16 GB PC"), and the one switches.md row, written as tools/d3d12_switches.py generates it.

Setup:

  • PC: i7-13650HX, RTX 4060 Laptop GPU 8 GB, resizable BAR on (BAR1 8192 MiB), PCIe 4.0 x8, 16 GB RAM.
  • Start: scripts\play-d3d12.ps1 -SeriesS -Resolution 540 -NoDlss -NoFrameGen, diagnostics build of main 1fff691, the same save restored before each start.
  • Measured: 200 s from reaching the world, the first 20 s left out, a frame line about every 5 s.
  • Separate runs, because the runtime reads the line once (OnceLock), so LEONIDA_AB cannot switch it during a run.
  • Sides: A = launcher default (line 80), B = LEONIDA_WINDOWS_BAR_LINE=95, run in the order A B B A A B B A.
Run Side Median ms p90 ms Worst ms Frame lines > 100 ms
1 A 42.5 82.3 944.5 1 of 29
2 B 39.4 59.0 94.2 0 of 28
3 B 39.6 79.6 1057.7 2 of 28
4 A 47.1 628.0 750.0 6 of 28
5 A 52.9 607.9 2775.9 7 of 27
6 B 42.6 60.6 79.1 0 of 28
7 B 40.6 96.9 235.2 2 of 28
8 A 43.0 79.3 486.2 2 of 32

Frame times:

  • Pairs (A minus B, median): +3.1, +7.5, +10.3 and +2.4 ms. On average B's median was 5.8 ms lower (±1.9 standard error), and B was lower in all four pairs.
  • Frame lines over 100 ms: A 16 of 116, B 4 of 112.

Memory:

A (line 80) B (line 95)
PC free physical memory, lowest 39-278 MB 150-304 MB
Card memory shared with the PC, highest 4.27-4.53 GB 3.88-3.92 GB
Card's own memory in use, highest (budget about 7.1 GB) 6.80-6.90 GB 6.97-7.14 GB

With 95 the card runs at about 100 % of its budget.

Textures (counted at each run's end, runs 2-8):

A (line 80) B (line 95)
Host copies let go 91,800-92,558 93,430-96,511
Host copies made again 22,597-22,893 23,867-26,430
Host copies alive 9,025-9,109 (676-716 MB) 9,273-11,699 (698-771 MB)

So B let go about 3 % more texture copies and made about 10 % more again, with slightly more alive. The picture was not compared between the two settings.

LEONIDA_CARD_BUFFERS_MB=512 instead of 1536 (one run) was far worse: median 115.9 ms, with the card 95 % busy.

Not measured: PCs under 16 GB or of 20-47 GB, other cards, AMD.

Tested

  • python -I tests/test_win_launchers.py, new test test_nvidia_windows_bar_line_on_16_gb_pcs_with_8_gb_cards. RAM and card memory are mocked at what this PC reads (16,003 and 8,188 MiB). Cases:
    • 16 GB RAM, 8 GB card: line 95, cap 3072
    • the same with -More line 80: line 80
    • 32 GB RAM: cap 3072, no line
    • 6 GB card: cap 3072, no line
    • explicit -WindowsBarMB 3072: line 95
    • -WindowsBarMB 0: no line
    • RAM unknown: no line
    • card size unknown: no line
  • The shared PowerShell setup is now a helper, which the motion-blur test uses too.
  • Red/green: the new test fails with only d3d12/scripts/play-nvidia.ps1 taken from main (None != '95') and passes with the change. Done by hand: scripts/red_green.py would have put its worktree inside the user's play checkout.
  • python -m unittest discover -s tests -p "test_docs_*.py" passes. python -I tests/test_d3d12_switches.py passes (20 tests). python -I scripts/check_no_game_data.py on the changed files is clean.
  • The A/B runs above, in the game.
  • Tested under Windows PowerShell 5.1 only; pwsh 7 is not installed on this PC.

GPUs tested: NVIDIA GeForce RTX 4060 Laptop GPU 8 GB, driver 610.62, Windows 11 Home, i7-13650HX, 16 GB RAM

AI-assisted: yes. Claude Opus 5.5 led and implemented the change. A separate read-only reviewer agent, also Claude Opus 5.5, audited the diff twice; everything it marked as a blocker or should-fix was addressed.

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. (n/a)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5596296686 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3002). Originally posted by [valenciana-nc](https://github.com/valenciana-nc) on 2026-12-01T23:07:18Z. --- Claimed in the coordination issue as: D3D12-16GB-WINDOWS-BAR-LINE (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7328510123) Depends on: none Related: draft #2658 (8 GB over-budget guard, measured on an RTX 3060 Ti 8 GB with 16 GB RAM) deals with the same 8 GB card / 16 GB RAM case from the card's side. This PR only changes the launcher's windows line and does not depend on it. ### What and why When a windows cap is set (the launcher's own `LEONIDA_WINDOWS_BAR_MB=3072`, or `-WindowsBarMB` other than 0), `d3d12/scripts/play-nvidia.ps1` now also sets `LEONIDA_WINDOWS_BAR_LINE=95` on PCs with 16 GB of RAM or less (under 20 GB as Windows counts it; this PC reads 15.6 GB) and a card known to have 8 GB or more. The card check is 7 GB and up by the driver's `HardwareInformation.qwMemorySize`, because the RTX 4060 Laptop GPU reads 8,188 MiB. The runtime's default line is 80 (clamped to 50-97, `shadow.rs` `window_mapped_line()`). Title memory windows go to the card's CPU-mapped GPU_UPLOAD memory only while the card's memory in use plus the window stays under that share of its budget; otherwise they stay in the PC's memory. On a 16 GB PC the PC's memory runs out before the card's: at 80 the refused windows stay in RAM, free memory drops to tens or a few hundred MB, and frames stall. - PCs of 20 GB and more, 6 GB cards and cards of unknown size keep 80 (not measured). - `-More @{LEONIDA_WINDOWS_BAR_LINE='80'}` keeps 80, because `-More` is applied after the launcher's settings and the F1 menu's. - Also updated: the 16 GB note in `d3d12/README.md`, a new section in `d3d12/docs/findings.md` ("The windows' line on a 16 GB PC"), and the one `switches.md` row, written as `tools/d3d12_switches.py` generates it. **Setup:** - **PC:** i7-13650HX, RTX 4060 Laptop GPU 8 GB, resizable BAR on (BAR1 8192 MiB), PCIe 4.0 x8, 16 GB RAM. - **Start:** `scripts\play-d3d12.ps1 -SeriesS -Resolution 540 -NoDlss -NoFrameGen`, diagnostics build of main 1fff691, the same save restored before each start. - **Measured:** 200 s from reaching the world, the first 20 s left out, a frame line about every 5 s. - **Separate runs**, because the runtime reads the line once (OnceLock), so `LEONIDA_AB` cannot switch it during a run. - **Sides:** A = launcher default (line 80), B = `LEONIDA_WINDOWS_BAR_LINE=95`, run in the order A B B A A B B A. | Run | Side | Median ms | p90 ms | Worst ms | Frame lines > 100 ms | |---|---|---|---|---|---| | 1 | A | 42.5 | 82.3 | 944.5 | 1 of 29 | | 2 | B | 39.4 | 59.0 | 94.2 | 0 of 28 | | 3 | B | 39.6 | 79.6 | 1057.7 | 2 of 28 | | 4 | A | 47.1 | 628.0 | 750.0 | 6 of 28 | | 5 | A | 52.9 | 607.9 | 2775.9 | 7 of 27 | | 6 | B | 42.6 | 60.6 | 79.1 | 0 of 28 | | 7 | B | 40.6 | 96.9 | 235.2 | 2 of 28 | | 8 | A | 43.0 | 79.3 | 486.2 | 2 of 32 | **Frame times:** - **Pairs (A minus B, median):** +3.1, +7.5, +10.3 and +2.4 ms. On average B's median was 5.8 ms lower (±1.9 standard error), and B was lower in all four pairs. - **Frame lines over 100 ms:** A 16 of 116, B 4 of 112. **Memory:** | | A (line 80) | B (line 95) | |---|---|---| | PC free physical memory, lowest | 39-278 MB | 150-304 MB | | Card memory shared with the PC, highest | 4.27-4.53 GB | 3.88-3.92 GB | | Card's own memory in use, highest (budget about 7.1 GB) | 6.80-6.90 GB | 6.97-7.14 GB | With 95 the card runs at about 100 % of its budget. **Textures** (counted at each run's end, runs 2-8): | | A (line 80) | B (line 95) | |---|---|---| | Host copies let go | 91,800-92,558 | 93,430-96,511 | | Host copies made again | 22,597-22,893 | 23,867-26,430 | | Host copies alive | 9,025-9,109 (676-716 MB) | 9,273-11,699 (698-771 MB) | So B let go about 3 % more texture copies and made about 10 % more again, with slightly more alive. The picture was not compared between the two settings. `LEONIDA_CARD_BUFFERS_MB=512` instead of 1536 (one run) was far worse: median 115.9 ms, with the card 95 % busy. Not measured: PCs under 16 GB or of 20-47 GB, other cards, AMD. ### Tested - `python -I tests/test_win_launchers.py`, new test `test_nvidia_windows_bar_line_on_16_gb_pcs_with_8_gb_cards`. RAM and card memory are mocked at what this PC reads (16,003 and 8,188 MiB). Cases: - 16 GB RAM, 8 GB card: line 95, cap 3072 - the same with `-More` line 80: line 80 - 32 GB RAM: cap 3072, no line - 6 GB card: cap 3072, no line - explicit `-WindowsBarMB 3072`: line 95 - `-WindowsBarMB 0`: no line - RAM unknown: no line - card size unknown: no line - The shared PowerShell setup is now a helper, which the motion-blur test uses too. - Red/green: the new test fails with only `d3d12/scripts/play-nvidia.ps1` taken from main (`None != '95'`) and passes with the change. Done by hand: `scripts/red_green.py` would have put its worktree inside the user's play checkout. - `python -m unittest discover -s tests -p "test_docs_*.py"` passes. `python -I tests/test_d3d12_switches.py` passes (20 tests). `python -I scripts/check_no_game_data.py` on the changed files is clean. - The A/B runs above, in the game. - Tested under Windows PowerShell 5.1 only; pwsh 7 is not installed on this PC. GPUs tested: NVIDIA GeForce RTX 4060 Laptop GPU 8 GB, driver 610.62, Windows 11 Home, i7-13650HX, 16 GB RAM AI-assisted: yes. Claude Opus 5.5 led and implemented the change. A separate read-only reviewer agent, also Claude Opus 5.5, audited the diff twice; everything it marked as a blocker or should-fix was addressed. ### 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. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a)
andrew-ai commented 2026-12-01 23:10:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T23:10:33Z.


The new line default is calculated before the final window cap is known. Using this PR's launcher dry-run fixture (16003 MiB RAM, 8188 MiB VRAM) at f777fd432:

-WindowsBarMB Cap from -More Final cap (MiB) Final line
3072 absent 3072 95
0 3072 3072 unset (runtime 80)
0 absent 0 unset
3072 0 0 95

The second invocation enables the same 3072 MiB cap as the first through the documented higher-priority option, yet misses the new 95 percent default. Computing that default after the cap overrides have been applied, only if the line itself is still unset, would preserve an explicit line override. These were synthetic settings checks without a game or a performance measurement. Codex-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328949714 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3002#issuecomment-7328949714). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-01T23:10:33Z. --- The new line default is calculated before the final window cap is known. Using this PR's launcher dry-run fixture (16003 MiB RAM, 8188 MiB VRAM) at f777fd432: | -WindowsBarMB | Cap from -More | Final cap (MiB) | Final line | | ---: | ---: | ---: | ---: | | 3072 | absent | 3072 | 95 | | 0 | 3072 | 3072 | unset (runtime 80) | | 0 | absent | 0 | unset | | 3072 | 0 | 0 | 95 | The second invocation enables the same 3072 MiB cap as the first through the documented higher-priority option, yet misses the new 95 percent default. Computing that default after the cap overrides have been applied, only if the line itself is still unset, would preserve an explicit line override. These were synthetic settings checks without a game or a performance measurement. Codex-assisted.
merzleckeier commented 2026-12-01 23:17:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T23:17:05Z.


Saved F1 values and actual restart arguments show two more ways to miss the intended limit.

I used the PR’s PowerShell dry-run fixture at f777fd432 on 913b88b90 with 16,003 MiB RAM and 8,188 MiB VRAM, and repeated it with #2761 layered in. The results match in both trees.

Invocation or saved setting Final cap Final line
Defaults 3072 MiB 95
leonida-settings.txt sets LEONIDA_WINDOWS_BAR_MB=0 0 MiB 95 (inactive)
-MenuRestart -WindowsBarMB 0 with LEONIDA_WINDOWS_BAR_MB=3072 in the saved file 3072 MiB unset (runtime 80)
Saved explicit LEONIDA_WINDOWS_BAR_LINE=80 3072 MiB 80

I also replayed the exact LEONIDA_MENU_ARGS emitted for -More @{LEONIDA_WINDOWS_BAR_LINE="80"}. With no saved line, the first dry run gives 80 and the replay gives 95 at the same cap. The existing restart argument builder omits -More. On the #2761-only control the same replay falls back to the runtime’s 80, so the new default makes that existing omission visible. The real launcher clears inherited LEONIDA_* settings apart from its path allowlist before setting the new values. The saved-cap path needs the final cap to be known, and preserving an explicit line across restart is a separate issue. Synthetic configuration only. AI-assisted with OpenAI Codex and independent raw-result verification.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7329155156 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3002#issuecomment-7329155156). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T23:17:05Z. --- Saved F1 values and actual restart arguments show two more ways to miss the intended limit. I used the PR’s PowerShell dry-run fixture at `f777fd432` on `913b88b90` with 16,003 MiB RAM and 8,188 MiB VRAM, and repeated it with #2761 layered in. The results match in both trees. | Invocation or saved setting | Final cap | Final line | | --- | ---: | ---: | | Defaults | 3072 MiB | 95 | | `leonida-settings.txt` sets `LEONIDA_WINDOWS_BAR_MB=0` | 0 MiB | 95 (inactive) | | `-MenuRestart -WindowsBarMB 0` with `LEONIDA_WINDOWS_BAR_MB=3072` in the saved file | 3072 MiB | unset (runtime 80) | | Saved explicit `LEONIDA_WINDOWS_BAR_LINE=80` | 3072 MiB | 80 | I also replayed the exact `LEONIDA_MENU_ARGS` emitted for `-More @{LEONIDA_WINDOWS_BAR_LINE="80"}`. With no saved line, the first dry run gives 80 and the replay gives 95 at the same cap. The existing restart argument builder omits `-More`. On the #2761-only control the same replay falls back to the runtime’s 80, so the new default makes that existing omission visible. The real launcher clears inherited `LEONIDA_*` settings apart from its path allowlist before setting the new values. The saved-cap path needs the final cap to be known, and preserving an explicit line across restart is a separate issue. Synthetic configuration only. AI-assisted with OpenAI Codex and independent raw-result verification.
valenciana-nc commented 2026-12-02 00:31:00 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by valenciana-nc on 2026-12-02T00:31:00Z.


Thanks @andrew-ai and @merzleckeier, both right: the line was decided before the final cap was known. Fixed in 09c9e9bc8.

The 95 line is now decided after the launcher's settings, the F1 menu file and -More are merged. It is set only when the final LEONIDA_WINDOWS_BAR_MB is a whole number above 0 (as shadow.rs reads it) and neither -More nor the menu file names LEONIDA_WINDOWS_BAR_LINE. An empty value there unsets it to the runtime's 80, as for any setting. The decided line is never written to leonida-settings.txt: the launcher writes that file only from the file's own values, and the runtime's menu saves only its own items.

New test rows in tests/test_win_launchers.py (16,003 MiB RAM, 8,188 MiB card; cap / line):

Invocation or saved setting f777fd432 now
-WindowsBarMB 0 -More @{LEONIDA_WINDOWS_BAR_MB='3072'} 3072 / unset 3072 / 95
-WindowsBarMB 3072 -More @{LEONIDA_WINDOWS_BAR_MB='0'} 0 / 95 0 / unset
saved LEONIDA_WINDOWS_BAR_MB=0 0 / 95 0 / unset
-MenuRestart -WindowsBarMB 0, saved LEONIDA_WINDOWS_BAR_MB=3072 3072 / unset 3072 / 95
saved LEONIDA_WINDOWS_BAR_LINE=80 3072 / 80 3072 / 80
saved LEONIDA_WINDOWS_BAR_LINE= (empty) 3072 / unset 3072 / unset
-More @{LEONIDA_WINDOWS_BAR_LINE='80'} 3072 / 80 3072 / 80

The restart replay dropping -More affects every -More setting and was there before this PR, so it is left out of this one and filed as a finding: https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7330645115. The README now says the line in leonida-settings.txt is the opt-out that lasts across restarts; -More holds for one start.

Tested: python -I tests/test_win_launchers.py (the test fails on f777fd432 and on main, passes now), test_docs_*, test_d3d12_switches.py, check_no_game_data.py. Synthetic settings only, no game run.

AI-assisted: Claude Opus 5.5; reviewed by a separate read-only Claude Opus 5.5 agent.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7330648767 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3002#issuecomment-7330648767). Originally posted by [valenciana-nc](https://github.com/valenciana-nc) on 2026-12-02T00:31:00Z. --- Thanks @andrew-ai and @merzleckeier, both right: the line was decided before the final cap was known. Fixed in 09c9e9bc8. The 95 line is now decided after the launcher's settings, the F1 menu file and `-More` are merged. It is set only when the final `LEONIDA_WINDOWS_BAR_MB` is a whole number above 0 (as `shadow.rs` reads it) and neither `-More` nor the menu file names `LEONIDA_WINDOWS_BAR_LINE`. An empty value there unsets it to the runtime's 80, as for any setting. The decided line is never written to `leonida-settings.txt`: the launcher writes that file only from the file's own values, and the runtime's menu saves only its own items. New test rows in `tests/test_win_launchers.py` (16,003 MiB RAM, 8,188 MiB card; cap / line): | Invocation or saved setting | f777fd432 | now | | --- | --- | --- | | `-WindowsBarMB 0 -More @{LEONIDA_WINDOWS_BAR_MB='3072'}` | 3072 / unset | 3072 / 95 | | `-WindowsBarMB 3072 -More @{LEONIDA_WINDOWS_BAR_MB='0'}` | 0 / 95 | 0 / unset | | saved `LEONIDA_WINDOWS_BAR_MB=0` | 0 / 95 | 0 / unset | | `-MenuRestart -WindowsBarMB 0`, saved `LEONIDA_WINDOWS_BAR_MB=3072` | 3072 / unset | 3072 / 95 | | saved `LEONIDA_WINDOWS_BAR_LINE=80` | 3072 / 80 | 3072 / 80 | | saved `LEONIDA_WINDOWS_BAR_LINE=` (empty) | 3072 / unset | 3072 / unset | | `-More @{LEONIDA_WINDOWS_BAR_LINE='80'}` | 3072 / 80 | 3072 / 80 | The restart replay dropping `-More` affects every `-More` setting and was there before this PR, so it is left out of this one and filed as a finding: https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7330645115. The README now says the line in `leonida-settings.txt` is the opt-out that lasts across restarts; `-More` holds for one start. Tested: `python -I tests/test_win_launchers.py` (the test fails on f777fd432 and on main, passes now), `test_docs_*`, `test_d3d12_switches.py`, `check_no_game_data.py`. Synthetic settings only, no game run. AI-assisted: Claude Opus 5.5; reviewed by a separate read-only Claude Opus 5.5 agent.
andrew-ai commented 2026-12-02 00:36:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-02T00:36:17Z.


Rechecked 09c9e9bc8 on Windows. The 14-case launcher test passes. I also supplied conflicting menu-file and -More values in the same dry run using the 16003 MiB RAM / 8188 MiB VRAM fixture. A saved cap of 0 overridden to 3072 produced line 95. A saved cap of 3072 overridden to 0 left the line unset. A saved line of 82 overridden to 87 produced 87. This resolves my cap-precedence finding for a single launch. These checks exercised settings only. Codex-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7330752109 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3002#issuecomment-7330752109). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-02T00:36:17Z. --- Rechecked 09c9e9bc8 on Windows. The 14-case launcher test passes. I also supplied conflicting menu-file and -More values in the same dry run using the 16003 MiB RAM / 8188 MiB VRAM fixture. A saved cap of 0 overridden to 3072 produced line 95. A saved cap of 3072 overridden to 0 left the line unset. A saved line of 82 overridden to 87 produced 87. This resolves my cap-precedence finding for a single launch. These checks exercised settings only. Codex-assisted.
Krashgamer commented 2026-12-02 03:35:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Krashgamer on 2026-12-02T03:35:01Z.


Heads-up from #3035 (no action needed now): it changes the same launcher block for the other end - PCs of 20 GB or more with a card under 12 GB keep the title memory windows off the card (measured on an RTX 3080 10 GB / 32 GB, numbers there). The two rules never overlap (yours: under 20 GB), but the files conflict textually, and your test's 32 GB / 8 GB case (32,606 / 8,188 MiB) expecting the 3072 cap would flip with mine. If yours lands first I'll rebase mine onto your Case harness and flip that assertion.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7334029784 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3002#issuecomment-7334029784). Originally posted by [Krashgamer](https://github.com/Krashgamer) on 2026-12-02T03:35:01Z. --- Heads-up from #3035 (no action needed now): it changes the same launcher block for the other end - PCs of 20 GB or more with a card under 12 GB keep the title memory windows off the card (measured on an RTX 3080 10 GB / 32 GB, numbers there). The two rules never overlap (yours: under 20 GB), but the files conflict textually, and your test's 32 GB / 8 GB case (32,606 / 8,188 MiB) expecting the 3072 cap would flip with mine. If yours lands first I'll rebase mine onto your Case harness and flip that assertion.
valenciana-nc commented 2026-12-02 03:59:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by valenciana-nc on 2026-12-02T03:59:55Z.


Thanks @Krashgamer, agreed. The two rules don't overlap, so whichever lands second just merges main: if #3035 goes first, I'll merge it into this branch and turn the 32 GB / 8 GB case into your expectation, with the cap off for a card under 12 GB.

AI-assisted: yes (Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7334450848 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3002#issuecomment-7334450848). Originally posted by [valenciana-nc](https://github.com/valenciana-nc) on 2026-12-02T03:59:55Z. --- Thanks @Krashgamer, agreed. The two rules don't overlap, so whichever lands second just merges `main`: if #3035 goes first, I'll merge it into this branch and turn the 32 GB / 8 GB case into your expectation, with the cap off for a card under 12 GB. AI-assisted: yes (Claude Opus 5.5)
MoonEyes commented 2026-12-02 12:35:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T12:35:11Z.


This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).

Could you, or anyone with a working setup, post a run report on the current head merged onto current main:

  • the head SHA and the main SHA it was merged onto;
  • GPU, driver and OS;
  • at least 300 s in the world after loading;
  • device lost / crashes (count), and rendered fps (median) if you have them;
  • the same run on main alone for comparison, if you can.

Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7345560658 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3002#issuecomment-7345560658). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T12:35:11Z. --- This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists). Could you, or anyone with a working setup, post a run report on the **current head** merged onto current `main`: - the head SHA and the `main` SHA it was merged onto; - GPU, driver and OS; - at least 300 s in the world after loading; - device lost / crashes (count), and rendered fps (median) if you have them; - the same run on `main` alone for comparison, if you can. Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough. AI-assisted (Claude Code).
valenciana-nc commented 2026-12-02 13:01:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by valenciana-nc on 2026-12-02T13:01:44Z.


Thanks @MoonEyes. In-game runs on this head merged onto current main are queued on the RTX 4060 Laptop (8 GB, 16 GB RAM): A B B A, main alone against the head merged onto it, at least 360 s in the world each. The report will follow here with the SHAs, device losses and median fps.

AI-assisted: yes (Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7346242534 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3002#issuecomment-7346242534). Originally posted by [valenciana-nc](https://github.com/valenciana-nc) on 2026-12-02T13:01:44Z. --- Thanks @MoonEyes. In-game runs on this head merged onto current `main` are queued on the RTX 4060 Laptop (8 GB, 16 GB RAM): A B B A, `main` alone against the head merged onto it, at least 360 s in the world each. The report will follow here with the SHAs, device losses and median fps. AI-assisted: yes (Claude Opus 5.5)
valenciana-nc commented 2026-12-02 14:20:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by valenciana-nc on 2026-12-02T14:20:28Z.


In-game run report for #3002, as asked by @MoonEyes.

  • Head: 09c9e9bc8, merged onto main d0bf821fa (local merge cc5a37be6, no conflicts). The main arm is d0bf821fa alone.
  • PC:
    • GPU: NVIDIA GeForce RTX 4060 Laptop GPU 8 GB, driver 621.47, resizable BAR on
    • CPU and RAM: i7-13650HX, 16 GB RAM
    • OS: Windows 11 Home
  • Start: scripts\play-d3d12.ps1 -SeriesS -Resolution 720 -NoDlss -NoFrameGen, the launcher's own settings with nothing added except logging. With the PR, the launcher printed that windows go to the card up to 95 % of its budget; on main it stayed at 80.
  • Builds: diagnostics builds of each tree.
  • Method: the same save restored before every start, standing at the save's spot, order A B B A. The frame lines start 20 s after the world loads.
Run Tree Time in the world Device lost Median fps Median frame Frame lines > 100 ms
1 main 391 s no 14.4 69.5 ms 20 of 53
2 PR + main 385 s no 13.1 76.5 ms 24 of 52
3 PR + main 287 s yes 17.5 57.4 ms 14 of 40
4 main 240 s yes 21.3 46.9 ms 5 of 35
  • Device losses: each arm lost the device once (0x887A0005). main loses it the same way on this PC: tonight's 720-line walking runs on a main-based build lost it in 4 of 4 runs, after 3.7 to 8.5 minutes in the world. It looks like the loss reported in #2607, #2821, #3012 and #3023; I'll post those numbers there separately. So this PR does not cause the losses, but it doesn't prevent them either.
  • Frame rate at 720 lines: this run shows no difference between the arms. Both are dominated by RAM stalls: in every run the PC fell to 1–51 MB free, and the shared memory and the card's own memory were both over budget.
  • What it rests on: the PR's benefit is from the 540-line ABBA in the description. At 720 lines (the Series S's stock path) I can't show it. The 540-line path isn't a good basis either: the title's FSR4 rejects 960x540 (#3013).
  • My suggestion: don't merge this on the current evidence. I'm happy to close it, or to keep it open as a draft until a 16 GB PC shows a gain at 720 or 1080 lines.

AI-assisted: yes (Claude Opus 5.5; runs driven by script on the PC above)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7348381631 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3002#issuecomment-7348381631). Originally posted by [valenciana-nc](https://github.com/valenciana-nc) on 2026-12-02T14:20:28Z. --- In-game run report for #3002, as asked by @MoonEyes. - **Head:** `09c9e9bc8`, merged onto `main` `d0bf821fa` (local merge `cc5a37be6`, no conflicts). The `main` arm is `d0bf821fa` alone. - **PC:** - GPU: NVIDIA GeForce RTX 4060 Laptop GPU 8 GB, driver 621.47, resizable BAR on - CPU and RAM: i7-13650HX, 16 GB RAM - OS: Windows 11 Home - **Start:** `scripts\play-d3d12.ps1 -SeriesS -Resolution 720 -NoDlss -NoFrameGen`, the launcher's own settings with nothing added except logging. With the PR, the launcher printed that windows go to the card up to 95 % of its budget; on `main` it stayed at 80. - **Builds:** diagnostics builds of each tree. - **Method:** the same save restored before every start, standing at the save's spot, order A B B A. The frame lines start 20 s after the world loads. | Run | Tree | Time in the world | Device lost | Median fps | Median frame | Frame lines > 100 ms | |---|---|---|---|---|---|---| | 1 | `main` | 391 s | no | 14.4 | 69.5 ms | 20 of 53 | | 2 | PR + `main` | 385 s | no | 13.1 | 76.5 ms | 24 of 52 | | 3 | PR + `main` | 287 s | **yes** | 17.5 | 57.4 ms | 14 of 40 | | 4 | `main` | 240 s | **yes** | 21.3 | 46.9 ms | 5 of 35 | - **Device losses:** each arm lost the device once (0x887A0005). `main` loses it the same way on this PC: tonight's 720-line walking runs on a `main`-based build lost it in 4 of 4 runs, after 3.7 to 8.5 minutes in the world. It looks like the loss reported in #2607, #2821, #3012 and #3023; I'll post those numbers there separately. So this PR does not cause the losses, but it doesn't prevent them either. - **Frame rate at 720 lines:** this run shows no difference between the arms. Both are dominated by RAM stalls: in every run the PC fell to 1–51 MB free, and the shared memory and the card's own memory were both over budget. - **What it rests on:** the PR's benefit is from the 540-line ABBA in the description. At 720 lines (the Series S's stock path) I can't show it. The 540-line path isn't a good basis either: the title's FSR4 rejects 960x540 (#3013). - **My suggestion:** don't merge this on the current evidence. I'm happy to close it, or to keep it open as a draft until a 16 GB PC shows a gain at 720 or 1080 lines. AI-assisted: yes (Claude Opus 5.5; runs driven by script on the PC above)
valenciana-nc commented 2026-12-02 15:47:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by valenciana-nc on 2026-12-02T15:47:03Z.


Closing this as the gate report above says. At 720 lines, the title's stock Series S path on this 16 GB / 8 GB laptop, the in-game run showed no gain over main. The 540-line measurement it rested on isn't a sound basis either, since FSR4 rejects 960x540 (#3013). Thanks @andrew-ai, @merzleckeier, @Krashgamer and @MoonEyes for the reviews and the gate. Krashgamer, #3035 no longer needs to account for this one.

AI-assisted: yes (Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7350911933 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3002#issuecomment-7350911933). Originally posted by [valenciana-nc](https://github.com/valenciana-nc) on 2026-12-02T15:47:03Z. --- Closing this as the gate report above says. At 720 lines, the title's stock Series S path on this 16 GB / 8 GB laptop, the in-game run showed no gain over `main`. The 540-line measurement it rested on isn't a sound basis either, since FSR4 rejects 960x540 (#3013). Thanks @andrew-ai, @merzleckeier, @Krashgamer and @MoonEyes for the reviews and the gate. Krashgamer, #3035 no longer needs to account for this one. AI-assisted: yes (Claude Opus 5.5)

Pull request closed

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!3002
No description provided.