feat: texture size cap in VIctory, and 8 GB / 12 GB card presets in the launcher #396

Manually merged
github merged 3 commits from github-bot/gh-396 into main 2026-11-26 17:02:40 +00:00 AGit
Owner

@⁠4276b5yjdw-pixel3 on GitHub · 2026-11-26 16:41 UTC · original
4276b5yjdw-pixel3:feat/low-vram-presets → main · +220 −4 · 6 files · 3 commits · merged 2026-11-26 16:57 UTC

Change

On cards with less video memory than the Windows + NVIDIA profile was sized for, the game does not fit on the card: textures are refused, or the card spills into the PC's memory. This PR adds a texture size cap to VIctory and two launcher presets that use it.

Measured on an RTX 5060 8 GB (Windows 11, i5-12400F, 32 GB RAM, Series X, 1920x1080 display mode, Fast profile), from the VIctory log of one run (victory_gpu::ramline and resource lines):

  • card: 8,010 MB in use against a 6,823 MB budget; Windows moved the rest into shared memory (6,096 MB of it in use);
  • PC: 1,970 MB of RAM free, 2,180 MB of free commit;
  • texture queue refused for good: "the card has no room", textures the title fills holding only 2,051 MB.

The Fast profile's reserves on the card (1536 MB of draw-data windows, 1536 MB of buffer copies, 512 MB list pool) were sized on 12 to 16 GB cards, and the title's textures at full size do not fit beside them on 8 GB.

VIctory: VICTORY_TEXTURE_MAX_SIZE=<texels> (off unless set, 256 at the least)

Built on levels on demand (VICTORY_LEVELS_ON_DEMAND=1, crates/victory-gpu/src/tiles.rs):

  • resource.rs hosted: a texture the title fills whose level 0 is over the cap is made as a reserved, level-by-level texture, like a partly mapped one;
  • texture.rs held_levels: its levels over the cap are never held, as if no view showed them, so they get no tiles;
  • its views start at the first level within the cap through the existing tiles::show_from, so no shader reads an empty level. The picture is that level's, slightly less sharp up close;
  • each level cut leaves three quarters of that texture off the card.

Textures that are not 2D, single layer, multi-level, readable (no XOR swizzle) and over VICTORY_LEVELS_MIN_KB are made as before. With the variable unset, nothing changes.

Launcher: two presets beside Fast and Quality

Fast 12 GB card 8 GB card
VICTORY_CARD_WINDOWS_MB 1536 1024 512
VICTORY_CARD_BUFFERS_MB 1536 1024 512
VICTORY_TEXTURE_ROOM_PERCENT 93 90 85
VICTORY_LIST_POOL_MB / _MOST 512 / 2048 (profile) 256 / 256
VICTORY_TEXTURE_MAX_SIZE none 2048 1024

The 8 GB windows and buffer values are the ones measured on the RTX 5060 at a 5.8 fps median in the world (an earlier run with those reserves and a 1080p display mode, before the cap existed). The 12 GB preset is not measured on a 12 GB card, and neither preset has a full measured run with the cap yet; the description in the launcher and the guide say so. docs/launcher.md and docs/fr/lanceur.md describe both presets and the cap.

Linked issue: none.

Verification

cargo test --release -p anyxboxx-launcher        → test result: ok. 211 passed; 0 failed; 1 ignored
cargo fmt -p anyxboxx-launcher -- --check        → no diff
cargo test --release -p victory-gpu              → 240 passed; 3 failed; 4 ignored
python -m pytest -n auto                          → 1410 passed, 486 skipped (C++ runtime not built locally)
python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed!

The 3 victory-gpu failures (descriptor::host::tests::spans_say_the_next_start_and_the_lowest_level_viewed, indirect::tests::warp_card_patch_writes_the_masked_bytes_and_no_others, indirect::tests::warp_card_fetch_copies_flagged_pieces_to_their_slots) also fail on this machine with this change taken out (checked by stashing it); they are unrelated to it. Run on the PR branch, rebased on main (ce0f90f).

