Optimizations for RTX 5070 Ti + Ryzen 5 5600X, part 2: on v2026.11.30.03 #4480
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4480"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by erickbobd on 2026-11-30T20:58:53Z.
Continues #831 (RTX 5070 Ti 16 GB + Ryzen 5 5600X + 32 GB RAM), now on top of v2026.11.30.01.
What is in it
VICTORY_PIPELINE_WAIT_ONCE,VICTORY_PIPELINE_WAIT_BACKLOG,VICTORY_PIPELINE_SLOW_WORKERS;VICTORY_TEXTURE_LOOK_ONCE,VICTORY_TEXTURE_READ_AHEAD,VICTORY_STAGING_NO_ZERO;VICTORY_SEND_COPIED_FIND,VICTORY_FILES_BUFFERED;VICTORY_REFRESH_SET,VICTORY_TITLE_WRITE_RANGE,VICTORY_UNDER_PARTS,VICTORY_PLACED_CONSTANTS;VICTORY_PAGE_SKIP: a hash per 4 KiB piece, so a refresh skips pieces the title rewrote with the same bytes.VICTORY_DSTORAGE_CACHE=all|bcpack,VICTORY_DSTORAGE_CACHE_GB).VICTORY_REFRESH_TOP=1:VICTORY_TRANSLATOR_PIN(build time) keeps a build's translator identity, so a merge that translates the same way reuses its shader cache and pipeline library.Measured
Standing in the world, the same 2-minute stretch replayed with
VICTORY_INPUT_REPLAY, runs interleaved, with the same executable and the switches on or off:victory playdefaults)The fork switches plus
VICTORY_PAGE_SKIPtake off about 5 ms a frame (~10 %).Where the frame still goes
On this CPU the submitting thread is the limit. Its refreshes cost 70–90 ms of CPU a frame across the helpers, and only ~12 ms of that is copying. Most of the rest is write tracking of view memory:
guard()andVirtualProtectunder the global guards lock, about 18 ms of CPU.VICTORY_GUARD_HOTmade it worse: 50 ms gave 65.8 ms a frame, 200 ms gave 117.9.Opened as a backup of this work; nothing is meant to change default behaviour.
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by erickbobd on 2026-11-30T22:12:05Z.
Updated to v2026.11.30.03 (merged; two small conflicts). Measured on the same 2-minute stretch, interleaved: 30.03 + these switches 53.5 / 56.9 ms with the new default
VICTORY_PIPELINE_WAIT_ALL(single frames of 9.8 s and 55 s); withVICTORY_PIPELINE_WAIT_ALL=053.8 / 52.7 ms and no long stops, against 30.01 + these switches 49.6 / 53.6 / 52.8 ms. The translator change of 30.03 made 6,817 of 83,559 known pipelines again (16 min preload); the rest were reused by content.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by IRennie74 on 2026-11-30T22:38:48Z.
Two things I noticed, plus a data point from a similar CPU:
big_first()(crates/victory-gpu/src/host.rs:13812,VICTORY_REFRESH_BIG_FIRST, on by default) has no caller on the branch.cargo clippy -- -D warningswill refuse it as dead code. CI has not run on this head (the CI run is waiting for approval), so that has not shown yet. If it is meant to be wired in, note it is the one switch here that is on by default, which goes against the "every switch off by default" in the description.Cargo.lockchanges (blake3added to victory-hle). The lockfile is hashed intoVICTORY_TRANSLATOR(crates/victory-gpu/build.rs), so merging this as is invalidates every user's shader cache and pipeline library.VICTORY_TRANSLATOR_PINdoes not help them, because it is a build-time variable.On a Ryzen 5 5600X with an RTX 3060 (#4554), cutting refresh time alone has not shown up in fps.
VICTORY_DIRTY_PAGES+LIST_SUMMARYtook refreshes from 12.7 to 10.9 ms, but the submitting thread's total went only from 40.2 to 39.7 ms, and fps stayed within noise. Other stages absorbed the savings on a CPU this close to its limit. Your 51 vs 55.8 ms is interleaved on the same stretch, so it may well hold. Still, if you split it up, it would help to know which of the switches carries the 5 ms.VICTORY_GUARD_HOTwas worse for us too: 50 ms gave 18.0 fps against 18.1-18.6, and 200 ms gave 12.0-12.7.Your note on
VICTORY_PIPELINE_WAIT_ALL(single frames of 9.8 s and 55 s after the 30.03 translator change) is worth an issue of its own. It is on by default on main, and anyone updating gets the same cold pipelines.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CowboyBingus on 2026-12-01T00:17:34Z.
You should probably break this down into individual components and open those as PRs. I highly doubt anyone here is going to be able to review 40,000 lines of code across two PRs. 98 file changes means this is going to break pretty much every time
mainmoves.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:40:59Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed