Default windows and sends to card memory on a small shared GPU budget #293
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!293
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-293"
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?
@eleboucher on GitHub · 2026-11-27 20:45 UTC · original
eleboucher:up-small-shared→main· +34 −2 · 3 files · 1 commits · openOn a 16 GB PC the shared GPU memory (DXGI
NON_LOCAL) budget is about 7.2 GB. Window copies and the send buffer fill it during world load, and the next CPU-visible buffer fails withE_OUTOFMEMORY.VICTORY_WINDOWS_BAR_MB=4096andVICTORY_SEND_BAR=1already avoid this. With this change they become the default when the budget is under 10 GiB and the card exposes CPU-mappable memory. Set either to0to opt out.Tested on an RTX 4070 Ti SUPER with 16 GB RAM: shared usage drops from out-of-memory to 3.0–3.8 GB. This was measured on a build that also includes #18. On this branch I only ran
cargo checkand the unit test.Memory: on a PC with a small shared GPU memory budget, windows and sends go to card memory by default (16 GB out-of-memory at world load)to Default windows and sends to card memory on a small shared GPU budgete042173050tof718ae474eView 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.