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

Manually merged
github merged 1 commit from github-bot/gh-293 into main 2026-11-29 08:21:45 +00:00 AGit
Owner

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

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 · merged 2026-11-29 08:16 UTC 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
github manually merged commit dae59ac89a into main 2026-11-29 08:21:45 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!293
No description provided.