Skip to content

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

Open
Pierrot1398 wants to merge 2 commits into
trustno1-coder:mainfrom
Pierrot1398:small-ram-texture-cap
Open

Pierrot1398 wants to merge 2 commits into
trustno1-coder:mainfrom
Pierrot1398:small-ram-texture-cap

Conversation

@Pierrot1398

Copy link
Copy Markdown

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

🤖 Generated with Claude Code

https://claude.ai/code/session_011f6R3kMoarujHzzA1AvSBb

Pierrot1398 and others added 2 commits November 29, 2026 23:44
… out

The memory warning before a start said nothing where Windows manages the page
file's size, and Windows makes that file larger only once a commit was
refused: the moment the game stops. On a PC of 13.9 GB of RAM with an RTX
5060 Ti 8 GB and a system-managed page file, v2026.11.29.03 stopped with
0x8007000E at 22.5 GB committed and 684 MB left to commit (2026-11-29). With
the page file at a fixed 40 GB (54 GB allowed) the same settings loaded the
world about 1.5 minutes sooner and stopped with 20.6 GB still left to commit
(the card and its shared memory full: a limit of its own, not this one).

Where the size is Windows' own, the warning now reads what programs can have
at the moment (streamline::commit_limit, ullTotalPageFile) and asks for a
fixed size up to the 52 GB the fixed-size warning already asks for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f6R3kMoarujHzzA1AvSBb
… of RAM

On a PC of 13.9 GB of RAM with an RTX 5060 Ti 8 GB (a budget of the shared
memory of 6,502 MB) every start ended with 0x8007000E at the end of the
world's load, whatever the console, picture size or page file: the card
full, the PC's memory shared with it at 6.5 to 6.8 GB, the RAM free under
300 MB (2026-11-29). The host copies of title buffers were what grew: from
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 textures (3.4 GB) had filled. The copies the card cannot
take stay in the PC's memory, the shared part of it.

`VICTORY_TEXTURE_CAP_MB` caps the bytes of host copies of title textures:
1024 by default where `residency::small_host_ram` (under 24 GB of RAM), none
elsewhere; 0 for none, or a number of MB. `room` refuses at it (before the
floor), and a first upload (the black face fix) passes it by the allowance
it passes the card's line by, no more. An explicit `VICTORY_TEXTURE_BUDGET_MB`
still decides alone.

Starts of the same save, Series S at 960x540 with DLSS, six minutes each:

| 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 | 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 in all peaked at 7,288 MB against 6,910: the load asks for
some 400 MB more from start to start, and on this PC that is the margin. The
buffer copies, not the textures, are most of what the load takes there.

What is not known: how the picture looks with 1 GB of texture copies (the
runs were unattended), and whether a PC of 16 GB whose RAM is all visible
(this one gives some to its integrated GPU) needs as low a cap. A cap that
follows the shared budget may suit both; one PC cannot say.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f6R3kMoarujHzzA1AvSBb
@github-actions github-actions Bot added the pr-fix Pull request: fixes a bug label Nov 29, 2026
@github-actions github-actions Bot changed the title [pr-fix] 16 GB PCs with 8 GB cards: texture copies held to 1 GB, and a page-file warning where Windows sizes it 16 GB PCs with 8 GB cards: texture copies held to 1 GB, and a page-file warning where Windows sizes it Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-fix Pull request: fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant