Submissions: SUBMIT_SPLIT, OFF_LINE and UPLOAD_AHEAD on by default #4654
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4654"
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 101Leafy on 2026-12-01T00:49:40Z.
The card waits 25-45 ms a frame on the submitting thread. Three switches already here take work off that thread, but they are opt-in:
VICTORY_SUBMIT_SPLIT: prepare the next submission while one is sent.VICTORY_OFF_LINE: the card steps' slots on the sender.VICTORY_UPLOAD_AHEAD: first uploads of new textures on their own copy queue.This turns each one on unless it is set to 0. Upload ahead works on its own. The split send and the slots off the line also need the relay's copy queue (
VICTORY_RELAY_COPY=1), which this PR leaves opt-in, so with it unset those two change nothing. We run all four on.Two files, the switch reads and the docs.
cargo check -p victory-gpuis clean.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-12-01T01:08:36Z.
Code review location:
crates/victory-gpu/src/host.rs; line 5311This gate is reached on the normal
victory playpath. Its settings already supplyVICTORY_RELAY=2,VICTORY_RELAY_COPY=1andVICTORY_UPLOAD_AHEAD=1. With a working copy queue and the ordinary sender settings, this PR therefore enables split-send and off-line slots for regular starts without an explicit user switch. Play defaultsThe RTX 3070 / Ryzen 5 5600 / 16 GB report #4591 compared free-play runs of the same local build with only
VICTORY_SUBMIT_SPLITchanged. With the split on, 11.4% of the logged frame samples were below 6 FPS, versus 0% with it off. This is free-play evidence, and the reported direction matters for a default change. Could split-send stay opt-in pending a matched-route check on a saturated six-core rig? Reported A/BImported from trustno1-coder/VIctory-NVIDIA. Originally posted by IRennie74 on 2026-12-01T06:28:29Z.
More on tyr0nsur's point that
victory playalready meets the split-send gate. Here isVICTORY_SUBMIT_SPLIT=1on another 6-core: Ryzen 5 5600X, RTX 3060 12 GB, 32 GB, Series S at 960x540 with DLSS Performance, standing in the opening, with A/B/A baselines from the same session. It was one of four switches we tried one at a time against the same baselines. All four came out at 16.5-17.9 fps against 17.3-18.5 for the baselines, so the split gained nothing there and may have cost a little.Our reading of why: on that PC the submitting thread is busy 44-54 ms of a 55-58 ms frame, the title's threads take about 3 cores, and the CPU runs about 460 ms of work per 52 ms frame on 12 threads. One more busy thread on the submission path competes for the cores it would free.
VICTORY_SUBMIT_FRAMES=2behaved the same way: the title's wait at the gate went to zero, and the submitting thread's work grew by about as much.With that and the RTX 3070 / Ryzen 5 5600 report, two 6-core PCs saw no gain or a loss, and the description has no before/after. Could the split stay opt-in, or be on only above some core count, until there's a measurement where it helps?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by DoubleD17 on 2026-12-01T11:26:16Z.
A measurement of what this changes under
victory play, on an 8-core CPU.victory playalready setsVICTORY_RELAY_COPY=1andVICTORY_UPLOAD_AHEAD=1. So under it, this PR's change isVICTORY_SUBMIT_SPLITandVICTORY_OFF_LINEgoing on. That is what we compared, with the switches that are on main, without a build of this branch.Setup
5fabb46efor both arms (it carries an unrelated PR's code, switched off in both).--set,VICTORY_SUBMIT_SPLIT=0 VICTORY_OFF_LINE=0against both at1.Light view only. These are the seconds where the idle camera's heavier view is not on screen. Each run is compared with the controls interpolated in time.
The four control runs were 48.9 to 51.2 ms (a spread of 2.4 ms). Mean: -5.5 ms a frame, +5.6 % fps.
Other figures
Picture: 800 frames per arm; we looked at every frame a frame-to-frame check flagged.
On this 8-core this matches what we measured for
SUBMIT_SPLITon older mains in #3809:c71899d9;84bd61e2.The 6-core result above differs. Our guess, not measured: the sending thread competes for cores there.
Not tested:
VICTORY_UPLOAD_AHEADandVICTORY_RELAY_COPY, which are already on under play.victory play.AI Assisted
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tillo88 on 2026-12-01T15:26:02Z.
Measured the three switches this PR turns on (
VICTORY_SUBMIT_SPLIT=1,VICTORY_OFF_LINE=1,VICTORY_UPLOAD_AHEAD=1, set on the launch) on v2026.11.30.03, against the release as it is. The PR only changes defaults, so nothing was merged (it does not merge on this release). The release's launch already setsVICTORY_RELAY_COPY=1, so all four were on; the log confirms the upload-ahead line ("textures uploaded ahead of the lists (VICTORY_UPLOAD_AHEAD=1)").VICTORY_SUBMIT_SPLITalone in #3809).a host command list did not close (0x80070057), one second after the masked twin was made, at 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 1 of 3 runs (warm-up included) does not point at these switches.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 trustno1-coder on 2026-12-01T18:35:44Z.
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