VICTORY_KEEP_RAM_GB: keep the game's memory in RAM on 32 GB PCs #568
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!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 · openOn 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.
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.