VICTORY_KEEP_RAM_GB: keep the game's memory in RAM on 32 GB PCs #568
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!568
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-568"
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?
@arminkhaleghirod on GitHub · 2026-11-28 01:02 UTC · original
arminkhaleghirod:keep-ram→main· +37 −0 · 1 files · 1 commits · merged 2026-11-29 08:16 UTCOn my PC (32 GB RAM, RTX 4080) the game commits about 28 GB. Once free RAM ran low, Windows trimmed the game's working set from 15 GB to 2 GB at once, and it ran at half speed (22 fps down to 5-10) for minutes while it read its memory back from the page file. It kept happening, even in loading screens.
VICTORY_KEEP_RAM_GB= sets a hard minimum working set of n GB at start (SetProcessWorkingSetSizeEx with QUOTA_LIMITS_HARDWS_MIN_ENABLE), so Windows pages out other programs instead. With 14 the game stayed at 21-23 GB in RAM for a whole session and the slowdowns were gone. If Windows refuses the size, it says so and runs without it. Unset, nothing changes.
@futurepro62 on GitHub · 2026-11-28 20:44 UTC · original
Tested the same call from outside the process, because the script launcher (
victory run) doesn't go throughplay.rs'sprepare(). A helper callsSetProcessWorkingSetSizeEx(min 14 GB, max 28 GB, HARDWS_MIN_ENABLE | HARDWS_MAX_DISABLE)onvictory.exeonce its window appears. System: RTX 5070 Ti 16 GB (driver 621.40), Ryzen 7 9800X3D (SMT on, 16 threads), 32 GB DDR5, Windows 11 build 26300, pagefile C: 32–64 GB (custom). Title 1.0.2.1. Script launcher, mode 6, Series X, DLSS + DLSS frame generation 4x. Built from source..Note for the PR: as written it only applies to
victory play. Users on the script launcher (play-foxhound.ps1→victory run) don't get it. Callingkeep_ram()fromruntoo would cover them.