(Opt-in, +1 fps in light scenes) Prepare the next submission while the last one is sent (VICTORY_SUBMIT_SPLIT, VICTORY_OFF_LINE) #1066

Closed
yeedgrthfgv wants to merge 7 commits from upstream-pr/1066 into main
yeedgrthfgv commented 2026-11-28 12:37:00 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by yeedgrthfgv on 2026-11-28T12:37:00Z.


On CPU-bound PCs one thread sets the frame: the submitting thread (victory-submit, queue::behind lane, Host::send_late). On a Ryzen 5 9600X + RTX 5080 it is busy for nearly all of a 41 ms frame (a sampling profile puts 90 % of its time in send_late), and making other threads faster (#834, #801, VICTORY_WIDE_THREADS, VICTORY_ASK_EARLY, measured here) did not change the frame rate. Issues #699, #833, #855 and #985 show the same on other PCs.

This PR ports two switches from Biskwit/VIctory-reloaded that take work off that thread. Both are off by default. With them unset every submission takes the old path: nothing is published, the new sender thread is never started, wait_sent returns on an atomic before it takes any lock, and the card steps' slots are written by the same code as before.

VICTORY_SUBMIT_SPLIT=1 (from Biskwit/VIctory-reloaded d5bd9d8)

Two threads in a row. The lane's thread prepares a submission as before, takes what goes up to the copies in the card's memory (card_take, numbered under QUEUE_ORDER), puts the placed copies' bytes into their references, then publishes it under the submission lock: its fence value, and its flight, bottom-of-pipe writes and declared ranges in the line. A new thread, victory-send, then records the sends to card copies and the compare (card_record), waits for the heaps' records, makes the slots that waited for textures, calls ExecuteCommandLists and signals the fence. The lane's thread prepares the next submission meanwhile.

Order and safety (as in Biskwit's commit, checked against this tree):

  • Only the sender sends published submissions, in publishing order. Every other submission (waited for, the present's copy, ours) first waits under the submission lock until everything published was sent (wait_sent), so it gets a higher fence value. The timeline's calibration submission (diagnostics) waits too.
  • A published submission is in the line, so everything that asks what flights write sees it, and waits for it to land where it would have.
  • The sender never takes the submission lock and never waits for the lane's thread, so a holder of that lock can wait for a published flight to land.
  • A failed send or signal, a lost device or a panic on the sender is fail, as on the one thread before. Nothing published is dropped.
  • Needs the relay's second stage, the relay's fetches on the copy queue and send::own (VICTORY_RELAY=2, VICTORY_RELAY_COPY=1, as play-foxhound.ps1 sets them). Without them the switch does nothing.

Changes against Biskwit's commit: off by default (asked_for!), the conflicts resolved against this tree (streamline tags, two-queues plan, texback ranges, Batch reuse, heap_marks timing, span_lists and timeline::sent signatures, AFTER_SEND), the calibration submission waits for published ones, and his late texture read-back test is left out (this tree does not have it).

Biskwit's numbers (i9-12900K + RTX 4090, Series S, in-run A/B): see the commit message.

VICTORY_OFF_LINE=1, with VICTORY_SUBMIT_SPLIT=1 (from Biskwit/VIctory-reloaded 821867c)

The descriptor slots that steps done on the card fill (about 11,000 a frame there, 1.9 ms on the lane) are kept with the published submission and written by the sender, after that submission's heaps' records and before its lists go to the queue. Synchronous submissions still write theirs on the lane, after wait_sent. Only the slots half of that commit is here: its other half (closing host lists at recycle) is already covered in this tree by HostList::leave_open, and its slot-order counter (VICTORY_SLOT_ORDER_COUNT) was a one-off measurement.

Credit and licence

Both changes are Biskwit's (https://github.com/Biskwit/VIctory-reloaded, GPL-3.0-or-later, same licence text as this repo); the commits keep him as author. I found them through Keel62155/VIctoryUnified, which carries them off by default. My part is the port to this tree and the opt-in defaults. I did not find an open or closed PR here with the same change (searched SUBMIT_SPLIT, OFF_LINE, victory-send, split submission, Biskwit, reloaded).

Checks

  • cargo build --release --locked -p victory: ok.
  • cargo test --release --locked -p victory-gpu --lib: 453 passed, 0 failed, 36 ignored.
  • cargo clippy -p victory-gpu -p victory-hle --all-targets, with and without diagnostics: no finding in the changed files (the ones left are in shadow.rs, descriptor.rs and gameinput.rs, as on main).
  • No unit test of the split itself: it needs the relay and a device, which the crate's tests run without.

In the game

Measured with a build of this branch plus one more commit of Biskwit's (thread placement, VICTORY_PLACE_APART / VICTORY_PLACE_LANE, left out of this PR: it overlaps #419 and #475 and changes nothing on a CPU with one kind of core, as here). Ryzen 5 9600X (6 cores) + RTX 5080, Windows 11, Series X 4K output, DLSS Performance, frame generation 2x, THIN=1, JOIN_PARTS=8, ASYNC_SUBMIT=1, RELAY=2, RELAY_COPY=1 (play-foxhound.ps1), opening prison scene, about 4,800 draws a frame, warm cache. One release exe of this branch for every run, only the switches changing, alternating runs of 240 s; frame lines from 30 to 150 s after the world starts, and the settled part from 90 to 150 s.

run fps 30-150 s fps 90-150 s (median) preparing ms (90-150 s) sender worked ms a frame
off 1 25.0 26.5 (26.6) 25.6
split 1 26.1 27.7 (27.7) 23.0 3.5
split + off line 1 25.9 27.5 (27.5) 23.0 4.8
off 2 24.5 26.4 (26.4) 25.6
split 2 25.0 25.8 (26.9) 26.6 3.3
split + off line 2 25.5 27.0 (26.8) 24.2 4.7

Means: off 24.8 / 26.5, split 25.6 / 26.8, split + off line 25.7 / 27.3 (30-150 s / 90-150 s). So about +1 fps (3 to 4 %) on this PC, with the preparing time 1.5 to 2.5 ms shorter. The sender takes 3.3 to 3.5 ms a frame off the lane, 4.7 to 4.8 ms with OFF_LINE (about 15.4 submissions a frame). The two off runs agree within 0.1 fps in the settled part, so the gain is above the spread here, but it is small and two rounds are not many.

"split 2" had three short stalls in its settled part (one 5 s line at 13.9 fps with 54 ms preparing, two at 20 to 21.5 fps); the off runs had none in that part, the other three split runs had none either. I can not tell yet whether that is the split or the scene streaming; worth watching.

Stability: no device removal, no panic and no new warning in the four runs with the split on (16 minutes); the warnings counted in each log were the same kinds as with it off. Nobody watched the screen during these runs, so I can not say anything about the picture yet.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5540185069 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1066). Originally posted by [yeedgrthfgv](https://github.com/yeedgrthfgv) on 2026-11-28T12:37:00Z. --- On CPU-bound PCs one thread sets the frame: the submitting thread (`victory-submit`, `queue::behind` lane, `Host::send_late`). On a Ryzen 5 9600X + RTX 5080 it is busy for nearly all of a 41 ms frame (a sampling profile puts 90 % of its time in `send_late`), and making other threads faster (#834, #801, VICTORY_WIDE_THREADS, VICTORY_ASK_EARLY, measured here) did not change the frame rate. Issues #699, #833, #855 and #985 show the same on other PCs. This PR ports two switches from Biskwit/VIctory-reloaded that take work off that thread. Both are **off by default**. With them unset every submission takes the old path: nothing is published, the new sender thread is never started, `wait_sent` returns on an atomic before it takes any lock, and the card steps' slots are written by the same code as before. ## VICTORY_SUBMIT_SPLIT=1 (from Biskwit/VIctory-reloaded d5bd9d8) Two threads in a row. The lane's thread prepares a submission as before, takes what goes up to the copies in the card's memory (`card_take`, numbered under `QUEUE_ORDER`), puts the placed copies' bytes into their references, then publishes it under the submission lock: its fence value, and its flight, bottom-of-pipe writes and declared ranges in the line. A new thread, `victory-send`, then records the sends to card copies and the compare (`card_record`), waits for the heaps' records, makes the slots that waited for textures, calls ExecuteCommandLists and signals the fence. The lane's thread prepares the next submission meanwhile. Order and safety (as in Biskwit's commit, checked against this tree): - Only the sender sends published submissions, in publishing order. Every other submission (waited for, the present's copy, ours) first waits under the submission lock until everything published was sent (`wait_sent`), so it gets a higher fence value. The timeline's calibration submission (diagnostics) waits too. - A published submission is in the line, so everything that asks what flights write sees it, and waits for it to land where it would have. - The sender never takes the submission lock and never waits for the lane's thread, so a holder of that lock can wait for a published flight to land. - A failed send or signal, a lost device or a panic on the sender is `fail`, as on the one thread before. Nothing published is dropped. - Needs the relay's second stage, the relay's fetches on the copy queue and `send::own` (`VICTORY_RELAY=2`, `VICTORY_RELAY_COPY=1`, as play-foxhound.ps1 sets them). Without them the switch does nothing. Changes against Biskwit's commit: off by default (asked_for!), the conflicts resolved against this tree (streamline tags, two-queues plan, texback ranges, Batch reuse, heap_marks timing, span_lists and timeline::sent signatures, AFTER_SEND), the calibration submission waits for published ones, and his late texture read-back test is left out (this tree does not have it). Biskwit's numbers (i9-12900K + RTX 4090, Series S, in-run A/B): see the commit message. ## VICTORY_OFF_LINE=1, with VICTORY_SUBMIT_SPLIT=1 (from Biskwit/VIctory-reloaded 821867c) The descriptor slots that steps done on the card fill (about 11,000 a frame there, 1.9 ms on the lane) are kept with the published submission and written by the sender, after that submission's heaps' records and before its lists go to the queue. Synchronous submissions still write theirs on the lane, after `wait_sent`. Only the slots half of that commit is here: its other half (closing host lists at recycle) is already covered in this tree by `HostList::leave_open`, and its slot-order counter (`VICTORY_SLOT_ORDER_COUNT`) was a one-off measurement. ## Credit and licence Both changes are Biskwit's (https://github.com/Biskwit/VIctory-reloaded, GPL-3.0-or-later, same licence text as this repo); the commits keep him as author. I found them through Keel62155/VIctoryUnified, which carries them off by default. My part is the port to this tree and the opt-in defaults. I did not find an open or closed PR here with the same change (searched SUBMIT_SPLIT, OFF_LINE, victory-send, split submission, Biskwit, reloaded). ## Checks - `cargo build --release --locked -p victory`: ok. - `cargo test --release --locked -p victory-gpu --lib`: 453 passed, 0 failed, 36 ignored. - `cargo clippy -p victory-gpu -p victory-hle --all-targets`, with and without diagnostics: no finding in the changed files (the ones left are in shadow.rs, descriptor.rs and gameinput.rs, as on main). - No unit test of the split itself: it needs the relay and a device, which the crate's tests run without. ## In the game Measured with a build of this branch plus one more commit of Biskwit's (thread placement, VICTORY_PLACE_APART / VICTORY_PLACE_LANE, left out of this PR: it overlaps #419 and #475 and changes nothing on a CPU with one kind of core, as here). Ryzen 5 9600X (6 cores) + RTX 5080, Windows 11, Series X 4K output, DLSS Performance, frame generation 2x, THIN=1, JOIN_PARTS=8, ASYNC_SUBMIT=1, RELAY=2, RELAY_COPY=1 (play-foxhound.ps1), opening prison scene, about 4,800 draws a frame, warm cache. One release exe of this branch for every run, only the switches changing, alternating runs of 240 s; frame lines from 30 to 150 s after the world starts, and the settled part from 90 to 150 s. | run | fps 30-150 s | fps 90-150 s (median) | preparing ms (90-150 s) | sender worked ms a frame | |---|---|---|---|---| | off 1 | 25.0 | 26.5 (26.6) | 25.6 | | | split 1 | 26.1 | 27.7 (27.7) | 23.0 | 3.5 | | split + off line 1 | 25.9 | 27.5 (27.5) | 23.0 | 4.8 | | off 2 | 24.5 | 26.4 (26.4) | 25.6 | | | split 2 | 25.0 | 25.8 (26.9) | 26.6 | 3.3 | | split + off line 2 | 25.5 | 27.0 (26.8) | 24.2 | 4.7 | Means: off 24.8 / 26.5, split 25.6 / 26.8, split + off line 25.7 / 27.3 (30-150 s / 90-150 s). So about +1 fps (3 to 4 %) on this PC, with the preparing time 1.5 to 2.5 ms shorter. The sender takes 3.3 to 3.5 ms a frame off the lane, 4.7 to 4.8 ms with OFF_LINE (about 15.4 submissions a frame). The two off runs agree within 0.1 fps in the settled part, so the gain is above the spread here, but it is small and two rounds are not many. "split 2" had three short stalls in its settled part (one 5 s line at 13.9 fps with 54 ms preparing, two at 20 to 21.5 fps); the off runs had none in that part, the other three split runs had none either. I can not tell yet whether that is the split or the scene streaming; worth watching. Stability: no device removal, no panic and no new warning in the four runs with the split on (16 minutes); the warnings counted in each log were the same kinds as with it off. Nobody watched the screen during these runs, so I can not say anything about the picture yet. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
cxy0072019-sketch commented 2026-11-28 13:29:22 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by cxy0072019-sketch on 2026-11-28T13:29:22Z.


Validated locally on an i5-14600KF and RTX 5070 Ti 16 GB, driver 621.24, Windows 11. I cherry-picked both commits from 2d72aeb onto my local #1069 / #932 / #1018 compatibility test branch. Series S, 1080p output, DLSS and frame generation off.

I held the camera at the same nighttime parking checkpoint and used VICTORY_AB=10,VICTORY_SUBMIT_SPLIT with VICTORY_OFF_LINE=1, relay 2 and relay copy on. The sender startup and activity appeared in the log, and the phase diagnostics discard their first second. I excluded the early settling interval and retained nine adjacent pairs with zero pending pipelines and roughly 3,200 draws per frame.

Both options Frames Mean period Rendered FPS
Off 1,447 56.18 ms 17.80
On 1,533 52.93 ms 18.89

Every retained pair improved by 2.3–4.1 ms. Comparing each enabled phase to the mean of the disabled phases either side gave a 3.1 ms reduction. Side-by-side frames showed the same character, truck, pavement, foliage and lights. This test covers this static camera and leaves the moving route and other scenes open.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7239970427 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1066#issuecomment-7239970427). Originally posted by [cxy0072019-sketch](https://github.com/cxy0072019-sketch) on 2026-11-28T13:29:22Z. --- Validated locally on an i5-14600KF and RTX 5070 Ti 16 GB, driver 621.24, Windows 11. I cherry-picked both commits from `2d72aeb` onto my local #1069 / #932 / #1018 compatibility test branch. Series S, 1080p output, DLSS and frame generation off. I held the camera at the same nighttime parking checkpoint and used `VICTORY_AB=10,VICTORY_SUBMIT_SPLIT` with `VICTORY_OFF_LINE=1`, relay 2 and relay copy on. The sender startup and activity appeared in the log, and the phase diagnostics discard their first second. I excluded the early settling interval and retained nine adjacent pairs with zero pending pipelines and roughly 3,200 draws per frame. | Both options | Frames | Mean period | Rendered FPS | | --- | ---: | ---: | ---: | | Off | 1,447 | 56.18 ms | 17.80 | | On | 1,533 | 52.93 ms | 18.89 | Every retained pair improved by 2.3–4.1 ms. Comparing each enabled phase to the mean of the disabled phases either side gave a 3.1 ms reduction. Side-by-side frames showed the same character, truck, pavement, foliage and lights. This test covers this static camera and leaves the moving route and other scenes open.
yeedgrthfgv commented 2026-11-28 13:40:56 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by yeedgrthfgv on 2026-11-28T13:40:56Z.


Thanks for testing it. Good to see the same direction on a different CPU: about 3 ms a frame here on the 14600KF, and about 2.5 ms of preparing on the 9600X. The side by side frames also answer the picture question I left open. A moving route is still worth a run if someone has one.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7240109319 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1066#issuecomment-7240109319). Originally posted by [yeedgrthfgv](https://github.com/yeedgrthfgv) on 2026-11-28T13:40:56Z. --- Thanks for testing it. Good to see the same direction on a different CPU: about 3 ms a frame here on the 14600KF, and about 2.5 ms of preparing on the 9600X. The side by side frames also answer the picture question I left open. A moving route is still worth a run if someone has one.
POMXARK commented 2026-11-28 14:13:42 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by POMXARK on 2026-11-28T14:13:42Z.


Tested this PR in a 20-minute 1440p DLSS Quality + MFG 4x A/B run on Ryzen 7 5700X (8C/16T) + RTX 5080 (16 GB) + 32 GB RAM with VICTORY_SUBMIT_SPLIT=1 and VICTORY_OFF_LINE=1 (on top of VICTORY_WAIT_RESIDENT=0, VICTORY_RELAY=2, VICTORY_CARD_STEPS=2, VICTORY_THIN=1, VICTORY_JOIN_COPIES=1, VICTORY_JOIN_PARTS=8, VICTORY_LAND_SKIP=1).

Unit tests & Stability

  • cargo test -p victory-gpu host::: 123/123 PASS (2.90 s).
  • 20-minute continuous 3D workload: 0 errors, 0 DeviceRemoved/DEVICE_HUNG, 0 guest exceptions, 0 bake stalls, visually clean output throughout.
  • victory-send ran cleanly (16.0 sent/frame, worked = 9.6 ms p50 / 12.8 ms p90, land_wait = 0.0 ms, others_waited = 0.2 ms).

Draw-Count-Matched 3D Comparison (Baseline vs PR #1066)

Metric Baseline PR #1066 (SUBMIT_SPLIT=1, OFF_LINE=1) Delta
1k–4k draws/frame FPS (p50 / mean) 17.50 / 17.32 15.85 / 16.07 -9.4% / -7.2%
4k–7k draws/frame FPS (p50 / mean) 13.40 / 13.75 12.90 / 13.29 -3.7% / -3.3%
7k–10k draws/frame FPS (p50 / mean) 11.05 / 11.06 10.60 / 11.72 -4.1% / +6.0%
>=10k draws/frame FPS (p50 / mean) 8.00 / 8.34 6.20 / 6.20 -22.5% / -25.7%
ALL 3D FPS (p50 / mean) 13.9 / 13.91 13.9 / 13.52 0.0% / -2.8%
1s frame_times (med / p95 / p99) 65.4 / 85.9 / 97.7 ms 65.7 / 88.8 / 103.7 ms +0.3 / +2.9 / +6.0 ms
Frames >100 ms / >=250 ms / >=500 ms 1,354 / 0 / 0 1,672 / 2 / 1 (max 788.3 ms) +23.5% >100 ms
Peak Commit / loose_mb 30,550 MB / 4,228 MB 31,312 MB / 5,336 MB +762 MB / +1,108 MB

Submitting Thread Breakdown (p50, n>1000 3D seconds)

While after (0.70 -> 0.20 ms), plan (4.20 -> 3.30 ms), and under (4.40 -> 3.80 ms) dropped as expected, total submitting-thread wall time rose from 62.0 ms -> 72.8 ms (p90: 92.6 -> 108.6 ms) on this 8C/16T CPU:

  • refreshes: 22.60 -> 25.15 ms (steps: 31.10 -> 34.75 ms)
  • card copies: 8.40 -> 10.00 ms
  • heaps_end: 0.60 -> 2.60 ms
  • write_watch: 5.95 -> 7.10 ms (p90: 10.1 -> 16.0 ms)
  • wait_flights: 0.10 -> 1.10 ms (p90: 3.0 -> 7.5 ms)
  • send: 1.80 -> 2.40 ms
  • Present-side GPU wait also rose (0.0 -> 1.4–8.5 ms across buckets) and card_busy dipped 58% -> 55%.

Takeaway: Functionally solid and stable across 20 minutes, but on an 8C/16T CPU where send is already small (1.8 ms) and wait_flights is ~0.1 ms (VICTORY_WAIT_RESIDENT=0), adding the extra victory-send thread + VICTORY_OFF_LINE=1 increases CPU contention and heaps_end/wait_flights waits enough to regress frame time and pacing. Keeping it opt-in makes sense so high-core-count / higher-send-overhead setups can still enable it.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7240513526 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1066#issuecomment-7240513526). Originally posted by [POMXARK](https://github.com/POMXARK) on 2026-11-28T14:13:42Z. --- Tested this PR in a 20-minute 1440p DLSS Quality + MFG 4x A/B run on **Ryzen 7 5700X (8C/16T) + RTX 5080 (16 GB) + 32 GB RAM** with `VICTORY_SUBMIT_SPLIT=1` and `VICTORY_OFF_LINE=1` (on top of `VICTORY_WAIT_RESIDENT=0`, `VICTORY_RELAY=2`, `VICTORY_CARD_STEPS=2`, `VICTORY_THIN=1`, `VICTORY_JOIN_COPIES=1`, `VICTORY_JOIN_PARTS=8`, `VICTORY_LAND_SKIP=1`). ### Unit tests & Stability - `cargo test -p victory-gpu host::`: **123/123 PASS** (`2.90 s`). - 20-minute continuous 3D workload: **0 errors**, **0 `DeviceRemoved`/`DEVICE_HUNG`**, **0 guest exceptions**, **0 bake stalls**, visually clean output throughout. - `victory-send` ran cleanly (`16.0 sent/frame`, `worked = 9.6 ms` p50 / `12.8 ms` p90, `land_wait = 0.0 ms`, `others_waited = 0.2 ms`). ### Draw-Count-Matched 3D Comparison (Baseline vs PR #1066) | Metric | Baseline | PR #1066 (`SUBMIT_SPLIT=1`, `OFF_LINE=1`) | Delta | |---|---:|---:|---:| | `1k–4k` draws/frame FPS (p50 / mean) | 17.50 / 17.32 | 15.85 / 16.07 | -9.4% / -7.2% | | `4k–7k` draws/frame FPS (p50 / mean) | 13.40 / 13.75 | 12.90 / 13.29 | -3.7% / -3.3% | | `7k–10k` draws/frame FPS (p50 / mean) | 11.05 / 11.06 | 10.60 / 11.72 | -4.1% / +6.0% | | `>=10k` draws/frame FPS (p50 / mean) | 8.00 / 8.34 | 6.20 / 6.20 | -22.5% / -25.7% | | `ALL 3D` FPS (p50 / mean) | 13.9 / 13.91 | 13.9 / 13.52 | 0.0% / -2.8% | | `1s frame_times` (med / p95 / p99) | 65.4 / 85.9 / 97.7 ms | 65.7 / 88.8 / 103.7 ms | +0.3 / +2.9 / +6.0 ms | | Frames `>100 ms` / `>=250 ms` / `>=500 ms` | 1,354 / 0 / 0 | 1,672 / 2 / 1 (max 788.3 ms) | +23.5% `>100 ms` | | Peak Commit / `loose_mb` | 30,550 MB / 4,228 MB | 31,312 MB / 5,336 MB | +762 MB / +1,108 MB | ### Submitting Thread Breakdown (`p50`, `n>1000` 3D seconds) While `after` (`0.70 -> 0.20 ms`), `plan` (`4.20 -> 3.30 ms`), and `under` (`4.40 -> 3.80 ms`) dropped as expected, total submitting-thread wall time rose from **62.0 ms -> 72.8 ms** (`p90: 92.6 -> 108.6 ms`) on this 8C/16T CPU: - `refreshes`: `22.60 -> 25.15 ms` (`steps`: `31.10 -> 34.75 ms`) - `card` copies: `8.40 -> 10.00 ms` - `heaps_end`: `0.60 -> 2.60 ms` - `write_watch`: `5.95 -> 7.10 ms` (`p90: 10.1 -> 16.0 ms`) - `wait_flights`: `0.10 -> 1.10 ms` (`p90: 3.0 -> 7.5 ms`) - `send`: `1.80 -> 2.40 ms` - Present-side `GPU` wait also rose (`0.0 -> 1.4–8.5 ms` across buckets) and `card_busy` dipped `58% -> 55%`. **Takeaway:** Functionally solid and stable across 20 minutes, but on an 8C/16T CPU where `send` is already small (`1.8 ms`) and `wait_flights` is ~`0.1 ms` (`VICTORY_WAIT_RESIDENT=0`), adding the extra `victory-send` thread + `VICTORY_OFF_LINE=1` increases CPU contention and `heaps_end`/`wait_flights` waits enough to regress frame time and pacing. Keeping it opt-in makes sense so high-core-count / higher-send-overhead setups can still enable it.
yeedgrthfgv commented 2026-11-28 14:15:46 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by yeedgrthfgv on 2026-11-28T14:15:46Z.


Thanks, this is the kind of run I could not do here: 20 minutes moving through dense scenes. The extra stalls fit what I saw: one of my two split runs had three short stalls in the settled part (one 5 s line at 13.9 fps) that the off runs did not have, which I put in the description as unclear. With your numbers it looks like the split itself, at least in heavy scenes, and the cost grows with the draw count (your >=10k bucket).

So the gain seems to hold in lighter, static scenes (cxy0072019-sketch's checkpoint, my prison scene) and turn into a loss with more draws and movement on 8 cores. I agree it should stay opt-in. I will run a moving route here too and look at heaps_end and wait_flights with it on, since those two grew the most in your breakdown.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7240539108 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1066#issuecomment-7240539108). Originally posted by [yeedgrthfgv](https://github.com/yeedgrthfgv) on 2026-11-28T14:15:46Z. --- Thanks, this is the kind of run I could not do here: 20 minutes moving through dense scenes. The extra stalls fit what I saw: one of my two split runs had three short stalls in the settled part (one 5 s line at 13.9 fps) that the off runs did not have, which I put in the description as unclear. With your numbers it looks like the split itself, at least in heavy scenes, and the cost grows with the draw count (your >=10k bucket). So the gain seems to hold in lighter, static scenes (cxy0072019-sketch's checkpoint, my prison scene) and turn into a loss with more draws and movement on 8 cores. I agree it should stay opt-in. I will run a moving route here too and look at heaps_end and wait_flights with it on, since those two grew the most in your breakdown.
tippythetaidum commented 2026-11-28 15:07:27 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tippythetaidum on 2026-11-28T15:07:27Z.


Test report from an RTX 5080 + Ryzen 7 9800X3D (8 cores, one CCD), 32 GB, Windows 11 26200. Both commits are cherry-picked onto 63b902f with #1014, #1133, #1134 and #393. Series X, DLSS Quality 2560x1440, frame generation off, relay 2 and relay copy on (play-foxhound.ps1), warm cache. The scene is indoors (Jason's house), with the same save restored before every run. Runs were alternated off / on / off / on, 150 s each.

SUBMIT_SPLIT + OFF_LINE off on
lane thread "worked" per frame (queue::behind line) 33.3 to 35.5 ms 27.7 to 31.4 ms
sender thread (victory-send) — 3.8 ms a frame, 0.0 waiting for landings
title's threads waiting at presents 10.8 to 16.8 ms 10.2 to 14.7 ms
fps (median frame) 20.9, 21.7 20.8, 19.8

The work leaves the lane thread as described (about -4 to -6 ms a frame). No errors were logged and no visual difference was seen. Here the frame rate didn't follow. The title still waits about as long at its presents, and the card's clock line puts the card at about 50 % busy, idle about 12 ms behind the submitting thread and about 10 ms while the title had not submitted. The scenes differed between runs (5,000 to 6,600 draws), so a difference of 1 fps either way is within the noise.

I also tried VICTORY_SUBMIT_FRAMES=2 with both switches on. The present waits went to 0.0 ms, but the lane thread's work went up to 41 to 44 ms a frame (settles for "lists in the air", 4 to 14 ms), and the median frame stayed at 46 ms. So two frames in the line don't help there.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7241218607 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1066#issuecomment-7241218607). Originally posted by [tippythetaidum](https://github.com/tippythetaidum) on 2026-11-28T15:07:27Z. --- Test report from an RTX 5080 + Ryzen 7 9800X3D (8 cores, one CCD), 32 GB, Windows 11 26200. Both commits are cherry-picked onto `63b902f` with #1014, #1133, #1134 and #393. Series X, DLSS Quality 2560x1440, frame generation off, relay 2 and relay copy on (play-foxhound.ps1), warm cache. The scene is indoors (Jason's house), with the same save restored before every run. Runs were alternated off / on / off / on, 150 s each. | | `SUBMIT_SPLIT` + `OFF_LINE` off | on | |---|---:|---:| | lane thread "worked" per frame (queue::behind line) | 33.3 to 35.5 ms | 27.7 to 31.4 ms | | sender thread (`victory-send`) | — | 3.8 ms a frame, 0.0 waiting for landings | | title's threads waiting at presents | 10.8 to 16.8 ms | 10.2 to 14.7 ms | | fps (median frame) | 20.9, 21.7 | 20.8, 19.8 | The work leaves the lane thread as described (about -4 to -6 ms a frame). No errors were logged and no visual difference was seen. Here the frame rate didn't follow. The title still waits about as long at its presents, and the card's clock line puts the card at about 50 % busy, idle about 12 ms behind the submitting thread and about 10 ms while the title had not submitted. The scenes differed between runs (5,000 to 6,600 draws), so a difference of 1 fps either way is within the noise. I also tried `VICTORY_SUBMIT_FRAMES=2` with both switches on. The present waits went to 0.0 ms, but the lane thread's work went up to 41 to 44 ms a frame (settles for "lists in the air", 4 to 14 ms), and the median frame stayed at 46 ms. So two frames in the line don't help there.
wildheathen commented 2026-11-28 15:25:38 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wildheathen on 2026-11-28T15:25:38Z.


Reviewed and built this on top of 63b902f (RTX 5080, Windows), together with #697, #127 and foxhound's CARD_STEPS_JOIN. No deadlock found reading it; the order before ExecuteCommandLists is kept per submission. Three things, from reading the code:

  1. Split without a copy queue. split_send() only checks VICTORY_RELAY_COPY. If the copy queue is not made (the "no copy queue" warning in make_relay_fetch), the fetch goes on the direct queue and counts flights that are published but not yet sent as already queued (line().target, QUEUE_ORDER). Suggest: no split unless the fetch really has its copy queue.
  2. relay_wait in send_published compares with SENT_FENCE, which only send_published moves. Flights sent under the lock without publishing (execute_own at a present, or submissions before the split is switched on) are skipped, their CardPlan stays taken and the compares fall back to whole fetches for a submission or two. f.fence < h.fence covers every earlier flight, since all of them have been sent by then. Costs speed only, no wrong bytes.
  3. Counters (diagnostics only). The sender adds its parts into the line's SPLIT, so "preparing per frame, the submitting thread" mixes both threads; and relay_wait on the sender toggles the global WORKING and the late stats meant for the lock holder. Biskwit fixed the first in 48f9982; bc43515 also saves the line waiting on CARD_WORK.

Numbers, same scene as @tippythetaidum (Jason's house, RTX 5080, Series X 1440p, frame generation off), but switched inside one run so the scene is the same for both arms: VICTORY_AB=10,VICTORY_SUBMIT_SPLIT,VICTORY_ASK_FIRST, 8 minutes, phases kept from minute 3 on at 7,000–7,600 draws a frame (these runs include the fixes above, OFF_LINE not set).

SUBMIT_SPLIT phases median frame, mean of phases range of phases
off 7 36.6 ms 35.2–40.3
on 6 36.6 ms 36.0–36.9

So no difference at the frame here, which matches tippythetaidum's runs: the card stays about 50–60 % busy and idle 12–15 ms a frame behind the submitting thread, and in this scene the preparing that stays on that thread (refreshes alone about 10.5 ms a frame) is what the frame waits for, not the sending. On the loading screen before it (a steady ~5,800 draws a frame) the split was about 1.5 ms a frame faster (37.9 vs 36.3, 5 phases each), in line with the static scenes above.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7241457825 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1066#issuecomment-7241457825). Originally posted by [wildheathen](https://github.com/wildheathen) on 2026-11-28T15:25:38Z. --- Reviewed and built this on top of `63b902f` (RTX 5080, Windows), together with #697, #127 and foxhound's `CARD_STEPS_JOIN`. No deadlock found reading it; the order before `ExecuteCommandLists` is kept per submission. Three things, from reading the code: 1. **Split without a copy queue.** `split_send()` only checks `VICTORY_RELAY_COPY`. If the copy queue is not made (the "no copy queue" warning in `make_relay_fetch`), the fetch goes on the direct queue and counts flights that are published but not yet sent as already queued (`line().target`, `QUEUE_ORDER`). Suggest: no split unless the fetch really has its copy queue. 2. **`relay_wait` in `send_published` compares with `SENT_FENCE`,** which only `send_published` moves. Flights sent under the lock without publishing (`execute_own` at a present, or submissions before the split is switched on) are skipped, their `CardPlan` stays taken and the compares fall back to whole fetches for a submission or two. `f.fence < h.fence` covers every earlier flight, since all of them have been sent by then. Costs speed only, no wrong bytes. 3. **Counters (diagnostics only).** The sender adds its parts into the line's `SPLIT`, so "preparing per frame, the submitting thread" mixes both threads; and `relay_wait` on the sender toggles the global `WORKING` and the late stats meant for the lock holder. Biskwit fixed the first in `48f9982`; `bc43515` also saves the line waiting on `CARD_WORK`. **Numbers, same scene as @tippythetaidum (Jason's house, RTX 5080, Series X 1440p, frame generation off),** but switched inside one run so the scene is the same for both arms: `VICTORY_AB=10,VICTORY_SUBMIT_SPLIT,VICTORY_ASK_FIRST`, 8 minutes, phases kept from minute 3 on at 7,000–7,600 draws a frame (these runs include the fixes above, `OFF_LINE` not set). | `SUBMIT_SPLIT` | phases | median frame, mean of phases | range of phases | |---|---:|---:|---:| | off | 7 | 36.6 ms | 35.2–40.3 | | on | 6 | 36.6 ms | 36.0–36.9 | So no difference at the frame here, which matches tippythetaidum's runs: the card stays about 50–60 % busy and idle 12–15 ms a frame behind the submitting thread, and in this scene the preparing that stays on that thread (refreshes alone about 10.5 ms a frame) is what the frame waits for, not the sending. On the loading screen before it (a steady ~5,800 draws a frame) the split was about 1.5 ms a frame faster (37.9 vs 36.3, 5 phases each), in line with the static scenes above.
yeedgrthfgv commented 2026-11-28 17:02:58 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by yeedgrthfgv on 2026-11-28T17:02:58Z.


Thanks for the careful read, @wildheathen. All three points were right. Fixes are on the branch as new commits on top of 2d72aeb:

  1. Split without a copy queue (bda893c). The copy queue and its list are now made once by the host, and split_send() is only true if they are really there. With the switch on they are made before the first submission is published, so the answer cannot change later. If the card gives no copy queue, the old warning is logged and nothing is ever published.

  2. relay_wait and SENT_FENCE (5b24308). Changed to f.fence < h.fence as you suggested, and SENT_FENCE is gone. I checked the reasoning in the code first: fence values are given under the submission lock in rising order, the sender sends published ones in that order, and a submission that is not published is put on the queue inside submit, under the lock, before a later one can be published. So every flight with a lower value has been sent and the wait ends.

  3. Counters.
    a. a622068 is Biskwit's 48f9982 (cherry picked, Biskwit kept as author): the sender counts into SEND_SPLIT and gets a line of its own. One difference from his tree: here SPLIT and the "preparing per frame, the submitting thread" line are in every build, so the new line is in every build too.
    b. 540ee25 is Biskwit's bc43515 (cherry picked, applied clean): card_take asks card_ready instead of locking CARD_WORK. card_take is also on the path with the switch unset, so I checked that the answer is the same there: it only gets that far with a copy in the card's memory, and a copy only gets there after card_ready said yes. The 0.36 ms number is his, I did not measure it here.
    c. 1b611e5 is new, since Biskwit's tree still has this one: the sender now waits with a small wait of its own (sender_wait) that does not touch WORKING, the late stats, the frame line's card wait or blamed. Its waiting time is still shown on the sender's line.

Not done: no new measurements yet for these commits, and nothing else from Biskwit's later history was pulled in (the sender presenting, the kept card step plans). With both switches unset nothing is published, so the old path is unchanged apart from card_take not taking the CARD_WORK lock (b).

Checked: release build, diagnostics build, victory-gpu lib tests (453 passed), cargo xtask policy, and clippy shows only the findings main already has (shadow.rs, descriptor.rs).

One more data point, from a local test build that stacks this branch with #1014, #875, #1133, #1123, #1093 and #18 on top of 9ce3cf9 (Ryzen 5 9600X, RTX 5080, Series X 4K output, DLSS Performance, prison scene, window off screen and the world clock held at 12:00 with #1009 and #1155, one run each, 90 to 150 s after the world starts): 25.1 fps with every new switch off, 25.0 with #1014 + #875 + #18's pipelines from pieces, 25.5 with those plus SUBMIT_SPLIT + OFF_LINE. No crash or device loss in any run, and the review fixes above were in all of them. The read waits went from about 2.0 to 1.6 ms a frame, but on this 6 core CPU the frame is still set by the submitting thread's own preparing (about 30 ms), so the split stays a small gain here.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7242713658 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1066#issuecomment-7242713658). Originally posted by [yeedgrthfgv](https://github.com/yeedgrthfgv) on 2026-11-28T17:02:58Z. --- Thanks for the careful read, @wildheathen. All three points were right. Fixes are on the branch as new commits on top of 2d72aeb: 1. Split without a copy queue (bda893c). The copy queue and its list are now made once by the host, and split_send() is only true if they are really there. With the switch on they are made before the first submission is published, so the answer cannot change later. If the card gives no copy queue, the old warning is logged and nothing is ever published. 2. relay_wait and SENT_FENCE (5b24308). Changed to f.fence < h.fence as you suggested, and SENT_FENCE is gone. I checked the reasoning in the code first: fence values are given under the submission lock in rising order, the sender sends published ones in that order, and a submission that is not published is put on the queue inside submit, under the lock, before a later one can be published. So every flight with a lower value has been sent and the wait ends. 3. Counters. a. a622068 is Biskwit's 48f9982 (cherry picked, Biskwit kept as author): the sender counts into SEND_SPLIT and gets a line of its own. One difference from his tree: here SPLIT and the "preparing per frame, the submitting thread" line are in every build, so the new line is in every build too. b. 540ee25 is Biskwit's bc43515 (cherry picked, applied clean): card_take asks card_ready instead of locking CARD_WORK. card_take is also on the path with the switch unset, so I checked that the answer is the same there: it only gets that far with a copy in the card's memory, and a copy only gets there after card_ready said yes. The 0.36 ms number is his, I did not measure it here. c. 1b611e5 is new, since Biskwit's tree still has this one: the sender now waits with a small wait of its own (sender_wait) that does not touch WORKING, the late stats, the frame line's card wait or blamed. Its waiting time is still shown on the sender's line. Not done: no new measurements yet for these commits, and nothing else from Biskwit's later history was pulled in (the sender presenting, the kept card step plans). With both switches unset nothing is published, so the old path is unchanged apart from card_take not taking the CARD_WORK lock (b). Checked: release build, diagnostics build, victory-gpu lib tests (453 passed), cargo xtask policy, and clippy shows only the findings main already has (shadow.rs, descriptor.rs). One more data point, from a local test build that stacks this branch with #1014, #875, #1133, #1123, #1093 and #18 on top of 9ce3cf9 (Ryzen 5 9600X, RTX 5080, Series X 4K output, DLSS Performance, prison scene, window off screen and the world clock held at 12:00 with #1009 and #1155, one run each, 90 to 150 s after the world starts): 25.1 fps with every new switch off, 25.0 with #1014 + #875 + #18's pipelines from pieces, 25.5 with those plus SUBMIT_SPLIT + OFF_LINE. No crash or device loss in any run, and the review fixes above were in all of them. The read waits went from about 2.0 to 1.6 ms a frame, but on this 6 core CPU the frame is still set by the submitting thread's own preparing (about 30 ms), so the split stays a small gain here.
trustno1-coder commented 2026-11-28 19:22:56 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T19:22:56Z.


Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7244501635 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1066#issuecomment-7244501635). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-28T19:22:56Z. --- Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.
bigboss22869 commented 2026-11-28 20:35:41 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by bigboss22869 on 2026-11-28T20:35:41Z.


A data point on another PC: RTX 5070 Ti 16 GB, Ryzen 7 7800X3D, 64 GB, Windows 11. Ported both commits onto trustno1 main of 2026-11-28 (one conflict in card_steps.rs with a local diagnostic). Series X profile, 1440p output, DLSS Performance (1280x720 scene), no frame generation. Same save at a pier, camera still, 4 minutes each, one release build, only the switches changing:

Run Median frame p90 of the 5 s means Sender worked
off 48.0 ms 51.0 ms –
VICTORY_SUBMIT_SPLIT=1 46.6 ms 48.0 ms 5.9 ms a frame
SUBMIT_SPLIT=1 + VICTORY_OFF_LINE=1 46.5 ms 47.7 ms 10.7 ms a frame

No new warnings, no device loss, and nothing new seen in a play session afterwards. Single runs here vary by about ±2 ms between series, so read this as "a small gain, not a loss". It is on by default in our fork (https://github.com/bigboss22869/VIctory-RTX5070Ti, branch rtx5070ti).

Two more things measured the same day, in case they help others on CPU-bound setups:

  • VICTORY_STORE_BESIDE=1 + VICTORY_COPY_BESIDE=1: the submitting thread's preparing went from 33.9 to 28.9 ms a frame, copies from 17 to 12 ms; frame 45.0 -> 44.0 ms.
  • No measurable change here: #614 + #697, kibagami's VICTORY_DIRECT_CONSTANTS (only ~5 % of table constant views lie on 256 bytes), #1373/#1358/#1345, #1184's lazy landing, VICTORY_FAULT_UNLOCKED, VICTORY_HELPER_PRIORITY, VICTORY_TEXSPK_PASS_MS (camera still).

AI-assisted (Claude Code); runs and observations by me; no game data.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7245400443 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1066#issuecomment-7245400443). Originally posted by [bigboss22869](https://github.com/bigboss22869) on 2026-11-28T20:35:41Z. --- A data point on another PC: RTX 5070 Ti 16 GB, Ryzen 7 7800X3D, 64 GB, Windows 11. Ported both commits onto trustno1 main of 2026-11-28 (one conflict in `card_steps.rs` with a local diagnostic). Series X profile, 1440p output, DLSS Performance (1280x720 scene), no frame generation. Same save at a pier, camera still, 4 minutes each, one release build, only the switches changing: | Run | Median frame | p90 of the 5 s means | Sender worked | |---|---|---|---| | off | 48.0 ms | 51.0 ms | – | | `VICTORY_SUBMIT_SPLIT=1` | 46.6 ms | 48.0 ms | 5.9 ms a frame | | `SUBMIT_SPLIT=1` + `VICTORY_OFF_LINE=1` | 46.5 ms | 47.7 ms | 10.7 ms a frame | No new warnings, no device loss, and nothing new seen in a play session afterwards. Single runs here vary by about ±2 ms between series, so read this as "a small gain, not a loss". It is on by default in our fork (https://github.com/bigboss22869/VIctory-RTX5070Ti, branch `rtx5070ti`). Two more things measured the same day, in case they help others on CPU-bound setups: - `VICTORY_STORE_BESIDE=1` + `VICTORY_COPY_BESIDE=1`: the submitting thread's preparing went from 33.9 to 28.9 ms a frame, copies from 17 to 12 ms; frame 45.0 -> 44.0 ms. - No measurable change here: #614 + #697, kibagami's `VICTORY_DIRECT_CONSTANTS` (only ~5 % of table constant views lie on 256 bytes), #1373/#1358/#1345, #1184's lazy landing, `VICTORY_FAULT_UNLOCKED`, `VICTORY_HELPER_PRIORITY`, `VICTORY_TEXSPK_PASS_MS` (camera still). AI-assisted (Claude Code); runs and observations by me; no game data.
Revens2 commented 2026-11-29 10:03:48 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Revens2 on 2026-11-29T10:03:48Z.


Here is what we measured on this build. Frame rate only, no code changes on our side.

Setup. Same binary as the branch head, the switch being the only difference between the two sides (VICTORY_SUBMIT_SPLIT=0 vs 1), DLSS performance, one chapter save, limiter off, 90 s of stabilisation then 180 s of measurement, one sample per second, alternating pairs, gameplay samples only. Hardware: RTX 5070 12 GB, i5-14600KF, 32 GB, 1080p.

1. The split alone (2 pairs)

  • 28.08 +- 0.30 fps (off) vs 28.44 +- 0.19 fps (on): +0.36, se 0.25, 2 sigma 0.50 -> neutral.
  • The sending thread does what the design says: submit_busy 34.13 -> 33.12 ms, presents 7.54 -> 6.67 ms.
  • What it removes comes back in the title's own work: planning 5.07 -> 6.07 ms, waiting for landings 0.14 -> 0.38 ms, relay wait 17.1 -> 16.2 ms.
  • Earlier, in the shipped config (DLSS quality, 3 pairs): 27.51 vs 27.54, +0.03, 2 sigma 0.50 -> neutral.

2. Factor with VICTORY_FAULT_UNLOCKED (2 pairs per config)

  • A = SPLIT 0, FU 0: 27.59 +- 0.27 fps.
  • C = FU 1: 27.96 +- 0.47 (+0.37, 2 sigma 0.77).
  • D = FU 1 + SPLIT 1: 28.02 +- 0.25, i.e. D - A = +0.43, se 0.26, 2 sigma 0.52 -> neutral, below the +0.8 that the two-chain hypothesis asked for. D - C is about +0.06, not paired.
  • Presents 7.87 -> 5.68 ms and submit_busy 34.36 -> 33.61 ms, but the frame only loses 0.5 ms and card occupancy goes from 75.0 to 83.3%.

3. Full stack on this build (5 clean pairs)

GUARD_REST=0 + FAULT_UNLOCKED=1 + SUBMIT_SPLIT=1 against defaults: 27.28 +- 0.22 vs 27.75 +- 0.50 fps, +0.47, se 0.244, 2 sigma 0.49 -> neutral, 0.02 from the threshold.

Mechanism: copies 62.4 -> 50.0 MB/frame, copies_ms unchanged (12.60 -> 12.42), submit_busy 35.17 -> 33.13 ms, presents 6.31 -> 5.04 ms; in exchange nothing of ours queued +0.8 ms and card occupancy 85.5 -> 82.8%. The stack is sub-additive: 44% of the sum of the three switches measured alone (~+1.07 fps).

Cross-check on main. The same stack without SUBMIT_SPLIT (which does not exist there) is 28.09 +- 0.27 vs 27.71 +- 0.34, i.e. -0.38, 2 sigma 0.50, and submit_busy and presents do not move at all. So on this scene the only part of the stack that moves the submit path is this PR's split, and the movement stops at the lane.

Why. The sending thread is ~34 ms busy on a ~36 ms frame and has ~1.5 ms of headroom. Removing 1-2 ms from it is absorbed by the title's job threads (+1.0 ms planning) and by the card. The split does what it says; on this scene the lane is not what fixes the frame.

Verdict. Neutral here, and clean: no artifact in the entry/end capture comparison, no crash in any split-only run of this PR. The two crashes we did see on this build were with FAULT_UNLOCKED=1 and are reported separately. We are not asking for a default change. If it helps you decide what comes next: the only emulator cost still significant on the title's chain is descriptor creation inside its job threads (~2.5 ms, 25-30% of their running time), and it would need the lane lightened at the same time to show up.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7254181741 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1066#issuecomment-7254181741). Originally posted by [Revens2](https://github.com/Revens2) on 2026-11-29T10:03:48Z. --- Here is what we measured on this build. Frame rate only, no code changes on our side. **Setup.** Same binary as the branch head, the switch being the only difference between the two sides (`VICTORY_SUBMIT_SPLIT=0` vs `1`), DLSS performance, one chapter save, limiter off, 90 s of stabilisation then 180 s of measurement, one sample per second, alternating pairs, gameplay samples only. Hardware: RTX 5070 12 GB, i5-14600KF, 32 GB, 1080p. **1. The split alone (2 pairs)** - 28.08 +- 0.30 fps (off) vs 28.44 +- 0.19 fps (on): **+0.36, se 0.25, 2 sigma 0.50 -> neutral.** - The sending thread does what the design says: `submit_busy` 34.13 -> 33.12 ms, presents 7.54 -> 6.67 ms. - What it removes comes back in the title's own work: planning 5.07 -> 6.07 ms, waiting for landings 0.14 -> 0.38 ms, relay wait 17.1 -> 16.2 ms. - Earlier, in the shipped config (DLSS quality, 3 pairs): 27.51 vs 27.54, +0.03, 2 sigma 0.50 -> neutral. **2. Factor with `VICTORY_FAULT_UNLOCKED` (2 pairs per config)** - A = SPLIT 0, FU 0: 27.59 +- 0.27 fps. - C = FU 1: 27.96 +- 0.47 (+0.37, 2 sigma 0.77). - D = FU 1 + SPLIT 1: 28.02 +- 0.25, i.e. **D - A = +0.43, se 0.26, 2 sigma 0.52 -> neutral**, below the +0.8 that the two-chain hypothesis asked for. D - C is about +0.06, not paired. - Presents 7.87 -> 5.68 ms and `submit_busy` 34.36 -> 33.61 ms, but the frame only loses 0.5 ms and card occupancy goes from 75.0 to 83.3%. **3. Full stack on this build (5 clean pairs)** `GUARD_REST=0` + `FAULT_UNLOCKED=1` + `SUBMIT_SPLIT=1` against defaults: 27.28 +- 0.22 vs 27.75 +- 0.50 fps, **+0.47, se 0.244, 2 sigma 0.49 -> neutral**, 0.02 from the threshold. Mechanism: copies 62.4 -> 50.0 MB/frame, `copies_ms` unchanged (12.60 -> 12.42), `submit_busy` 35.17 -> 33.13 ms, presents 6.31 -> 5.04 ms; in exchange `nothing of ours queued` +0.8 ms and card occupancy 85.5 -> 82.8%. The stack is sub-additive: 44% of the sum of the three switches measured alone (~+1.07 fps). **Cross-check on `main`.** The same stack without `SUBMIT_SPLIT` (which does not exist there) is 28.09 +- 0.27 vs 27.71 +- 0.34, i.e. **-0.38, 2 sigma 0.50**, and `submit_busy` and `presents` do not move at all. So on this scene the only part of the stack that moves the submit path is this PR's split, and the movement stops at the lane. **Why.** The sending thread is ~34 ms busy on a ~36 ms frame and has ~1.5 ms of headroom. Removing 1-2 ms from it is absorbed by the title's job threads (+1.0 ms planning) and by the card. The split does what it says; on this scene the lane is not what fixes the frame. **Verdict.** Neutral here, and clean: no artifact in the entry/end capture comparison, no crash in any split-only run of this PR. The two crashes we did see on this build were with `FAULT_UNLOCKED=1` and are reported separately. We are not asking for a default change. If it helps you decide what comes next: the only emulator cost still significant on the title's chain is descriptor creation inside its job threads (~2.5 ms, 25-30% of their running time), and it would need the lane lightened at the same time to show up.

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!1066
No description provided.