feat: texture size cap in VIctory, and 8 GB / 12 GB card presets in the launcher #396
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!396
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-396"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCChange
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::ramlineandresourcelines):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.rshosted: 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.rsheld_levels: its levels over the cap are never held, as if no view showed them, so they get no tiles;tiles::show_from, so no shader reads an empty level. The picture is that level's, slightly less sharp up close;Textures that are not 2D, single layer, multi-level, readable (no XOR swizzle) and over
VICTORY_LEVELS_MIN_KBare made as before. With the variable unset, nothing changes.Launcher: two presets beside Fast and Quality
VICTORY_CARD_WINDOWS_MBVICTORY_CARD_BUFFERS_MBVICTORY_TEXTURE_ROOM_PERCENTVICTORY_LIST_POOL_MB/_MOSTVICTORY_TEXTURE_MAX_SIZEThe 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.mdanddocs/fr/lanceur.mddescribe both presets and the cap.Linked issue: none.
Verification
The 3
victory-gpufailures (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 onmain(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,0and garbage mean off;64reads as 256.options::tests::the_8_gb_preset_cuts_the_card_reserves_below_the_profilesandthe_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 keepsVICTORY_LEVELS_ON_DEMAND=1, which the cap needs.every_variable_an_option_names_exists_in_victorys_sourcesnow covers both presets,VICTORY_TEXTURE_MAX_SIZEincluded.Checklist
E_NOTIMPL), never a fake success. (Not applicable.)This change was written with AI assistance (Claude Code), and tested on the author's machine.
🤖 Generated with Claude Code