fix(scripts): windows in card memory the CPU maps, for 16 GB PCs

On a PC with 16 GB of RAM (RTX 3060 12 GB, i5-12400F, Series S at 540p)
every run with play-nvidia.ps1 ended a minute or so into the world: the
card's shared memory (the PC's, capped by Windows at half the RAM) reached
7.5 GB, a host list failed to close or be made with 0x8007000E, and the
driver faulted in CopyTextureRegion. About two thirds of that memory were
the windows of title memory outside buffers.

VICTORY_WINDOWS_BAR_MB=3072 puts them in card memory the CPU maps
(D3D12_HEAP_TYPE_GPU_UPLOAD) while the card has room. Same machine: no
crash in 5+ minute runs, shared memory flat at about 4.4 GB, 10-12 fps in
the world instead of 1.6-3. Without a resizable BAR, mapped_card_buffer
returns None and windows stay where they were.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
Indy2landClaude Sonnet 5.5 committed 2026-11-26 17:52:23 +01:00
1 parent 7480e961a5
commit cda4987aa4
2 files changed
+14

No files matched your search

+8
View File
@@ -290,6 +290,14 @@ What to expect:
memory. Use 720p or lower on Series S.
- Series S cannot go above 1080p: its output is 1080p, and the script says so
and stops if asked for more.
- **16 GB of RAM works, with a resizable BAR.** Windows lets a card share at
most half the PC's memory, and the copies of title memory the GPU reads
filled that on a 16 GB PC about a minute into the world (`0x8007000E`, then a
driver fault). `play-nvidia.ps1` now puts them in the card's memory the CPU
maps (`VICTORY_WINDOWS_BAR_MB`) when the BIOS has resizable BAR on;
`nvidia-smi -q -d MEMORY` shows a BAR1 total about the card's size if so.
Without it, close what else uses memory. Expect stutters while the world
streams in: the game's own memory is then partly in the paging file.
### More than one card, and other cards