16 GB of RAM: Series S works by default, Series X can use Series S's heap #327

Manually merged
github merged 4 commits from github-bot/gh-327 into main 2026-12-03 16:31:03 +00:00 AGit
Owner

@⁠simoalanne on GitHub · 2026-12-03 15:31 UTC · original
simoalanne:main → main · +226 −3 · 6 files · 4 commits · merged 2026-12-03 16:26 UTC

16 GB of RAM: Series S works by default, Series X can use Series S's heap, and the README says how

On 16 GB of RAM the game runs, but it's tight, and today every 16 GB user finds that out alone (#213, #196, #199). The title allocates a fixed amount at start (about 12 GB on Series X, 7.8 GB on Series S), the same on every preset, and here all of it is pinned RAM unless paged to the card. This puts the fixes for that case together:

  • Series S: the title's own upscaler by default: #291 by @⁠TuxArchi, cherry-picked as is. Its FidelityFX path stays black (#39, #92) or flickers on every texture.
  • Series S: 1920x1080 output by default: #289 by @⁠TreXito, cherry-picked as is. Fixes #66.
  • Series X: Series S's streaming heap, opt-in (VICTORY_TILE_HEAP_MB, replaces #264). The title asks for a 6,236 MiB streaming heap on Series X and 3,977 MiB on Series S, and fills it as a cache. It won't run with fewer pages than it asks for, so the size Series X asks for is patched at load; 3977 gives it Series S's size. It's opt-in because Series X may stream more than Series S and count on the larger heap.
  • README: a "16 GB of RAM" section: Series S is the stable choice; Series X needs the heap setting and is still tighter and slower; frame generation and ray tracing add memory.

This combines #291 and #289 (their commits are here unchanged, authorship kept) with the heap change and the README section, and replaces my #264. Merge either this or #291 and #289 separately; if this one is merged, they can be closed. Closes #66.

What it did on my machine (RX 9070 16 GB, Ryzen 7 5700X3D, 16 GB RAM, GTT 11 GiB):

stock Series X Series X, VICTORY_TILE_HEAP_MB=3977
run (same save, same spot) OOM-killed / heavy stutter full run
GTT in use 10.3–11.0 GiB 8.7 GiB
least free RAM 127–151 MB 1,808 MB
pages swapped in 206k–370k 41k
p99 / worst frame 150–238 / 431–576 ms 80 / 136 ms

Played by hand: Series X with the 3977 heap, FSR 4 balanced to 2560x1440, VICTORY_UI_PLANE=3840x2160 and a 30 fps cap ran at 29.1 fps with ~1.5 GB of RAM free; Series S at 1080p ran a steady 30 with ~2.5 GB free. I haven't noticed pop-in or blurry textures from the smaller heap so far.

🤖 Generated with Claude Code

**@⁠simoalanne** on GitHub · 2026-12-03 15:31 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/327) `simoalanne:main` → `main` · +226 −3 · 6 files · 4 commits · merged 2026-12-03 16:26 UTC ## 16 GB of RAM: Series S works by default, Series X can use Series S's heap, and the README says how On 16 GB of RAM the game runs, but it's tight, and today every 16 GB user finds that out alone (#213, #196, #199). The title allocates a fixed amount at start (about 12 GB on Series X, 7.8 GB on Series S), the same on every preset, and here all of it is pinned RAM unless paged to the card. This puts the fixes for that case together: - **Series S: the title's own upscaler by default**: #291 by @⁠TuxArchi, cherry-picked as is. Its FidelityFX path stays black (#39, #92) or flickers on every texture. - **Series S: 1920x1080 output by default**: #289 by @⁠TreXito, cherry-picked as is. Fixes #66. - **Series X: Series S's streaming heap, opt-in** (`VICTORY_TILE_HEAP_MB`, replaces #264). The title asks for a 6,236 MiB streaming heap on Series X and 3,977 MiB on Series S, and fills it as a cache. It won't run with fewer pages than it asks for, so the size Series X asks for is patched at load; `3977` gives it Series S's size. It's opt-in because Series X may stream more than Series S and count on the larger heap. - **README: a "16 GB of RAM" section**: Series S is the stable choice; Series X needs the heap setting and is still tighter and slower; frame generation and ray tracing add memory. This combines #291 and #289 (their commits are here unchanged, authorship kept) with the heap change and the README section, and replaces my #264. Merge either this or #291 and #289 separately; if this one is merged, they can be closed. Closes #66. What it did on my machine (RX 9070 16 GB, Ryzen 7 5700X3D, **16 GB RAM**, GTT 11 GiB): | | stock Series X | Series X, `VICTORY_TILE_HEAP_MB=3977` | |---|---|---| | run (same save, same spot) | OOM-killed / heavy stutter | full run | | GTT in use | 10.3–11.0 GiB | 8.7 GiB | | least free RAM | 127–151 MB | 1,808 MB | | pages swapped in | 206k–370k | 41k | | p99 / worst frame | 150–238 / 431–576 ms | 80 / 136 ms | Played by hand: Series X with the 3977 heap, FSR 4 balanced to 2560x1440, `VICTORY_UI_PLANE=3840x2160` and a 30 fps cap ran at 29.1 fps with ~1.5 GB of RAM free; Series S at 1080p ran a steady 30 with ~2.5 GB free. I haven't noticed pop-in or blurry textures from the smaller heap so far. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On the Series S profile the title takes its display buffers from a block
it sizes for 1080p. At the default 2560x1440 output the second swap chain
buffer (15 MiB) found 3.25 MiB left and the title stopped at its own
check during System Init: the trap in #66, on every card and runtime
reported, while 1920x1080 and 1280x720 start.

