Super build: performance PRs behind one master switch (VICTORY_PERF_NEXT), SCREEN_EARLY on against driving stalls #4771
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by NICKNAMErutschovkonikovan on 2026-12-01T06:56:32Z.
Refs #4662
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: #4662 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), #4255 (what a frame waits on is made first) and #4471. This PR does not change their code paths; it only turns on the existingVICTORY_SCREEN_EARLY.🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CowboyBingus on 2026-12-01T07:11:41Z.
What exactly does this PR intend to do? The majority of these switches have active PRs open.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by NICKNAMErutschovkonikovan on 2026-12-01T12:53:18Z.
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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tillo88 on 2026-12-01T16:39:51Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tillo88 on 2026-12-01T16:58:59Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:32:41Z.
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