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

Merged
eleboucher merged 1 commit from upstream-pr/293 into main 2026-11-29 08:16:59 +00:00
eleboucher commented 2026-11-27 20:45:09 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eleboucher on 2026-11-27T20:45:09Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5532870600 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/293). Originally posted by [eleboucher](https://github.com/eleboucher) on 2026-11-27T20:45:09Z. --- 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.
Sign in to join this conversation.
No reviewers
No labels
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.

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