Oracle and test data

  • tiles::tests::the_size_cap_finds_the_first_level_within_it: 4096x4096 capped at 1024 starts at level 2, 4096x512 at level 2, a texture within the cap at level 0, never past the last level.
  • tiles::tests::the_size_cap_is_read_with_a_floor_of_256: unset, 0 and garbage mean off; 64 reads as 256.
  • options::tests::the_8_gb_preset_cuts_the_card_reserves_below_the_profiles and the_12_gb_preset_sits_between_fast_and_the_8_gb_one: each reserve is below Fast's (and the 12 GB one above the 8 GB one), the caps are 1024 and 2048, and the profile keeps VICTORY_LEVELS_ON_DEMAND=1, which the cap needs.
  • every_variable_an_option_names_exists_in_victorys_sources now covers both presets, VICTORY_TEXTURE_MAX_SIZE included.
  • Figures from the title are counts and sizes from the run's log only.

Checklist

  • The PR covers a single reviewable behaviour (fitting the game on 8 and 12 GB cards).
  • A test fails without this change and passes with it.
  • The commands and results of each check are given above.
  • An unimplemented function returns an error (E_NOTIMPL), never a fake success. (Not applicable.)
  • README: the same change in all 9 languages. (Not applicable: no README change; the launcher guide is updated in English and French.)
  • No game, console or SDK file, no key, no dump, no download link.
  • Findings drawn from a title: only memory counts and sizes from the run's log, measured as stated.
  • Code taken from another project: none.

This change was written with AI assistance (Claude Code), and tested on the author's machine.

🤖 Generated with Claude Code

