Submissions: SUBMIT_SPLIT, OFF_LINE and UPLOAD_AHEAD on by default #4654

Closed
101Leafy wants to merge 1 commit from upstream-pr/4654 into main
101Leafy commented 2026-12-01 00:49:40 +00:00 (Migrated from github.com)

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-gpu is clean.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5576611686 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4654). Originally posted by [101Leafy](https://github.com/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-gpu` is clean.
tyr0nsur commented 2026-12-01 01:08:36 +00:00 (Migrated from github.com)

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 5311

@@ -5308,7 +5308,7 @@ fn split_send() -> bool {
     // The copy queue is asked for last: only a run with the switch on makes
     // it here, before the first submission is published, and the answer
     // stays (the thread that lands flights takes the same one).
-    crate::asked_for!("VICTORY_SUBMIT_SPLIT")
+    crate::toggled!("VICTORY_SUBMIT_SPLIT")

This gate is reached on the normal victory play path. Its settings already supply VICTORY_RELAY=2, VICTORY_RELAY_COPY=1 and VICTORY_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 defaults

The RTX 3070 / Ryzen 5 5600 / 16 GB report #4591 compared free-play runs of the same local build with only VICTORY_SUBMIT_SPLIT changed. 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/B

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review-comment:4747821752 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4654#discussion_r4747821752). Originally posted by [tyr0nsur](https://github.com/tyr0nsur) on 2026-12-01T01:08:36Z. **Code review location:** `crates/victory-gpu/src/host.rs`; line 5311 ~~~~diff @@ -5308,7 +5308,7 @@ fn split_send() -> bool { // The copy queue is asked for last: only a run with the switch on makes // it here, before the first submission is published, and the answer // stays (the thread that lands flights takes the same one). - crate::asked_for!("VICTORY_SUBMIT_SPLIT") + crate::toggled!("VICTORY_SUBMIT_SPLIT") ~~~~ --- This gate is reached on the normal `victory play` path. Its settings already supply `VICTORY_RELAY=2`, `VICTORY_RELAY_COPY=1` and `VICTORY_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 defaults](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/7d93ee07599bff5ceffdd1b50a1ed822bb854383/apps/victory/src/play.rs#L53-L72) The RTX 3070 / Ryzen 5 5600 / 16 GB report #4591 compared free-play runs of the same local build with only `VICTORY_SUBMIT_SPLIT` changed. 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/B](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4591#issuecomment-7295204559)
IRennie74 commented 2026-12-01 06:28:29 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by IRennie74 on 2026-12-01T06:28:29Z.


More on tyr0nsur's point that victory play already meets the split-send gate. Here is VICTORY_SUBMIT_SPLIT=1 on 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=2 behaved 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?

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7302914433 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4654#issuecomment-7302914433). Originally posted by [IRennie74](https://github.com/IRennie74) on 2026-12-01T06:28:29Z. --- More on tyr0nsur's point that `victory play` already meets the split-send gate. Here is `VICTORY_SUBMIT_SPLIT=1` on 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=2` behaved 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?
DoubleD17 commented 2026-12-01 11:26:16 +00:00 (Migrated from github.com)

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 play already sets VICTORY_RELAY_COPY=1 and VICTORY_UPLOAD_AHEAD=1. So under it, this PR's change is VICTORY_SUBMIT_SPLIT and VICTORY_OFF_LINE going on. That is what we compared, with the switches that are on main, without a build of this branch.

Setup

  • Hardware: RTX 5070 12 GB (driver 621.40), Ryzen 7 5800X (8 cores, 16 threads), 64 GB RAM, Windows 11.
  • Build: one release build of main 5fabb46e for both arms (it carries an unrelated PR's code, switched off in both).
  • Arms: by --set, VICTORY_SUBMIT_SPLIT=0 VICTORY_OFF_LINE=0 against both at 1.
  • Profile: Series X, 2560x1440 DLAA, frame generation off, ray tracing off.
  • Runs: idle camera from the same starting point, 150 s from the first world frame, four runs per arm, alternated (ABBA twice). Each run ends with 200 frames captured at 10 a second.

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.

run preparation, ms a frame against controls base fps against controls
on 1 44.3 -6.3 ms 18.8 +7.0 %
on 2 44.1 -5.8 ms 18.7 +5.2 %
on 3 44.6 -5.0 ms 18.7 +5.2 %
on 4 45.5 -4.9 ms 18.3 +5.0 %

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

  • Submitting thread ("in its submissions", mean over each run): 48.0 to 51.2 ms with the switches on, 52.9 to 61.7 ms off. With the split on, the sending thread reported about 4.5 to 4.8 ms a frame "recording what goes up to copies in the card's memory".
  • Heavy view (fewer seconds per run, noisier): preparation 47.1 to 50.8 ms on, 52.3 to 61.0 ms off.
  • GPU wait: about +0.8 ms a frame with the switches on (1.4 to 1.7 against 0.6 to 0.9).
  • Whole-run base fps: 16.48 to 17.65 on, 14.96 to 17.54 off. Two of the off runs were over the VRAM budget for most of the run (by about 210 and 285 MB on average), which costs fps by itself. That is why the comparison above is on the light view against interpolated controls.

Picture: 800 frames per arm; we looked at every frame a frame-to-frame check flagged.

  • Each arm had one flagged frame, and both are kinds we also see on main:
    • on: one frame drawn from a slightly different camera position;
    • off: distant foliage missing for one frame.
  • No other difference.

On this 8-core this matches what we measured for SUBMIT_SPLIT on older mains in #3809:

  • -6.5 ms on its own, on c71899d9;
  • -4.7 ms together with three other defaults, on 84bd61e2.

The 6-core result above differs. Our guess, not measured: the sending thread competes for cores there.

Not tested:

  • VICTORY_UPLOAD_AHEAD and VICTORY_RELAY_COPY, which are already on under play.
  • Starting outside victory play.
  • Movement, Series S, frame generation on, other cards.

AI Assisted

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7309641824 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4654#issuecomment-7309641824). Originally posted by [DoubleD17](https://github.com/DoubleD17) on 2026-12-01T11:26:16Z. --- A measurement of what this changes under `victory play`, on an 8-core CPU. `victory play` already sets `VICTORY_RELAY_COPY=1` and `VICTORY_UPLOAD_AHEAD=1`. So under it, this PR's change is `VICTORY_SUBMIT_SPLIT` and `VICTORY_OFF_LINE` going on. That is what we compared, with the switches that are on main, without a build of this branch. **Setup** - **Hardware:** RTX 5070 12 GB (driver 621.40), Ryzen 7 5800X (8 cores, 16 threads), 64 GB RAM, Windows 11. - **Build:** one release build of main 5fabb46e for both arms (it carries an unrelated PR's code, switched off in both). - **Arms:** by `--set`, `VICTORY_SUBMIT_SPLIT=0 VICTORY_OFF_LINE=0` against both at `1`. - **Profile:** Series X, 2560x1440 DLAA, frame generation off, ray tracing off. - **Runs:** idle camera from the same starting point, 150 s from the first world frame, four runs per arm, alternated (ABBA twice). Each run ends with 200 frames captured at 10 a second. **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. | run | preparation, ms a frame | against controls | base fps | against controls | |---|---|---|---|---| | on 1 | 44.3 | -6.3 ms | 18.8 | +7.0 % | | on 2 | 44.1 | -5.8 ms | 18.7 | +5.2 % | | on 3 | 44.6 | -5.0 ms | 18.7 | +5.2 % | | on 4 | 45.5 | -4.9 ms | 18.3 | +5.0 % | 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** - **Submitting thread** ("in its submissions", mean over each run): 48.0 to 51.2 ms with the switches on, 52.9 to 61.7 ms off. With the split on, the sending thread reported about 4.5 to 4.8 ms a frame "recording what goes up to copies in the card's memory". - **Heavy view** (fewer seconds per run, noisier): preparation 47.1 to 50.8 ms on, 52.3 to 61.0 ms off. - **GPU wait:** about +0.8 ms a frame with the switches on (1.4 to 1.7 against 0.6 to 0.9). - **Whole-run base fps:** 16.48 to 17.65 on, 14.96 to 17.54 off. Two of the off runs were over the VRAM budget for most of the run (by about 210 and 285 MB on average), which costs fps by itself. That is why the comparison above is on the light view against interpolated controls. **Picture:** 800 frames per arm; we looked at every frame a frame-to-frame check flagged. - Each arm had one flagged frame, and both are kinds we also see on main: - on: one frame drawn from a slightly different camera position; - off: distant foliage missing for one frame. - No other difference. On this 8-core this matches what we measured for `SUBMIT_SPLIT` on older mains in #3809: - -6.5 ms on its own, on c71899d9; - -4.7 ms together with three other defaults, on 84bd61e2. The 6-core result above differs. Our guess, not measured: the sending thread competes for cores there. **Not tested:** - `VICTORY_UPLOAD_AHEAD` and `VICTORY_RELAY_COPY`, which are already on under play. - Starting outside `victory play`. - Movement, Series S, frame generation on, other cards. AI Assisted
tillo88 commented 2026-12-01 15:26:02 +00:00 (Migrated from github.com)

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 sets VICTORY_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)").

fps submitting thread ms refresh ms p95 ms p99 ms
v2026.11.30.03, 21 runs (mean, range) 32.01 (31.49–32.46) 20.51 6.43 48.3 63.7
with the three switches (the only complete measured run) 32.45 16.57 5.88 45.7 59.9
  • Speed: one complete run, +1.4% fps. That is inside this route's run-to-run spread, so no measurable difference from one run.
  • The submitting thread was 16.6 ms a frame, below every base run (20.07–21.82), and refresh time 5.88 ms, below every base run (6.19–6.93). On this release the submitting thread is not what limits the frame here, which fits a shorter thread not turning into fps (the same as VICTORY_SUBMIT_SPLIT alone in #3809).
  • Crashes: measured run 1 stopped at +2:15 after the log starts with 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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7315900818 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4654#issuecomment-7315900818). Originally posted by [tillo88](https://github.com/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 sets `VICTORY_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)"). | | fps | submitting thread ms | refresh ms | p95 ms | p99 ms | |---|---|---|---|---|---| | v2026.11.30.03, 21 runs (mean, range) | 32.01 (31.49–32.46) | 20.51 | 6.43 | 48.3 | 63.7 | | with the three switches (the only complete measured run) | 32.45 | 16.57 | 5.88 | 45.7 | 59.9 | - **Speed:** one complete run, +1.4% fps. That is inside this route's run-to-run spread, so no measurable difference from one run. - The submitting thread was 16.6 ms a frame, below every base run (20.07–21.82), and refresh time 5.88 ms, below every base run (6.19–6.93). On this release the submitting thread is not what limits the frame here, which fits a shorter thread not turning into fps (the same as `VICTORY_SUBMIT_SPLIT` alone in #3809). - **Crashes:** measured run 1 stopped at +2:15 after the log starts with `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.
trustno1-coder commented 2026-12-01 18:35:44 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321192592 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4654#issuecomment-7321192592). Originally posted by [trustno1-coder](https://github.com/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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!4654
No description provided.