16 GB PCs with 8 GB cards: texture copies held to 1 GB, and a page-file warning where Windows sizes it #3397

Closed
Pierrot1398 wants to merge 2 commits from upstream-pr/3397 into main
Pierrot1398 commented 2026-11-29 22:46:47 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Pierrot1398 on 2026-11-29T22:46:47Z.


Related: #944, #1915, #2453, #2523 (out of memory on 8 GB cards and 16 GB PCs). Not a full fix: see "What is still open".

What it changes

On a PC of 13.9 GB of RAM (Ryzen 7 5700G, whose integrated GPU takes part of 16 GB) with an RTX 5060 Ti 8 GB, every start of v2026.11.29.03 ended with 0x8007000E at the end of the world's load: the card full, the PC's memory shared with the card at 6.5 to 6.8 GB of its 6,502 MB budget, the RAM free under 300 MB. Neither the Series S profile, a smaller picture, levels on demand nor a fixed 40 GB page file changed that.

What grew there was the host copies of title buffers: 4,855 to 5,567 MB in the last 5.6 s of one start, only 1,132 MB of them on the card, which the texture copies (3.4 GB) had filled. A copy the card cannot take stays in the PC's memory, the shared part of it.

Two commits:

  1. GPU: hold host copies of title textures to 1 GB on PCs of under 24 GB of RAM. VICTORY_TEXTURE_CAP_MB caps the bytes of host copies of title textures. It is 1024 by default where residency::small_host_ram says so, and none elsewhere; 0 takes it off, a number of MB sets it. room refuses at the cap (before the floor). A first upload (the black-face fix) passes it by the allowance it already passes the card's line by, no more. An explicit VICTORY_TEXTURE_BUDGET_MB still decides alone. The cap's bytes go to the buffer copies: about 3.0 GB of them were on the card with it, against 1.1 GB without.
  2. Launcher: warn where Windows sizes the page file and memory would run out. The warning before a start said nothing where Windows manages the page file's size, and Windows grows that file only after a commit was refused, the moment the game stops. One start stopped with 684 MB left to commit. The warning now reads what Windows allows at that moment (streamline::commit_limit, ullTotalPageFile) and asks for a fixed size up to the 52 GB the fixed-size warning already asks for. With a fixed 40 GB page file the world loaded about 1.5 minutes sooner, and that start stopped with 20.6 GB still left to commit.

How it was tested

  • GPU and profile: RTX 5060 Ti 8 GB (driver 621.24), 13.9 GB of RAM, Windows 11 26300, fixed 40 GB page file. Series S at 960x540 with DLSS performance, no frame generation, no ray tracing. The same save each time, started unattended (VICTORY_KEYS) and measured for 6 minutes.
  • Before (no cap): 0 of 4 starts passed the world's load.
  • After:
texture copies held to starts that passed the world's load most shared memory
(no cap) 0 of 4 (stopped at 6.5 to 6.8 GB)
2 GB, with the face allowance 0 of 4 6,654 to 6,758 MB
1.5 GB 1 of 1 6,470 MB
1 GB (this default) 4 of 5 5,666 to 6,108 MB (the fifth: 6,644 MB)

The start of five that still stopped had the same texture copies (1,212 MB) and the same buffer copies on the card (3,010 MB) as one that played on; its buffer copies peaked at 7,288 MB against 6,910 MB. The load asks for about 400 MB more from one start to the next, and on this PC that is the whole margin.

One more start, played by hand: 11 to 14 fps in the world, most textures there, some missing, faces without their expressions. It stopped at 8 minutes, when a later load pushed the shared memory to 6,758 MB.

  • For shader changes, the wave sizes tested: no shader changes.
  • cargo test passed for the crates it touches: yes. victory-gpu resource:: 46 of 46, victory play:: 29 of 29, with 3 new tests. In the whole victory-gpu --lib run, 2 tests fail that this does not touch: shader_cache::tests::every_switch_of_the_translator_is_in_the_key (VICTORY_SCALAR_SPLITS is not read by the translator any more, on main as well) and host::menu::tests::a_change_is_saved_at_once_however_the_game_was_started (passes alone). Clippy finds nothing in the changed lines (main has warnings of its own elsewhere).

