A lighter profile for 8 GB cards and 16 GB of RAM #196

Open
github-bot wants to merge 4 commits from github-bot/gh-196 into main AGit
Owner

@⁠Aggjeau on GitHub · 2026-11-27 19:33 UTC · original
Aggjeau:small-config-8gb-16gb → main · +477 −1 · 5 files · 4 commits · open

What this is

A lighter profile so the layer is playable and stable on an 8 GB card with 16 GB of RAM, half of what the README asks for, plus the measurements behind each step so that the defaults (or a "small PC" switch in the launcher / F1 menu) can be built from it.

The full write-up, with every change, the reason for it and each run's numbers, is in docs/small-config.md.

Test machine

CPU AMD Ryzen 5 7600 (6 cores, 12 threads, Zen 4)
GPU NVIDIA GeForce RTX 4060, 8 GB (7.0-7.2 GB budget for the process), driver 621.40, resizable BAR on, HAGS on
RAM 16 GB (shared GPU segment capped at ~7.8 GB)
Storage 240 GB NVMe (system; paging file from run J' on), 1 TB SATA QLC SSD (the dump)
Screen 1920x1080, 240 Hz
OS Windows 11 24H2 (build 26100)

Result: about 21 fps rendered (median), 42 shown with frame generation 2x, VRAM flat near 5.7 GB of a 7 GB budget, no device loss, no out-of-memory and no failed DLSS evaluation over the measured runs. With the repo's defaults the same PC lost the device after 8 to 13 minutes, or ran with whole sets of textures never drawn.

Why the defaults do not fit

Three budgets run out, and fixing one pushes on another:

  1. VRAM (~7.0 GB budget): frame generation takes 1.5-2 GB; the layer's reserves and its texture pool fill the rest. Past the budget, textures wait (characters drawn without heads), DLSS returns out of VRAM, and finally descriptor slots run out and the driver faults.
  2. The shared GPU segment, capped by Windows at half the RAM (~7.8 GB here): when title windows and upload buffers fill it, tens of thousands of E_OUTOFMEMORY and then device removed.
  3. RAM: the process commits ~20 GB, so Windows pages.

Changes

What Why / what it fixed
Code VICTORY_TEXTURE_SKIP_LEVELS / VICTORY_TEXTURE_SKIP_MIN in resource.rs (off by default) Leaves the largest level(s) out of host copies of big block-compressed title textures, through base_level like the held levels; views are clamped by from_base. Nothing lets go of a copy a slot still shows, so on 8 GB a world's textures cannot all fit next to frame generation (20,000+ waiting per new area); with 1 level of textures >= 2048 everything fits (5.7 GB) and the picture stays close. Unit test included.
Launcher scripts/play-small.ps1 + PLAY_SMALL.cmd The tested set on top of play-foxhound.ps1, each part switchable (options table in the doc). Game folder from victory.toml. -Preload runs the new victory preload with the same switches (the translations depend on them) before the game: 38.6 min once on the test machine (88,608 pipelines + 5,462 into the library), no first-run stutter after that.
Docs docs/small-config.md, README section Every step, why, and the numbers.

Two things found on the way that may be worth fixing in the code for every card:

  • The render target reserve is never given back on Series S. targets_room_kept releases VICTORY_CARD_ROOM_FOR_TARGETS_MB (3072) only once targets hold half of it. On Series S they level off near 1.3 GB, so ~1.75 GB of VRAM stays reserved for the whole run. The launcher sets 1536, which is released within a minute.
  • Texture pool holes. With the pool on, 1.2-1.7 GB of VRAM in use was free space inside partly used 64 MB blocks, counted against the budget and never given back. That is what pushed run F over the budget and into the driver fault. VICTORY_TEXTURE_POOL=0 removed it with no measurable frame-rate cost.

The tested set (what PLAY_SMALL.cmd starts)

Series S profile, DLSS Performance, frame generation 2x, VICTORY_TEXTURE_POOL=0, VICTORY_CARD_ROOM_FOR_TARGETS_MB=1536, VICTORY_WINDOWS_BAR_MB=1024 (keeps title windows off the shared segment), VICTORY_TEXTURE_ROOM_PERCENT=82, VICTORY_TEXTURE_SKIP_LEVELS=1 + VICTORY_TEXTURE_SKIP_MIN=2048, VICTORY_PLACED_ORDER=1, borderless full screen.

Runs (all Series S)

Rendered fps from the layer's own count, world lines only (> 2000 draws/frame): 10th percentile / median / 90th percentile. With FG, twice as many frames are shown. Runs that end in a fault are counted up to it.

Run Change Rendered fps p10 / med / p90 Result
0 repo launcher, FG, DLSS Quality 3.4 / 14.0 / 14.0 VRAM full, characters without heads
A no FG 3.5 / 20.7 / 26.8 heads back (VRAM was the cause)
B DLSS Performance + BAR 1 GB 3.6 / 23.3 / 26.8 median +13 %, stable
C B + FG, line 65 % 16.4 / 20.3 / 22.1 DLSS out of VRAM after 2 min
D FG, BAR off, line 60 % 11.1 / 19.2 / 23.6 shared segment full at 13 min, device lost
E FG + BAR + reserve 1536 16.8 / 20.3 / 22.9 over budget at 2 min (BAR and FG compete)
F no FG, line 90 % 11.9 / 22.9 / 31.6 pool holes push it over budget, 8 fps, driver fault at 8 min
G F + line 75 % 11.1 / 19.1 / 29.9 stable 14 min, but 12,000 textures waiting
H G + pool off 7.7 / 22.8 / 31.1 holes gone, VRAM 5.9-6.1 GB, 20,000 textures waiting (line low without FG)
I H + FG + skip 1 level >= 1024 7.3 / 20.1 / 21.9 0 errors, 5.3-5.6 GB, textures soft
J H + FG + skip 1 level >= 2048, line 82 % 11.7 / 21.4 / 24.7 0 errors, 5.7 GB flat, all textures in
J' J + Windows paging file on NVMe 16.4 / 20.5 / 23.6 0 errors, dips 40 % shallower

Notes

  • Measurements were made on d12eb1b; the branch is rebased on the current main (FSR 3 / MFG Unlocker), builds, passes cargo xtask policy and the new unit test, and the launcher was checked against the newer play-foxhound.ps1. It was not replayed in game on the new base.
  • Nothing changes for anyone who does not use the new launcher or set the new switch.
  • The build used RUSTFLAGS=-C target-cpu=native and fat LTO through environment variables only; nothing of that is committed.
  • Ideas for follow-ups (in the doc): pick these defaults from the adapter's budget at start; a real eviction of textures under VRAM pressure using per-frame feedback of the bindless slots shaders read.

🤖 Generated with Claude Code

**@⁠Aggjeau** on GitHub · 2026-11-27 19:33 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/196) `Aggjeau:small-config-8gb-16gb` → `main` · +477 −1 · 5 files · 4 commits · open ## What this is A lighter profile so the layer is **playable and stable on an 8 GB card with 16 GB of RAM**, half of what the README asks for, plus the measurements behind each step so that the defaults (or a "small PC" switch in the launcher / F1 menu) can be built from it. The full write-up, with every change, the reason for it and each run's numbers, is in [`docs/small-config.md`](https://github.com/Aggjeau/VIctory-NVIDIA/blob/small-config-8gb-16gb/docs/small-config.md). **Test machine** | | | |---|---| | CPU | AMD Ryzen 5 7600 (6 cores, 12 threads, Zen 4) | | GPU | NVIDIA GeForce RTX 4060, 8 GB (7.0-7.2 GB budget for the process), driver 621.40, resizable BAR on, HAGS on | | RAM | 16 GB (shared GPU segment capped at ~7.8 GB) | | Storage | 240 GB NVMe (system; paging file from run J' on), 1 TB SATA QLC SSD (the dump) | | Screen | 1920x1080, 240 Hz | | OS | Windows 11 24H2 (build 26100) | **Result**: about **21 fps rendered (median), 42 shown with frame generation 2x**, VRAM flat near **5.7 GB of a 7 GB budget**, no device loss, no out-of-memory and no failed DLSS evaluation over the measured runs. With the repo's defaults the same PC lost the device after 8 to 13 minutes, or ran with whole sets of textures never drawn. ## Why the defaults do not fit Three budgets run out, and fixing one pushes on another: 1. **VRAM** (~7.0 GB budget): frame generation takes 1.5-2 GB; the layer's reserves and its texture pool fill the rest. Past the budget, textures wait (characters drawn without heads), DLSS returns `out of VRAM`, and finally descriptor slots run out and the driver faults. 2. **The shared GPU segment**, capped by Windows at **half the RAM** (~7.8 GB here): when title windows and upload buffers fill it, tens of thousands of `E_OUTOFMEMORY` and then `device removed`. 3. **RAM**: the process commits ~20 GB, so Windows pages. ## Changes | | What | Why / what it fixed | |---|---|---| | Code | `VICTORY_TEXTURE_SKIP_LEVELS` / `VICTORY_TEXTURE_SKIP_MIN` in `resource.rs` (**off by default**) | Leaves the largest level(s) out of host copies of big block-compressed title textures, through `base_level` like the held levels; views are clamped by `from_base`. Nothing lets go of a copy a slot still shows, so on 8 GB a world's textures cannot all fit next to frame generation (20,000+ waiting per new area); with 1 level of textures >= 2048 everything fits (5.7 GB) and the picture stays close. Unit test included. | | Launcher | `scripts/play-small.ps1` + `PLAY_SMALL.cmd` | The tested set on top of `play-foxhound.ps1`, each part switchable (options table in the doc). Game folder from `victory.toml`. `-Preload` runs the new `victory preload` with the same switches (the translations depend on them) before the game: 38.6 min once on the test machine (88,608 pipelines + 5,462 into the library), no first-run stutter after that. | | Docs | `docs/small-config.md`, README section | Every step, why, and the numbers. | Two things found on the way that may be worth fixing in the code for every card: - **The render target reserve is never given back on Series S.** `targets_room_kept` releases `VICTORY_CARD_ROOM_FOR_TARGETS_MB` (3072) only once targets hold half of it. On Series S they level off near 1.3 GB, so **~1.75 GB of VRAM stays reserved for the whole run**. The launcher sets 1536, which is released within a minute. - **Texture pool holes.** With the pool on, 1.2-1.7 GB of VRAM in use was free space inside partly used 64 MB blocks, counted against the budget and never given back. That is what pushed run F over the budget and into the driver fault. `VICTORY_TEXTURE_POOL=0` removed it with no measurable frame-rate cost. ## The tested set (what `PLAY_SMALL.cmd` starts) Series S profile, DLSS Performance, frame generation 2x, `VICTORY_TEXTURE_POOL=0`, `VICTORY_CARD_ROOM_FOR_TARGETS_MB=1536`, `VICTORY_WINDOWS_BAR_MB=1024` (keeps title windows off the shared segment), `VICTORY_TEXTURE_ROOM_PERCENT=82`, `VICTORY_TEXTURE_SKIP_LEVELS=1` + `VICTORY_TEXTURE_SKIP_MIN=2048`, `VICTORY_PLACED_ORDER=1`, borderless full screen. ## Runs (all Series S) Rendered fps from the layer's own count, world lines only (> 2000 draws/frame): 10th percentile / median / 90th percentile. With FG, twice as many frames are shown. Runs that end in a fault are counted up to it. | Run | Change | Rendered fps p10 / med / p90 | Result | |---|---|---|---| | 0 | repo launcher, FG, DLSS Quality | 3.4 / 14.0 / 14.0 | VRAM full, characters without heads | | A | no FG | 3.5 / 20.7 / 26.8 | heads back (VRAM was the cause) | | B | DLSS Performance + BAR 1 GB | 3.6 / 23.3 / 26.8 | median +13 %, stable | | C | B + FG, line 65 % | 16.4 / 20.3 / 22.1 | DLSS `out of VRAM` after 2 min | | D | FG, BAR off, line 60 % | 11.1 / 19.2 / 23.6 | shared segment full at 13 min, device lost | | E | FG + BAR + reserve 1536 | 16.8 / 20.3 / 22.9 | over budget at 2 min (BAR and FG compete) | | F | no FG, line 90 % | 11.9 / 22.9 / 31.6 | pool holes push it over budget, 8 fps, driver fault at 8 min | | G | F + line 75 % | 11.1 / 19.1 / 29.9 | stable 14 min, but 12,000 textures waiting | | H | G + pool off | 7.7 / 22.8 / 31.1 | holes gone, VRAM 5.9-6.1 GB, 20,000 textures waiting (line low without FG) | | I | H + FG + skip 1 level >= 1024 | 7.3 / 20.1 / 21.9 | 0 errors, 5.3-5.6 GB, textures soft | | **J** | **H + FG + skip 1 level >= 2048, line 82 %** | **11.7 / 21.4 / 24.7** | **0 errors, 5.7 GB flat, all textures in** | | J' | J + Windows paging file on NVMe | 16.4 / 20.5 / 23.6 | 0 errors, dips 40 % shallower | ## Notes - Measurements were made on `d12eb1b`; the branch is rebased on the current `main` (FSR 3 / MFG Unlocker), builds, passes `cargo xtask policy` and the new unit test, and the launcher was checked against the newer `play-foxhound.ps1`. It was not replayed in game on the new base. - Nothing changes for anyone who does not use the new launcher or set the new switch. - The build used `RUSTFLAGS=-C target-cpu=native` and fat LTO through environment variables only; nothing of that is committed. - Ideas for follow-ups (in the doc): pick these defaults from the adapter's budget at start; a real eviction of textures under VRAM pressure using per-frame feedback of the bindless slots shaders read. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Below the README's requirements (12 GB card, 32 GB RAM) the defaults run out
of VRAM (textures never drawn, DLSS "out of VRAM") or of the shared GPU
segment, which Windows caps at half the RAM (device lost after 8-13 min).

