fix(victory-gpu): reserve pool-eligible levels-on-demand textures #431
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/431"
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?
Imported from LooperSalty/AnyXboxX. Originally posted by mauroalvare on 2026-11-26T18:39:56Z.
Vice-Tay
Vice-Tay now considers levels-on-demand before sending an eligible texture to the committed texture pool. When levels-on-demand is enabled, the pool's ability to hold the texture no longer prevents a reserved allocation.
The GPU regression creates a texture that meets both requirements and verifies that it uses reserved backing.
Earlier Neptune description
Change
Adds
("VICTORY_LEVELS_ON_DEMAND", "1")toLOW_VRAM("8 GB card") andMID_VRAM("12 GB card") incrates/anyxboxx-launcher/src/options.rs(base8e32daa359adaa09dc8b8650867b492740055a70).Both presets set
VICTORY_TEXTURE_MAX_SIZE(1024and2048) to keep large mip levels off the card. In VIctory (third_party/victory/crates/victory-gpu/src/resource.rs:1454andtiles.rs:81),tiles::over_cap/VICTORY_TEXTURE_MAX_SIZEis only evaluated whencrate::tiles::wanted()is true — which requiresVICTORY_LEVELS_ON_DEMAND=1.In
crates/anyxboxx-launcher/profiles.toml, onlywindows-nvidiasetsVICTORY_LEVELS_ON_DEMAND=1;windows-amd,linux-amd,intel, andotherleave it unset. Selecting the 8 GB or 12 GB card preset on any AMD, Intel, Linux/Proton, or fallback host therefore passedVICTORY_TEXTURE_MAX_SIZEwithoutVICTORY_LEVELS_ON_DEMAND=1, causing VIctory to silently ignore the texture size cap.Including
("VICTORY_LEVELS_ON_DEMAND", "1")inLOW_VRAMandMID_VRAMmakes both presets self-contained across all profiles (and remains a no-op duplicate merge onwindows-nvidia, where it is already"1").Linked issue: N/A
Verification
Base reproduction (
8e32daa, before the edit tooptions.rs):After the fix:
Note:
detached::tests::sleeperis the launcher's helper test marked#[ignore]. Pure launcher environment/config change on Windows x64 (Ryzen 7 9700X, RTX 5070 Ti, 32 GB RAM).Oracle and test data
New unit test
env::tests::vram_presets_enable_levels_on_demand_on_non_nvidia_profilesincrates/anyxboxx-launcher/src/env.rsuses a synthetic temporary game directory and checksbuild_envfor bothPreset::LowVramandPreset::MidVramacrosswindows-amd,linux-amd,intel, andother. Fails on base8e32daaand passes with this change. No game, console, or SDK files were used.Checklist
E_NOTIMPL), never a fake success.test_readme_sync.pychecks it).AGENTS.mdallows (names, slots, argument shapes, flag values, HRESULTs, IIDs, counts), with how they were obtained; no address or RVA.THIRD_PARTY.md.Made with AI assistance (Antigravity).