Launchers: the CPU sides of card copies in files (VICTORY_CARD_CPU_FILE=1), as victory play has them #4841
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4841"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mcozcan on 2026-12-01T11:03:23Z.
Refs #4462
What it changes
Every title buffer with a copy on the card also has a CPU side of the same size, in the process's private memory. With the card's own memory, which NVIDIA also counts in the process's commit (#4288), and the title's own pages, such a buffer is committed about three times. On 32 GB PCs the commit is what runs out first: the page file grows and the game stalls (#3443).
VICTORY_CARD_CPU_FILE=1already puts those CPU sides in files under the cache (cpu-mirrors) instead of the page file (docs/windows-memory.md, "Optional file-backed CPU mirrors").victory playhas had it on sincec71899d9(the 2026-11-30 bench set), but neither script launcher sets it, so players who start withscripts\play-nvidia.ps1(andPLAY_FRAMEGEN.cmdthrough it) orPlay-VIctory.cmdrun without it.This sets it in both launchers:
scripts/play-nvidia.ps1: in$settingsafter the memory stack, so the F1 menu and-Morecan still turn it off.Play-VIctory.cmd:if not defined, as its other settings.HKCU\Software\Winepresent): there the files are ordinary Linux files and the opening cutscene lost its first 15 s (#4275, which does the same forvictory play).What it does not do: the pages are still in RAM as the file's cache. What changes is that they leave the private commit, and Windows can write them back to their files instead of growing the page file.
docs/windows-memory.mdasks to compare commit and frame times before keeping it on;victory playhas been the place where that was done.How it was tested
victory playships sincec71899d9; this only makes the two script launchers match it.cargo test: not affected (launcher scripts only). The script was read for where its settings are applied: the new line comes before the F1 menu ($menu) and-Moreoverrides, and beforeSet-Item "Env:$k".main's CI fails at clippy since #4634 (too_many_arguments,is_multiple_of, a collapsibleif), so this PR's CI will show that failure too.Checked for overlap
VICTORY_CARD_CPU_FILEoff under Wine forvictory play; this keeps the launchers in line with it), #4815 and #4771 (other play defaults in the same launcher, not this setting). None found that setsVICTORY_CARD_CPU_FILEin the launchers.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.