- resource.rs: VICTORY_TEXTURE_SKIP_LEVELS / VICTORY_TEXTURE_SKIP_MIN (off by
  default): the host copy of a big block-compressed title texture starts N
  levels later, through base_level as the held levels do; views are clamped
  by from_base. A quarter of the memory per level. Unit test included.
- scripts/play-small.ps1 + PLAY_SMALL.cmd: the tested set on top of
  play-foxhound.ps1 (Series S, DLSS Performance, FG 2x, texture pool off,
  render target reserve 1536 MB, title windows in BAR memory, texture line
  82 %, 1 level left out of textures >= 2048), game folder from victory.toml.
- docs/small-config.md: why each change, the two issues found on the way
  (the render target reserve is never given back on Series S; 1.2-1.7 GB of
  texture pool holes), and every run's numbers. README links it.

Measured on an 8 GB card with 16 GB of RAM: ~21 fps rendered (42 shown),
VRAM flat near 5.7 GB of 7, no device loss.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:35:28 +00:00
Author
Owner

@⁠latesheyd-glitch on GitHub · 2026-11-27 19:34 UTC · original

10 fps on rtx 3050 8gb

**@⁠latesheyd-glitch** on GitHub · 2026-11-27 19:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/196#issuecomment-7226667699) 10 fps on rtx 3050 8gb
The translations depend on the switches, so the preload runs with the same
set as the game. Timed on the test machine: 38.6 min once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
scripts\fullscreen.ps1 waits at most 3 minutes for the game's window and gave
up after a -Preload (38 min); the layer's own borderless window is made when
the window is created. The -High job waits up to 2 hours for the same reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/196/head:github-bot/gh-196'
git switch 'github-bot/gh-196'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-196'
git switch 'github-bot/gh-196'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-196'
git switch 'github-bot/gh-196'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-196'
git switch 'main'
git merge --squash 'github-bot/gh-196'
git switch 'main'
git merge --ff-only 'github-bot/gh-196'
git switch 'main'
git merge 'github-bot/gh-196'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.