With --console series-s and no VICTORY_OUTPUT the output is now 1920x1080,
set before anything reads it; a larger asked size is kept and named.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNCfbX5dPKJzSkgbf16GX4
The title asks for a streaming heap at start, 6,236 MiB on Series X and
3,977 MiB on Series S, and here it is pinned RAM. It will not run with fewer
pages than it asks for, so VICTORY_TILE_HEAP_MB changes the size Series X
asks for at load; 3977 gives it Series S's, for PCs with 16 GB of RAM.
Opt-in: Series X may stream more and count on the larger heap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 15:37:22 +00:00
github manually merged commit fcd3389dc3 into main 2026-12-03 16:31:03 +00:00
Author
Owner

@⁠lucalocastro on GitHub · 2026-12-03 22:18 UTC · original

@⁠simoalanne, your 16 GB results gave me a follow-up question. With the Series X streaming heap fixed at VICTORY_TILE_HEAP_MB=3977, how much more system RAM could we free by letting the game keep more pages in VRAM, and what would that do to frame times?

I tested two ways of choosing which pages to move, cscan and a bitmap-backed CLOCK-Pro variant, on the same seven synthetic access patterns. Both had a 512 MiB VRAM budget and the same migration limits. During continuous streaming, cscan served 4,096 of 32,768 foreground accesses from VRAM without moving a single page. CLOCK-Pro served 2,304 and made 1,696 page moves. On longer bursts, CLOCK-Pro served 8,288 accesses from VRAM versus 4,064 for cscan, but made 1,776 moves versus 1,088. These were simulated accesses and migrations. We haven’t measured how much physical RAM this frees or whether the extra moves cause stutter in-game.

I don’t have the game to test this myself. Would you be interested in a follow-up A/B test on your 16 GB machine? I’d keep the 3,977 MiB heap, save, route, graphics settings, and cscan policy identical, and change only the VRAM budget for game pages, starting with 512 MiB versus 3,072 MiB. The two numbers I’d most like to compare are the lowest available system RAM and P99 frame time. VRAM and GTT usage, swap-ins, and the number of frames over 200 ms would help explain whether the higher budget gives us more RAM headroom without introducing new stalls.

**@⁠lucalocastro** on GitHub · 2026-12-03 22:18 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/327#issuecomment-7394028930) @⁠simoalanne, your 16 GB results gave me a follow-up question. With the Series X streaming heap fixed at `VICTORY_TILE_HEAP_MB=3977`, how much more system RAM could we free by letting the game keep more pages in VRAM, and what would that do to frame times? I tested two ways of choosing which pages to move, `cscan` and a bitmap-backed CLOCK-Pro variant, on the same seven synthetic access patterns. Both had a 512 MiB VRAM budget and the same migration limits. During continuous streaming, `cscan` served 4,096 of 32,768 foreground accesses from VRAM without moving a single page. CLOCK-Pro served 2,304 and made 1,696 page moves. On longer bursts, CLOCK-Pro served 8,288 accesses from VRAM versus 4,064 for `cscan`, but made 1,776 moves versus 1,088. These were simulated accesses and migrations. We haven’t measured how much physical RAM this frees or whether the extra moves cause stutter in-game. I don’t have the game to test this myself. Would you be interested in a follow-up A/B test on your 16 GB machine? I’d keep the 3,977 MiB heap, save, route, graphics settings, and `cscan` policy identical, and change only the VRAM budget for game pages, starting with 512 MiB versus 3,072 MiB. The two numbers I’d most like to compare are **the lowest available system RAM** and **P99 frame time**. VRAM and GTT usage, swap-ins, and the number of frames over 200 ms would help explain whether the higher budget gives us more RAM headroom without introducing new stalls.
This discussion has been locked. Commenting is limited to contributors.
No description provided.