**@⁠4276b5yjdw-pixel3** on GitHub · 2026-11-26 16:41 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/396) `4276b5yjdw-pixel3:feat/low-vram-presets` → `main` · +220 −4 · 6 files · 3 commits · merged 2026-11-26 16:57 UTC ## Change On cards with less video memory than the Windows + NVIDIA profile was sized for, the game does not fit on the card: textures are refused, or the card spills into the PC's memory. This PR adds a texture size cap to VIctory and two launcher presets that use it. **Measured on an RTX 5060 8 GB** (Windows 11, i5-12400F, 32 GB RAM, Series X, 1920x1080 display mode, Fast profile), from the VIctory log of one run (`victory_gpu::ramline` and `resource` lines): - card: **8,010 MB in use against a 6,823 MB budget**; Windows moved the rest into shared memory (**6,096 MB** of it in use); - PC: **1,970 MB of RAM free**, 2,180 MB of free commit; - texture queue refused for good: "the card has no room", textures the title fills holding only 2,051 MB. The Fast profile's reserves on the card (1536 MB of draw-data windows, 1536 MB of buffer copies, 512 MB list pool) were sized on 12 to 16 GB cards, and the title's textures at full size do not fit beside them on 8 GB. ### VIctory: `VICTORY_TEXTURE_MAX_SIZE=<texels>` (off unless set, 256 at the least) Built on levels on demand (`VICTORY_LEVELS_ON_DEMAND=1`, `crates/victory-gpu/src/tiles.rs`): - `resource.rs` `hosted`: a texture the title fills whose level 0 is over the cap is made as a reserved, level-by-level texture, like a partly mapped one; - `texture.rs` `held_levels`: its levels over the cap are never held, as if no view showed them, so they get no tiles; - its views start at the first level within the cap through the existing `tiles::show_from`, so no shader reads an empty level. The picture is that level's, slightly less sharp up close; - each level cut leaves three quarters of that texture off the card. Textures that are not 2D, single layer, multi-level, readable (no XOR swizzle) and over `VICTORY_LEVELS_MIN_KB` are made as before. With the variable unset, nothing changes. ### Launcher: two presets beside Fast and Quality | | Fast | 12 GB card | 8 GB card | | --- | --- | --- | --- | | `VICTORY_CARD_WINDOWS_MB` | 1536 | 1024 | 512 | | `VICTORY_CARD_BUFFERS_MB` | 1536 | 1024 | 512 | | `VICTORY_TEXTURE_ROOM_PERCENT` | 93 | 90 | 85 | | `VICTORY_LIST_POOL_MB` / `_MOST` | 512 / 2048 | (profile) | 256 / 256 | | `VICTORY_TEXTURE_MAX_SIZE` | none | 2048 | 1024 | The 8 GB windows and buffer values are the ones measured on the RTX 5060 at a **5.8 fps median** in the world (an earlier run with those reserves and a 1080p display mode, before the cap existed). **The 12 GB preset is not measured on a 12 GB card**, and neither preset has a full measured run with the cap yet; the description in the launcher and the guide say so. `docs/launcher.md` and `docs/fr/lanceur.md` describe both presets and the cap. Linked issue: none. ## Verification ``` cargo test --release -p anyxboxx-launcher → test result: ok. 211 passed; 0 failed; 1 ignored cargo fmt -p anyxboxx-launcher -- --check → no diff cargo test --release -p victory-gpu → 240 passed; 3 failed; 4 ignored python -m pytest -n auto → 1410 passed, 486 skipped (C++ runtime not built locally) python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed! ``` The 3 `victory-gpu` failures (`descriptor::host::tests::spans_say_the_next_start_and_the_lowest_level_viewed`, `indirect::tests::warp_card_patch_writes_the_masked_bytes_and_no_others`, `indirect::tests::warp_card_fetch_copies_flagged_pieces_to_their_slots`) also fail on this machine with this change taken out (checked by stashing it); they are unrelated to it. Run on the PR branch, rebased on `main` (`ce0f90f`). ## Oracle and test data - `tiles::tests::the_size_cap_finds_the_first_level_within_it`: 4096x4096 capped at 1024 starts at level 2, 4096x512 at level 2, a texture within the cap at level 0, never past the last level. - `tiles::tests::the_size_cap_is_read_with_a_floor_of_256`: unset, `0` and garbage mean off; `64` reads as 256. - `options::tests::the_8_gb_preset_cuts_the_card_reserves_below_the_profiles` and `the_12_gb_preset_sits_between_fast_and_the_8_gb_one`: each reserve is below Fast's (and the 12 GB one above the 8 GB one), the caps are 1024 and 2048, and the profile keeps `VICTORY_LEVELS_ON_DEMAND=1`, which the cap needs. - `every_variable_an_option_names_exists_in_victorys_sources` now covers both presets, `VICTORY_TEXTURE_MAX_SIZE` included. - Figures from the title are counts and sizes from the run's log only. ## Checklist - [x] The PR covers a single reviewable behaviour (fitting the game on 8 and 12 GB cards). - [x] A test fails without this change and passes with it. - [x] The commands and results of each check are given above. - [x] An unimplemented function returns an error (`E_NOTIMPL`), never a fake success. (Not applicable.) - [x] README: the same change in all 9 languages. (Not applicable: no README change; the launcher guide is updated in English and French.) - [x] No game, console or SDK file, no key, no dump, no download link. - [x] Findings drawn from a title: only memory counts and sizes from the run's log, measured as stated. - [x] Code taken from another project: none. This change was written with AI assistance (Claude Code), and tested on the author's machine. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
VIctory: VICTORY_TEXTURE_MAX_SIZE=<texels> (256 at the least, unset: off).
A texture the title fills whose level 0 is over the cap is made level by
level (levels on demand, VICTORY_LEVELS_ON_DEMAND=1), and its levels over
the cap are never held: they get no tiles, and its views start at the first
level within the cap (tiles::show_from), so nothing reads an empty level.
Each level cut leaves three quarters of that texture off the card.

Launcher: two presets beside Fast and Quality.
- "8 GB card": windows and buffer copies 512 MB, list pool 256 MB, texture
  room 85 %, textures capped at 1024. On an RTX 5060 8 GB the Windows +
  NVIDIA profile stood at 8,010 MB in use against a 6,823 MB budget (6,096
  MB of shared memory in use, 1,970 MB of RAM free, texture queue refused).
- "12 GB card": windows and buffer copies 1024 MB, texture room 90 %,
  textures capped at 2048 (only 4096 textures lose a level). Not measured on
  a 12 GB card.

Tests: the first level within the cap, the parsing of the cap, and both
presets against the tuned set and VIctory's sources.

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-11-26 16:46:03 +00:00
github manually merged commit 32484600ef into main 2026-11-26 17:02:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.