victory-gpu: let the texture pass spend more of a frame on cards over 12 GB and while catching up; turn texture catch-up on #532
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!532
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-532"
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?
@henriazz10 on GitHub · 2026-11-28 00:25 UTC · original
henriazz10:perf/texture-streaming-rtx50→main· +55 −4 · 2 files · 1 commits · openSummary
apps/victory/src/play.rssetVICTORY_TEXSPK_PASS_MS=8,VICTORY_TEXTURE_CATCHUP=0, andVICTORY_TEXTURE_STAGE_MS=16. Incrates/victory-gpu/src/draw.rs(State::heap_textures),texspk_pass_ms()clamped every frame's combined texture passes (early_textures+heap_textures) to 8 ms even when the card had gigabytes of free VRAM (0 held back for room,0 at their bytesinvictory-nvidia-play-20261127-233030-46360.log) and thousands of due slots (1,462-4,218due,1-8frames late,93passes stopped at their time).texspk_cap_ms(base_cap_ms, vram_budget, room, pressured, catchup_active)incrates/victory-gpu/src/draw.rs: keepsbase_cap_ms(8 ms) on<= 12 GiBcards, full cards (!room), or pressured host RAM; doubles the cap (16 ms) whenvram_budget > 12 GiBandroomis true; and triples the cap (24 ms, matching the 3x catch-upspanandper_framebyte budget) whencatchup_active(on_time >= 1024 && room && !pressured).VICTORY_TEXTURE_CATCHUP=1and raisedVICTORY_TEXTURE_STAGE_MS=24inapps/victory/src/play.rs. Safe on 12 GB cards because catch-up only activates whenon_time >= 1024 && room && !pressured.crates/victory-gpu/src/draw.rsapps/victory/src/play.rsNegative Control
Before implementing
texspk_cap_msscaling:cargo test -p victory-gpu --lib texspk_cap_scales_with_vram_and_catchupthread 'draw::tests::texspk_cap_scales_with_vram_and_catchup' panicked at crates\victory-gpu\src\draw.rs:6006:9: assertion 'left == right' failed: left: 8, right: 24)Commands & Checks
cargo test -p victory-gpu --lib texspk_cap_scales_with_vram_and_catchup: exit 0 (1 passed; 0 failed)cargo test -p victory --locked: exit 0 (23 passed; 0 failedunit +2 passed; 0 failedintegration)git diff --check: exit 0cargo fmt --all -- --check: exit 1 (pre-existing formatting diffs onmain64d4931in untouched files and untouched lines ofdraw.rs/play.rs)cargo clippy --workspace --all-targets --locked -- -D warnings: exit 101 (pre-existingclippy::precedenceerror incrates/victory-formats/src/texture.rs:1346)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: exit 101 (same pre-existing error incrates/victory-formats/src/texture.rs:1346)cargo test --workspace --locked: exit 101 (435 passed, 2 pre-existing failures incrates/victory-gpu/src/indirect.rs:host_list_budget_starts_empty_at_each_submissionandwarp_batch_charges_every_execution)Before / After Game Runs
VICTORY_WARMUP_RESTART=0):victory.exe play <dump>\game_scarlett_master.exe --set VICTORY_WARMUP_RESTART=0victory-nvidia-play-20261128-000026-51684.log):414.5 fps,5 slots, 0 due (oldest 0 frames ago), 0 waiting,13 stopped at their time(next 5 s:14 stopped at their time,0 slots, 0 due); steady title screen419.9 fps.victory-nvidia-play-20261128-000149-64144.log):430.0 fps,0 slots, 0 due (oldest 0 frames ago), 0 waiting.victory-nvidia-play-20261128-000626-30924.log):422.1 fps,5 slots, 0 due (oldest 0 frames ago), 0 waiting,11 stopped at their time(next 5 s:7 stopped at their time,0 slots, 0 due,427.2 fps).victory-nvidia-play-20261128-000757-40524.log):429.8 fps,0 slots, 0 due (oldest 0 frames ago), 0 waiting,5 stopped at their time(next 5 s:8 stopped at their time,428.1 fps).Hand test in play (reviewer)
The runs above never left the title screen, so they say nothing about streaming. The user then played a build of this branch together with #516 (cherry-picked on top, main
64d4931) on the RTX 5080: open water, the bridge, mangroves, with DLSS frame generation on at times. Window title: 16-18 fps rendered (32 fps with frame generation) at 3900-6250 draws/frame; dedicated card memory peaked at 13.3 of 16 GB. The user called it the best build so far ("the best so far"). That is a subjective comparison, not a measurement, and it does not separate this change from #516. Some rectangular patches on the water, under the bridge, are still visible; those are left for a separate change.What Was Not Tested
1,462-4,218due-slot bursts occur); the in-game catch-up path (on_time >= 1024) is verified by unit testtexspk_cap_scales_with_vram_and_catchupand analyzed againstvictory-nvidia-play-20261127-233030-46360.log.AI-assisted. Gemini 4 Hydrogen (Antigravity CLI) wrote the change and ran the checks; Claude Code reviewed it.
🤖 Generated with Claude Code
@Machad3x on GitHub · 2026-11-28 01:27 UTC · original
Tested in a batch on an RTX 3080 Ti + Ryzen 7 5700X, 1440p, DLSS Quality, title ray tracing on (VICTORY_BVH_BUILDER=1), 240 s run into the prison cell scene. Batch: #516, #501, #498, #497, #532, #521.
Result: alive for the whole run, 61.5-63.9 ms/frame, 1 draw/frame dropped (not from this batch), no shader or pipeline refused.
No problem found in this PR.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.