Optimizations for RTX 5070 Ti + Ryzen 5 5600X, part 2: on v2026.11.30.03 #4481
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4481
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@erickbobd on GitHub · 2026-11-30 20:58 UTC · original
erickbobd:rtx5070ti-5600x-optimizations-2→main· +19702 −1198 · 98 files · 119 commits · closed without mergingContinues #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
- ffxQuery: when the title's shipping FSR4 gives no jitter phase count (it refuses sizes it has no tables for, or has no context), the title's jitter ring stays 0 long and it divides by zero (a player's crash at game+0x28f03e8). The count is now FidelityFX's own formula in that case; an answer of the DLL's own is kept. - clzero loops: stub areas are made near each loop that the ones so far cannot reach with a jmp rel32 (a title DLL far from the exe was left to the emulation; the test failed about one run in four for it). - allocate_upload (thin lists) and the upload arenas say why they answer null, which the title's structure builder ends the run on ("Failed to allocate upload buffer", seen on a 32 GB PC). - known.rs: a raw NUL in a test string written as \0 (the asset policy refused the file). - README: how the frame pipeline was rebuilt, stage by stage.8fc2254into PR 18 (9a9d515) 514c79feb663b902f): Series S picture row, memory stack on 42256700e468fa20e4) onto 30.01 08721f638b051513ed) into v2026.11.29.05 4e3682e415Optimizations for RTX 5070 Ti + Ryzen 5 5600X, part 2: on v2026.11.30.01to Optimizations for RTX 5070 Ti + Ryzen 5 5600X, part 2: on v2026.11.30.03@erickbobd on GitHub · 2026-11-30 22:12 UTC · original
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.@IRennie74 on GitHub · 2026-11-30 22:38 UTC · original
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 (#4555), 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.@CowboyBingus on GitHub · 2026-12-01 00:17 UTC · original
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.@trustno1-coder on GitHub · 2026-12-01 18:40 UTC · original
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