What is still open

  • The picture. With 1 GB of texture copies some textures are missing, and so are facial expressions. On this PC that is the price of passing the load. A cap that rises while the shared memory has room (about 1.6 GB free in steady play) and stops when a load comes would give most of them back. It is not in this PR.
  • Later loads. The cap makes the first load pass 4 times in 5. It does not stop a later load like the one at 8 minutes above.
  • Other PCs. A PC whose 16 GB of RAM are all visible has a larger shared budget than this one, and 1 GB may be lower than it needs. A cap that follows the shared budget may suit both. One PC cannot say, so reports from other 16 GB PCs would help.
  • The buffer copies (up to 7.3 GB at the load's peak) are most of what the load takes on such a PC, more than the textures. That is where the next real gain is.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #1925 caps a texture's resolution (VICTORY_TEXTURE_MAX), not the bytes of all copies; #1944, #2334 and #2910 change other parts of resource.rs and shadow.rs (first uploads past the budget, 8 GB tuning, windows in shared memory). None sets a byte cap on small hosts.

🤖 Generated with Claude Code

https://claude.ai/code/session_011f6R3kMoarujHzzA1AvSBb

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5555973491 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3397). Originally posted by [Pierrot1398](https://github.com/Pierrot1398) on 2026-11-29T22:46:47Z. --- Related: #944, #1915, #2453, #2523 (out of memory on 8 GB cards and 16 GB PCs). Not a full fix: see "What is still open". ## What it changes On a PC of 13.9 GB of RAM (Ryzen 7 5700G, whose integrated GPU takes part of 16 GB) with an RTX 5060 Ti 8 GB, every start of v2026.11.29.03 ended with `0x8007000E` at the end of the world's load: the card full, the PC's memory shared with the card at 6.5 to 6.8 GB of its 6,502 MB budget, the RAM free under 300 MB. Neither the Series S profile, a smaller picture, levels on demand nor a fixed 40 GB page file changed that. What grew there was the host copies of title buffers: 4,855 to 5,567 MB in the last 5.6 s of one start, only 1,132 MB of them on the card, which the texture copies (3.4 GB) had filled. A copy the card cannot take stays in the PC's memory, the shared part of it. Two commits: 1. **GPU: hold host copies of title textures to 1 GB on PCs of under 24 GB of RAM.** `VICTORY_TEXTURE_CAP_MB` caps the bytes of host copies of title textures. It is 1024 by default where `residency::small_host_ram` says so, and none elsewhere; `0` takes it off, a number of MB sets it. `room` refuses at the cap (before the floor). A first upload (the black-face fix) passes it by the allowance it already passes the card's line by, no more. An explicit `VICTORY_TEXTURE_BUDGET_MB` still decides alone. The cap's bytes go to the buffer copies: about 3.0 GB of them were on the card with it, against 1.1 GB without. 2. **Launcher: warn where Windows sizes the page file and memory would run out.** The warning before a start said nothing where Windows manages the page file's size, and Windows grows that file only after a commit was refused, the moment the game stops. One start stopped with 684 MB left to commit. The warning now reads what Windows allows at that moment (`streamline::commit_limit`, `ullTotalPageFile`) and asks for a fixed size up to the 52 GB the fixed-size warning already asks for. With a fixed 40 GB page file the world loaded about 1.5 minutes sooner, and that start stopped with 20.6 GB still left to commit. ## How it was tested - GPU and profile: RTX 5060 Ti 8 GB (driver 621.24), 13.9 GB of RAM, Windows 11 26300, fixed 40 GB page file. Series S at 960x540 with DLSS performance, no frame generation, no ray tracing. The same save each time, started unattended (`VICTORY_KEYS`) and measured for 6 minutes. - Before (no cap): 0 of 4 starts passed the world's load. - After: | texture copies held to | starts that passed the world's load | most shared memory | |---|---|---| | (no cap) | 0 of 4 | (stopped at 6.5 to 6.8 GB) | | 2 GB, with the face allowance | 0 of 4 | 6,654 to 6,758 MB | | 1.5 GB | 1 of 1 | 6,470 MB | | **1 GB (this default)** | **4 of 5** | **5,666 to 6,108 MB** (the fifth: 6,644 MB) | The start of five that still stopped had the same texture copies (1,212 MB) and the same buffer copies on the card (3,010 MB) as one that played on; its buffer copies peaked at 7,288 MB against 6,910 MB. The load asks for about 400 MB more from one start to the next, and on this PC that is the whole margin. One more start, played by hand: 11 to 14 fps in the world, most textures there, some missing, faces without their expressions. It stopped at 8 minutes, when a later load pushed the shared memory to 6,758 MB. - For shader changes, the wave sizes tested: no shader changes. - `cargo test` passed for the crates it touches: yes. `victory-gpu` `resource::` 46 of 46, `victory` `play::` 29 of 29, with 3 new tests. In the whole `victory-gpu --lib` run, 2 tests fail that this does not touch: `shader_cache::tests::every_switch_of_the_translator_is_in_the_key` (`VICTORY_SCALAR_SPLITS is not read by the translator any more`, on `main` as well) and `host::menu::tests::a_change_is_saved_at_once_however_the_game_was_started` (passes alone). Clippy finds nothing in the changed lines (`main` has warnings of its own elsewhere). ## What is still open - **The picture.** With 1 GB of texture copies some textures are missing, and so are facial expressions. On this PC that is the price of passing the load. A cap that rises while the shared memory has room (about 1.6 GB free in steady play) and stops when a load comes would give most of them back. It is not in this PR. - **Later loads.** The cap makes the first load pass 4 times in 5. It does not stop a later load like the one at 8 minutes above. - **Other PCs.** A PC whose 16 GB of RAM are all visible has a larger shared budget than this one, and 1 GB may be lower than it needs. A cap that follows the shared budget may suit both. One PC cannot say, so reports from other 16 GB PCs would help. - **The buffer copies** (up to 7.3 GB at the load's peak) are most of what the load takes on such a PC, more than the textures. That is where the next real gain is. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1925 caps a texture's *resolution* (`VICTORY_TEXTURE_MAX`), not the bytes of all copies; #1944, #2334 and #2910 change other parts of `resource.rs` and `shadow.rs` (first uploads past the budget, 8 GB tuning, windows in shared memory). None sets a byte cap on small hosts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011f6R3kMoarujHzzA1AvSBb
trustno1-coder commented 2026-12-01 18:52:39 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:52:39Z.


Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321725297 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3397#issuecomment-7321725297). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:52:39Z. --- Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

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!3397
No description provided.