Default windows and sends to card memory on a small shared GPU budget #293

Open
github-bot wants to merge 1 commit from github-bot/gh-293 into main AGit
Owner

@⁠eleboucher on GitHub · 2026-11-27 20:45 UTC · original
eleboucher:up-small-shared → main · +34 −2 · 3 files · 1 commits · open

On 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 with E_OUTOFMEMORY.

VICTORY_WINDOWS_BAR_MB=4096 and VICTORY_SEND_BAR=1 already 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 to 0 to 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 check and the unit test.

**@⁠eleboucher** on GitHub · 2026-11-27 20:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/293) `eleboucher:up-small-shared` → `main` · +34 −2 · 3 files · 1 commits · open On 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 with `E_OUTOFMEMORY`. `VICTORY_WINDOWS_BAR_MB=4096` and `VICTORY_SEND_BAR=1` already 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 to `0` to 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 check` and the unit test.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 20:48:38 +00:00
github-bot changed title from 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 budget 2026-11-27 20:54:35 +00:00
github-bot force-pushed github-bot/gh-293 from e042173050 to f718ae474e 2026-11-27 20:54:36 +00:00 Compare
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/293/head:github-bot/gh-293'
git switch 'github-bot/gh-293'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-293'
git switch 'github-bot/gh-293'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-293'
git switch 'github-bot/gh-293'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-293'
git switch 'main'
git merge --squash 'github-bot/gh-293'
git switch 'main'
git merge --ff-only 'github-bot/gh-293'
git switch 'main'
git merge 'github-bot/gh-293'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.