Super build: performance PRs behind one master switch (VICTORY_PERF_NEXT), SCREEN_EARLY on against driving stalls #4772
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!4772
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4771"
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?
@NICKNAMErutschovkonikovan on GitHub · 2026-12-01 06:56 UTC · original
NICKNAMErutschovkonikovan:super→main· +24113 −816 · 80 files · 129 commits · closed without mergingRefs #4663
What it changes
This is the "super" build of the special version, now brought up to date with upstream
main(5fabb46e). The open performance PRs are each kept behind a switch of their own, all under one master switch,VICTORY_PERF_NEXT, which is on by default. A part's ownVICTORY_...=0/1always wins over the master switch. At the start, the log has one line that names every part as on or off, so two runs can be compared from their logs alone. The special-version features from #3590 and #3854 come along with it.VICTORY_SUBMIT_SPLITVICTORY_VRAM_WINDOWS_BARVICTORY_WATCH_UNLOCKED_PROTECT+VICTORY_WATCH_LOCKFREE_PUBLISHVICTORY_GUARD_SPINVICTORY_LANDED_FASTVICTORY_REMAP_COMPACT_EVERYVICTORY_SHADER_RO_LOADSVICTORY_SUBMIT_DIRTY_PAGESVICTORY_MAP_ONCEVICTORY_SCREEN_EARLY0for either half now turns both off, and the log says so.VICTORY_SCREEN_EARLY: #4663 logged screen-budget pipeline waits of up to 3 s, several of them in one frame. We saw stalls of up to 4 s while driving into areas whose pipelines were not made yet. With this part on, passes over the screen are queued when the title creates them, instead of when a draw first asks for them.=0gives the old behaviour back.preload_markis passed through ourfinish().VICTORY_LOG=offis dropped.main:collapsible_ifand twotoo_many_argumentsfixes for clippy.How it was tested
SUBMIT_DIRTY_PAGESwas 0.44 fps and 1.3 ms of preparing slower than everything else on, so it is off.MAP_ONCEhad nothing to act on in four drives, so it is off.SCREEN_EARLY: four 120 s standing runs, A B B A.=0gave 18.88 and 19.00 fps;=1gave 19.16 and 19.11 fps. Runs over 100 ms: 22 and 9 with it off, 9 and 19 with it on. There were no crashes. Driving was not measured, so whether the stalls are gone while driving is not shown here.90c2bd72): the cache was warmed, then one 120 s run. The world loaded in 60 s and the start line lists every part as planned. 17.92 fps, longest frame 154 ms, 12 frames over 100 ms. That is about 1 fps below the runs before the merge; with a single run this is within the session drift we see (about ±10 %), and it has not been compared A/B yet.cargo clippy --workspace --all-targets --locked -- -D warnings: clean.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: clean.cargo test --workspace --locked: all pass. The two menu tests that read the settings file (gray_shadow_lift_...,the_language_is_live_...) can collide when run in parallel; they pass on their own and with--test-threads=4.cargo xtask policy: 493 files ok.Checked for overlap
pipeline/make.rs: #3788 (a screen pass holds frames for its 10 s once in all), #3819 (a pipeline's draws wait once a run), #4256 (what a frame waits on is made first) and #4472. This PR does not change their code paths; it only turns on the existingVICTORY_SCREEN_EARLY.🤖 Generated with Claude Code
Found in the review of rr-guides. The target pictures of 2026-11-29 (frame 9446, every other texel) have 78% of the frame at zero in the albedo, normal and F0 slots alike: the sky, which no G-buffer shader writes. The pass decoded it like geometry: black albedo, gloss 0 as roughness 1, and the normal zero decodes to. NVIDIA's integration guide for Ray Reconstruction (3.4.1 to 3.4.4) asks for albedo 0.5 there ("a common integration error is to leave sky pixels un-cleared"), specular albedo 0, normal 0 and roughness 0. The pass writes those where the colours of all three slots are zero (alpha is not asked; no texel of that frame was zero in the normal slot only), checked on WARP with a fifth texel. The same pictures answer the shortcut about vegetation, noted at BUILT_IN: the 27,266 written texels with vegetation's F0 hold a 12-bit y that is an 8-bit number widened in 99.9% (9.6% for F0 0.04, 6% by chance): 8-bit normals in the same 24-bit packing, which oct24 reads rightly. Only 44 texels had a normal without albedo and F0. The alpha byte and a frame with impostors in view are not measured. Co-Authored-By: Claude Fable 5.2 <[email protected]>84bd61e2) into test1 ef2fb972b4@CowboyBingus on GitHub · 2026-12-01 07:11 UTC · original
What exactly does this PR intend to do? The majority of these switches have active PRs open.
Super build: all performance PRs behind one master switch (VICTORY_PERF_NEXT), SCREEN_EARLY on against driving stalls (#4662)to Super build: performance PRs behind one master switch (VICTORY_PERF_NEXT), SCREEN_EARLY on against driving stalls5fabb46e) into super 90c2bd7200@NICKNAMErutschovkonikovan on GitHub · 2026-12-01 12:53 UTC · original
Fair point. I'll split it up: every change gets a single-change pull request of its own from current
main(the measured defaults such as SCREEN_EARLY on, the fixes to #3760 and #3958, the watch pair, and each of the F1 menu's additions and its look). Where an open pull request already carries a change, I'll test that one instead of opening a second. Once they are open, I'll close this one and link them here.@tillo88 on GitHub · 2026-12-01 16:39 UTC · original
Measured this PR (head
90c2bd72,VICTORY_PERF_NEXTat its default) merged on top of v2026.11.30.03, against the release as it is. Note that the merge brings this branch's whole update to main5fabb46eonto the release, so this measures the release plus all of that, not the performance parts alone. The start line confirmed the parts: "SUBMIT_SPLIT=on VRAM_WINDOWS_BAR=on WATCH_UNLOCKED_PROTECT=on GUARD_SPIN=200us LANDED_FAST=on SUBMIT_DIRTY_PAGES=off REMAP_COMPACT_EVERY=on WATCH_LOCKFREE_PUBLISH=on SHADER_RO_LOADS=on MAP_ONCE=off SCREEN_EARLY=on".VICTORY_PERF_NEXT.SUBMIT_SPLITon, and refresh time lower (5.90 vs 6.43 ms), while p95/p99 were lower than the base mean. So the lost time is not on the submitting thread; I can't tell from these logs where it went. An A/B withVICTORY_PERF_NEXT=0on the same build would separate the parts from the rest of the merge.a host command list did not close (0x80070057), about 20 s after the prison → plane cutscene cut. That is the known crash of #2237; the bare release stops at or near that cut in 9 of 42 runs on this bench, so this does not point at the PR.Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up run not counted for speed.
Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.
@tillo88 on GitHub · 2026-12-01 16:58 UTC · original
Measured this PR (head
90c2bd72,VICTORY_PERF_NEXTat its default) merged on top of v2026.11.30.03, 3 runs in two batches, against the release as it is. Note that the merge brings this branch's whole update to main5fabb46eonto the release, so this measures the release plus all of that, not the performance parts alone. The start line confirmed the parts: "SUBMIT_SPLIT=on VRAM_WINDOWS_BAR=on WATCH_UNLOCKED_PROTECT=on GUARD_SPIN=200us LANDED_FAST=on SUBMIT_DIRTY_PAGES=off REMAP_COMPACT_EVERY=on WATCH_LOCKFREE_PUBLISH=on SHADER_RO_LOADS=on MAP_ONCE=off SCREEN_EARLY=on".SUBMIT_SPLITon), refresh time about the same, and the frame line's preparation time about the same (16.7–17.0 vs ~16.5 ms). p95/p99 were lower than the base mean. So the lost time is not on the submitting thread or in preparation; I can't tell from these logs where it goes.VICTORY_PERF_NEXT. I have queued an A/B withVICTORY_PERF_NEXT=0on the same merge to separate them; it will run on the next release (v2026.12.01.01-test is now out).a host command list did not close (0x80070057): one at +2:15 after the log starts, one second after the masked twin[mesh 480d53fc48107a50, pixel f41ec9d9437c021c-mask]was made at the prison → plane cutscene cut, and one at +2:36, about 20 s after it. That is the known crash of #2237; the bare release stops at or near that cut in 8 of 47 runs on this bench (11 of 47 counting other points), so 2 of 5 does not point at the PR. One more warm-up stayed on the game's menu (the save did not load on the first start of a new build) and is left out of everything.Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up runs not counted for speed.
Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.
@trustno1-coder on GitHub · 2026-12-01 18:32 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