Repository navigation
d3d12 launcher: title memory windows stay off cards under 12 GB on PCs of 20 GB or more - #3035
Krashgamer wants to merge 3 commits into
Conversation
…s of 20 GB or more The launcher put up to 3 GB of title memory windows in the card's CPU-mapped memory on every PC with under 48 GB of RAM (for the PC's memory). On an RTX 3080 10 GB with 32 GB they took 2 GB of the card in the world's first seconds, and textures then lacked room: 1.3-1.4 GB of textures alive, 28,000-30,000 made again and 600-1,000 passes turned down for room in 300 s (seven runs), against 2.6-2.8 GB, 13,000 and 40-89 without the windows (two runs), frames within the spread, the PC's memory 1.1 GB more (rests on ProjectLeonida#3031). Now a card reported under 11.5 GB on a PC reported at 20 GB or more keeps them in the PC's memory; under 20 GB the PC's memory runs out first and they stay on the card. A test fakes the PC's and the card's memory (in MiB as reported) and checks the rule, the message and that a typed cap wins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent Windows dry-run check at base
AI-assisted validation. Synthetic registry and CIM inputs, no game files or GPU activity. |
…t the largest adapter's On a PC with two cards, -Adapter picking an 8 GB card beside a 16 GB one left the windows rule (and the under-6 GB rule) with the 16 GB card's size: the probe took the largest adapter's. Now the largest of the cards whose name -Adapter is part of (any case, as the runtime picks), else the largest. Found by ecox982745's dry runs on ProjectLeonida#3035. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, @ecox982745 - fixed in b0cf557 rather than documented: with |
A value with [ made -like throw inside the probe, which the try swallowed, leaving the card's size half found; * and ? matched more than the runtime's plain part-of-the-name. Now the trimmed value as plain text, any case; #N (the runtime's N-th card) is not mapped, as the driver keys are not in its order, and gets the largest card as before. Tests for both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claimed in the coordination issue as: D3D12-LAUNCHER-WINDOWS-SMALL-CARD (claimed with this pull request, in #2570)
Depends on: #3031. The PC-memory headroom this needs comes from shared command allocators. Without #3031 a 32 GB PC with this change would be back near the 2026-11-27 case that brought the windows to PCs under 48 GB. Merge after #3031.
Conflicts with: #3002 (D3D12-16GB-WINDOWS-BAR-LINE).
play-nvidia.ps1: d3d12 launcher: 16 GB PCs keep title memory windows on the card up to 95 % of its budget (D3D12-16GB-WINDOWS-BAR-LINE) #3002 moves the$ramline next to the lines added here.tests/test_win_launchers.py: d3d12 launcher: 16 GB PCs keep title memory windows on the card up to 95 % of its budget (D3D12-16GB-WINDOWS-BAR-LINE) #3002 rewrites the test class around its ownCaseharness.Whichever merges second needs a rebase. If #3002 lands first, I'll port these cases to its harness and flip that assertion.
What and why
play-nvidia.ps1puts up to 3 GB of title memory windows in the card's CPU-mapped memory (LEONIDA_WINDOWS_BAR_MB=3072) on every PC with under 48 GB of RAM. Cards under 6 GB are the only exception. The windows are there for the PC's memory.On an RTX 3080 10 GB with 32 GB of RAM, the windows take about 2 GB of the card in the world's first seconds, before most textures arrive. The process's 32 MB write-combined regions (the mapped card memory) go from 27 to 90 there and stay. The device census has 732 card buffers the CPU maps, 2,054 MB. Textures then find the card at its line.
Game gate, Series X, 2560x1440, 300 s in the world from the same save, with #3031:
LEONIDA_WINDOWS_BAR_MB=0LEONIDA_WINDOWS_BAR_MB=0So on a 10 GB card the windows cost the textures half their room. The frame rate stays within the spread, at its low end, and the PC's memory takes 1.1 GB more.
The change:
-WindowsBarMBall behave as before.-WindowsBarMBhelp,d3d12/README.mdand a newd3d12/docs/findings.mdsection are updated. The findings section has the tables above.Not measured: 12 GB cards, and 8 GB cards on 32 GB PCs. The rule assumes they lack card memory more.
Tested
tests/test_win_launchers.py: newtest_nvidia_windows_in_card_memory_by_ram_and_card. It fakes the PC's RAM (CIM) and the card's memory (driver key) in MiB as reported, runs the launcher with-DryRunand checks the cap, the one message line, and that a typed cap wins. Cases:-WindowsBarMB 3072typedorigin/main'splay-nvidia.ps1, exactly the three new cases fail (32 GB + 10 GB, 32 GB + 8 GB, 24 GB + 10 GB: the cap is still set). With the change they pass.test_docs_*.py): passed.check_no_game_data.py: passed.The change was reviewed by an independent reviewer agent before this pull request. What it found, now fixed:
GPUs tested: NVIDIA GeForce RTX 3080 10 GB, driver 32.0.16.1088 (610.88), resizable BAR, Windows 11 Pro 26200; Intel i7-10700K, 32 GB RAM
AI-assisted: yes, Claude Code (Claude Opus 5.5)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)🤖 Generated with Claude Code