fix(scripts): windows in card memory the CPU maps, for 16 GB PCs #6
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!6
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-6"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Indy2l on GitHub · 2026-11-26 16:54 UTC · original
Indy2l:fix/16gb-windows-bar→main· +14 −0 · 2 files · 1 commits · merged 2026-11-26 17:10 UTCProblem
On a PC with 16 GB of RAM, every run of
play-nvidia.ps1ended about a minute into the world. The test machine was an RTX 3060 12 GB with an i5-12400F, running Series S at 540p on driver 32.0.16.2140. A host list failed to close or be made with0x8007000E, and one second later the driver faulted (nvwgf2umx, a read at0xcinCopyTextureRegion).The limit it hits is the card's shared memory, not the commit limit. Windows lets a card share at most half the RAM, about 8 GB here. Shared use reached 7.5 GB while the card's own memory still had about 5 GB free, and the commit limit (64 GB) was far off. The memory line puts about two-thirds of that shared memory in windows of title memory outside buffers (3.7 GB at the crash). The 64 GB machine these settings were measured on can share about 32 GB, so it never gets there.
Change
play-nvidia.ps1: setsVICTORY_WINDOWS_BAR_MB=3072, so windows go to card memory the CPU maps (D3D12_HEAP_TYPE_GPU_UPLOAD) while the card has room.mapped_card_bufferreturnsNoneand windows stay where they were, so nothing changes.README.md: a note under "What to expect" on 16 GB PCs, how to check for a resizable BAR, and the stutters that remain.Validation
Same machine and settings, with
copystatmemory lines, sampled shared and dedicated GPU memory, and fps from the frame-rate line:VICTORY_WINDOWS_BAR_MB=30720x8007000EI checked that the script still parses. No code changes are involved.
Other measurements from the same machine
These might be useful, since issues are off:
VICTORY_LATE_WAIT_LISTS=64changed nothing: same growth, same crash. The ~1,900 host lists alive are mostly the title's own, made as the world loads.VICTORY_WINDOW_KB=1024withVICTORY_WINDOW_TAILS=1is not worth it. At the same point in the world it saved about 6% of window memory (3.0 vs 3.2 GB), because the smaller windows overlap: 3.0 GB of windows over 1.9 GB of title memory. It cost about 10 ms more preparing per frame (copies 46 → 60 MB per frame), and median fps went from 8.6 to 7.0. That answers the open question inshadow.rswindow().🤖 Generated with Claude Code