RTX 5060 Ti: heap writes in pieces, Reflex's sleep off the submitting thread, launcher folding first #3411

Closed
github-bot wants to merge 20 commits from github-bot/gh-3411 into main AGit
Owner

@⁠dragoso on GitHub · 2026-11-29 22:57 UTC · original
dragoso:perf/rtx-5060-ti → main · +2205 −874 · 43 files · 20 commits · closed without merging

Related: #3050 (the device hung with folding off, RTX 5080), #2323 (the launcher against victory play), #2440 and #2464 (glitter in windows)

What it changes

Five commits from measuring one PC (RTX 5060 Ti 16 GB on PCIe 4.0 x8, Ryzen 7 7700X, 32 GB), each with its A/B in docs/findings.md ("What was learned on an RTX 5060 Ti" and the sections after it). Each stands on its own, in this order, so any of them can be dropped. Main has since rewritten what the second one did, so four are left in the diff:

  1. Heap writes in pieces, Reflex's sleep off the submitting thread.
    • VICTORY_WIDE_PIECES (new crate::wide, off unless asked for): the skinning passes' writes through the title's whole 174 MB heap are declared as the 64 KiB pieces found written instead of all of it. Heavy city stretches 83.4 -> 76.0 ms a frame (diagnostics A/B). A piece first written after a copy's first 64 frames is not declared until a look finds it, a few frames later, and a title write into it meanwhile sends the title's bytes over the shaders': so the launcher does not set it (see the review below).
    • VICTORY_REFLEX_ASIDE (off unless asked for): slReflexSleep every frame on a thread of its own. Without any call of the app's, the driver made Reflex's sleep inside our present, on the thread every submission is prepared on (3-6 ms a frame). Diagnostics A/B standing: median frame 46.8 -> 42.2 ms; moving through the city, 20.9 ms a frame less (no longer held at 71.4 ms). But nothing paces the frames then, so they come less evenly: the launcher does not set it (see the review below).
    • VICTORY_FAULT_UNLOCKED on in the launcher, and a faster compare of the card's copies (thirty-two loads at once, the parts nine at a time): 38.9 -> 37.5-37.8 ms a frame (release).
    • Off, experimental: VICTORY_GUARD_AHEAD (no gain standing or moving), VICTORY_SUBMIT_CORE, VICTORY_REFLEX_MODE; timeline recording fixes.
  2. send: the sweep keeps the send spares in use. Superseded by main. 697590ad, 1ecaa98a and 8b801739 rewrote the same 1 Hz sweep: the spares keep what the last sweeps used, and are let go on a thread of their own. The merge of 84bd61e2 therefore takes main's host/send.rs, and nothing of this commit is left in the diff. What it measured stays in docs/findings.md: under host memory pressure the sweep let every spare go each second, and keeping the spares in use took release at the save point from 14.8-17.1 to 19.6-20.7 fps.
  3. Launcher: VICTORY_SUBMIT_SPLIT=1 (main's port of the split send, off by default): diagnostics A/B at the save point, frame 44.6 -> 42.0 ms, the submitting thread 41.6 -> 38.2 ms, screenshots alike.
  4. Reflections: the miss program's image cleared where it is left out (VICTORY_RAYMISS_CLEAR, default on; =0 leaves the image as it was). Since e2d7854e the miss program is left out for opaque and transparent surfaces, and its image kept whatever the memory held; with the transient targets sharing memory, another target's bytes: red, green and purple glitter on every window on Series S. One diagnostics run alternating it every 8 s: the glitter in every shot without it, clean glass in every shot with it; 71.3 against 71.0 ms a frame.
  5. Launcher: VICTORY_WAVE_FOLDED=1. With v2026.11.29.02's default (no folding) every release run here lost the device (DXGI_ERROR_DEVICE_HUNG, 43, 73 and 92 s into the world), as #3050 has on an RTX 5080; with folding first, none of ten runs did (three of them 5, 5 and 2 minutes in the world on the hotfix build). v2026.11.29.03 (05d1c564) folds more by default again; that default was not measured here.
    • The commit also set VICTORY_BVH_MISS=1 and VICTORY_NAN_SCRUB=1, as victory play does. Since 84bd61e2 (#4067) scripts/play-nvidia.ps1 fills in play's shader-key defaults itself, so those two are main's now. Here they cost no card time: one recorded frame replayed with each shader set took 37.37 against 37.16 ms.
    • Those defaults also turn on VICTORY_SAMPLED_MARKS, which this commit had left out together with victory play's texture switches. With all four the save point took 2.7 GB more of the card's memory and 3.5 GB more of the PC's, and ran slower (14.0 and 9.7 against 18.3 and 18.3 fps). SAMPLED_MARKS was not measured on its own here, so the PR leaves main's choice as it is.

After review

Two testers ran it (comments below). Without frame generation (RTX 5070) no gain, and one frame in 160 with some vegetation missing; with 3x frame generation (RTX 5070 Ti) VICTORY_REFLEX_ASIDE gave 1.25 fps more on average but twice the frames over 50 ms. The A/B logs here, read again for pacing, agree (standing: p95 51.2 -> 57.3 ms, frames over 50 ms 10.3 -> 13.4 %). So the last commit takes VICTORY_WIDE_PIECES and VICTORY_REFLEX_ASIDE out of the launcher; both stay as switches, off unless asked for, with what each costs in docs/README-nvidia.md, docs/dlss.md and docs/findings.md.

How it was tested

  • GPU and profile: RTX 5060 Ti 16 GB (PCIe 4.0 x8, driver 617.42), Ryzen 7 7700X, 32 GB DDR5-5600, Windows 11 26300. Series X at 1440p with DLSS Quality for the first measurements, Series S (1920x1080) with DLSS frame generation 2x for the later ones (docs/findings.md gives each one's); ray tracing off (the launcher's estimates of light and reflections).
  • Before / After: per commit above. In-run A/B (VICTORY_AB) wherever it could be, since the save point's time of day moves from run to run; release runs in turns otherwise.
  • Main merged in at 41adb551 (v2026.11.29.05): the only conflict was host/send.rs's test module, where the new test sits beside main's parallel_copy_threshold_requires_multiple_tasks; one more commit fixes a doc link (nothing_new is now nothing_new_with).
  • Main merged in again at c71899d9, at 84bd61e2, and at 5fabb46e after main was rewritten (84bd61e2 is 4e6cf227 there; the branch's diff over main stayed the same):
    • In host.rs the card compare keeps main's capture (compare bits 2 and 4) with the faster hash.
    • In shadow.rs main's unified_stats count runs before the wide pieces.
    • VICTORY_GUARD_AHEAD publishes with main's publish_range.
    • host/send.rs is main's (commit 2).
    • The launcher's switches moved to scripts/play-nvidia.ps1, which replaced play-foxhound.ps1.
  • For shader changes, the wave sizes tested: 32 lanes (NVIDIA). No translation changes; commit 5 only selects existing switches.
  • Run here after the last merge:
    • cargo check --workspace --all-targets --locked passes.
    • This branch's tests and the card compare's (cargo test -p victory-gpu --lib, filtered to them): 13 passed on WARP.
    • The two hardware_card_compare_* tests, run with --ignored on the RTX 5060 Ti, pass too.
    • The check's two warnings are in main as well (Shadow::ranged is never used, loop_caps is never read), and -D warnings turns them into errors in the clippy gates of ci.yml.
    • The full cargo test --workspace was not run here.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related:
    • #2764 and #2872: the same clear as commit 4, by a host UAV clear or behind VICTORY_RAYMISS_ZERO; whichever lands, commit 4 can go.
    • #3381: the same 1 Hz sweep, trimming to a low-water mark; main's rewrite took that ground (commit 2).
    • #2722: reconciles the launcher with play.rs, including the texture switches commit 5 left out; main's #4067 now fills in play's shader-key defaults.
    • #2433: the split send.

🤖 Generated with Claude Code

**@⁠dragoso** on GitHub · 2026-11-29 22:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3411) `dragoso:perf/rtx-5060-ti` → `main` · +2205 −874 · 43 files · 20 commits · closed without merging Related: #3050 (the device hung with folding off, RTX 5080), #2323 (the launcher against `victory play`), #2440 and #2464 (glitter in windows) ## What it changes Five commits from measuring one PC (RTX 5060 Ti 16 GB on PCIe 4.0 x8, Ryzen 7 7700X, 32 GB), each with its A/B in `docs/findings.md` ("What was learned on an RTX 5060 Ti" and the sections after it). Each stands on its own, in this order, so any of them can be dropped. Main has since rewritten what the second one did, so four are left in the diff: 1. **Heap writes in pieces, Reflex's sleep off the submitting thread.** - `VICTORY_WIDE_PIECES` (new `crate::wide`, off unless asked for): the skinning passes' writes through the title's whole 174 MB heap are declared as the 64 KiB pieces found written instead of all of it. Heavy city stretches 83.4 -> 76.0 ms a frame (diagnostics A/B). A piece first written after a copy's first 64 frames is not declared until a look finds it, a few frames later, and a title write into it meanwhile sends the title's bytes over the shaders': so the launcher does not set it (see the review below). - `VICTORY_REFLEX_ASIDE` (off unless asked for): `slReflexSleep` every frame on a thread of its own. Without any call of the app's, the driver made Reflex's sleep inside our present, on the thread every submission is prepared on (3-6 ms a frame). Diagnostics A/B standing: median frame 46.8 -> 42.2 ms; moving through the city, 20.9 ms a frame less (no longer held at 71.4 ms). But nothing paces the frames then, so they come less evenly: the launcher does not set it (see the review below). - `VICTORY_FAULT_UNLOCKED` on in the launcher, and a faster compare of the card's copies (thirty-two loads at once, the parts nine at a time): 38.9 -> 37.5-37.8 ms a frame (release). - Off, experimental: `VICTORY_GUARD_AHEAD` (no gain standing or moving), `VICTORY_SUBMIT_CORE`, `VICTORY_REFLEX_MODE`; timeline recording fixes. 2. ~~**send: the sweep keeps the send spares in use.**~~ Superseded by main. 697590ad, 1ecaa98a and 8b801739 rewrote the same 1 Hz sweep: the spares keep what the last sweeps used, and are let go on a thread of their own. The merge of 84bd61e2 therefore takes main's `host/send.rs`, and nothing of this commit is left in the diff. What it measured stays in `docs/findings.md`: under host memory pressure the sweep let every spare go each second, and keeping the spares in use took release at the save point from 14.8-17.1 to 19.6-20.7 fps. 3. **Launcher: `VICTORY_SUBMIT_SPLIT=1`** (main's port of the split send, off by default): diagnostics A/B at the save point, frame 44.6 -> 42.0 ms, the submitting thread 41.6 -> 38.2 ms, screenshots alike. 4. **Reflections: the miss program's image cleared where it is left out** (`VICTORY_RAYMISS_CLEAR`, default on; `=0` leaves the image as it was). Since e2d7854e the miss program is left out for opaque and transparent surfaces, and its image kept whatever the memory held; with the transient targets sharing memory, another target's bytes: red, green and purple glitter on every window on Series S. One diagnostics run alternating it every 8 s: the glitter in every shot without it, clean glass in every shot with it; 71.3 against 71.0 ms a frame. 5. **Launcher: `VICTORY_WAVE_FOLDED=1`.** With v2026.11.29.02's default (no folding) every release run here lost the device (`DXGI_ERROR_DEVICE_HUNG`, 43, 73 and 92 s into the world), as #3050 has on an RTX 5080; with folding first, none of ten runs did (three of them 5, 5 and 2 minutes in the world on the hotfix build). v2026.11.29.03 (05d1c564) folds more by default again; that default was not measured here. - The commit also set `VICTORY_BVH_MISS=1` and `VICTORY_NAN_SCRUB=1`, as `victory play` does. Since 84bd61e2 (#4067) `scripts/play-nvidia.ps1` fills in play's shader-key defaults itself, so those two are main's now. Here they cost no card time: one recorded frame replayed with each shader set took 37.37 against 37.16 ms. - Those defaults also turn on `VICTORY_SAMPLED_MARKS`, which this commit had left out together with `victory play`'s texture switches. With all four the save point took 2.7 GB more of the card's memory and 3.5 GB more of the PC's, and ran slower (14.0 and 9.7 against 18.3 and 18.3 fps). `SAMPLED_MARKS` was not measured on its own here, so the PR leaves main's choice as it is. ## After review Two testers ran it (comments below). Without frame generation (RTX 5070) no gain, and one frame in 160 with some vegetation missing; with 3x frame generation (RTX 5070 Ti) `VICTORY_REFLEX_ASIDE` gave 1.25 fps more on average but twice the frames over 50 ms. The A/B logs here, read again for pacing, agree (standing: p95 51.2 -> 57.3 ms, frames over 50 ms 10.3 -> 13.4 %). So the last commit takes `VICTORY_WIDE_PIECES` and `VICTORY_REFLEX_ASIDE` out of the launcher; both stay as switches, off unless asked for, with what each costs in `docs/README-nvidia.md`, `docs/dlss.md` and `docs/findings.md`. ## How it was tested - GPU and profile: RTX 5060 Ti 16 GB (PCIe 4.0 x8, driver 617.42), Ryzen 7 7700X, 32 GB DDR5-5600, Windows 11 26300. Series X at 1440p with DLSS Quality for the first measurements, Series S (1920x1080) with DLSS frame generation 2x for the later ones (`docs/findings.md` gives each one's); ray tracing off (the launcher's estimates of light and reflections). - Before / After: per commit above. In-run A/B (`VICTORY_AB`) wherever it could be, since the save point's time of day moves from run to run; release runs in turns otherwise. - Main merged in at 41adb551 (v2026.11.29.05): the only conflict was `host/send.rs`'s test module, where the new test sits beside main's `parallel_copy_threshold_requires_multiple_tasks`; one more commit fixes a doc link (`nothing_new` is now `nothing_new_with`). - Main merged in again at c71899d9, at 84bd61e2, and at 5fabb46e after main was rewritten (84bd61e2 is 4e6cf227 there; the branch's diff over main stayed the same): - In `host.rs` the card compare keeps main's capture (compare bits 2 and 4) with the faster hash. - In `shadow.rs` main's `unified_stats` count runs before the wide pieces. - `VICTORY_GUARD_AHEAD` publishes with main's `publish_range`. - `host/send.rs` is main's (commit 2). - The launcher's switches moved to `scripts/play-nvidia.ps1`, which replaced `play-foxhound.ps1`. - For shader changes, the wave sizes tested: 32 lanes (NVIDIA). No translation changes; commit 5 only selects existing switches. - Run here after the last merge: - `cargo check --workspace --all-targets --locked` passes. - This branch's tests and the card compare's (`cargo test -p victory-gpu --lib`, filtered to them): 13 passed on WARP. - The two `hardware_card_compare_*` tests, run with `--ignored` on the RTX 5060 Ti, pass too. - The check's two warnings are in main as well (`Shadow::ranged` is never used, `loop_caps` is never read), and `-D warnings` turns them into errors in the clippy gates of `ci.yml`. - The full `cargo test --workspace` was not run here. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: - #2764 and #2872: the same clear as commit 4, by a host UAV clear or behind `VICTORY_RAYMISS_ZERO`; whichever lands, commit 4 can go. - #3381: the same 1 Hz sweep, trimming to a low-water mark; main's rewrite took that ground (commit 2). - #2722: reconciles the launcher with `play.rs`, including the texture switches commit 5 left out; main's #4067 now fills in play's shader-key defaults. - #2433: the split send. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Measured on an RTX 5060 Ti + Ryzen 7 7700X (docs/findings.md, from "What was
learned on an RTX 5060 Ti" on).

- VICTORY_WIDE_PIECES (on in the launcher, crate::wide): the skinning passes'
  writes through the title's whole 174 MB heap are declared as the 64 KiB
  pieces found written. Heavy city stretches 83.4 -> 76.0 ms a frame.
- VICTORY_REFLEX_ASIDE (on with DLSS): slReflexSleep every frame on a thread
  of its own. Without any call of the app's the driver made Reflex's sleep
  inside our present, on the thread every submission is prepared on.
  Diagnostics A/B standing: median frame 46.8 -> 42.2 ms; with the player
  moving through the city: -20.9 ms a frame (it sat at 71.4 ms without it).
- VICTORY_FAULT_UNLOCKED (on in the launcher): the title's write faults open
  guarded blocks without the guards' lock.
- A faster compare of the card's copies (thirty-two loads at once, the parts
  nine at a time).
- Off, experimental: VICTORY_GUARD_AHEAD (no gain standing or moving),
  VICTORY_SUBMIT_CORE, VICTORY_REFLEX_MODE; timeline recording fixes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Under host memory pressure the sweep let every spare of the send memory go
once a second; with the title at 20 GB of a 32 GB PC the pressure never
ends, and the memory every frame sends from was released and made, mapped
again at once: 9.9 % of the submitting thread in Map of new send memory and
7.2 % releasing it (profile, RTX 5060 Ti). Now only the spares no
submission gave back since the sweep before go (all of them when commit is
critical, as before). Release at the save point: 14.8-17.1 -> 19.6-20.7 fps,
copies in the card's memory 16.9 -> 9.6 ms a frame.

The diagnostics build compiles again: copystat's window-trim line had no
`mb`, and the submission's own `timing` hid the GPU-timing switch in
`Host::submit`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main's port of Biskwit/VIctory-reloaded's split send, off there until
measured on more machines. Diagnostics A/B at the save point, RTX 5060 Ti +
Ryzen 7 7700X (5 phases of each of four combinations): frame 44.6 -> 42.0
ms, the submitting thread 41.6 -> 38.2 ms, screenshots alike; release
medians 23.7 -> 23.7 and 24.7 fps. VICTORY_GUARD_AHEAD gave nothing again.

findings.md: the gap left after the merge with main was the save point
moving (the branch before the merge, run beside the merged one at the new
save point: 18.7 and 20.4 fps against 23.2 and 23.3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Since e2d7854e the reflections' miss program (CS_RayMiss) is left out for
opaque and transparent surfaces. Without the ray-tracing structures it is
what writes the texels of the rays the screen-space passes resolve nothing
for, so those texels kept whatever the memory held: with the transient
render targets sharing memory (VICTORY_ALIAS_TARGETS), another target's
bytes. On Series S every car window and shop glass showed red, green and
purple glitter (RTX 5060 Ti, 2026-11-29; upstream #2464, #2139, #2440).

Where it is left out, the program is now bound and its image cleared in
its place by a pass of ours (ambient::clear_miss): no reflected light
there instead of old bytes. VICTORY_RAYMISS_CLEAR=0 leaves the image as
it was. One diagnostics run alternating it every 8 s at a street corner:
the glitter in every shot without it, clean glass in every shot with it;
frame times 71.3 against 71.0 ms (within the noise).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With folding off (v2026.11.29.02, 5c262d7b) an RTX 5060 Ti lost the device
(DXGI_ERROR_DEVICE_HUNG) 43-92 s into the world in every release run, as
upstream #3050 has on an RTX 5080; with VICTORY_WAVE_FOLDED=1 none of ten
runs did. Rays missing every node while the structure builder is off and the
NaN scrub, as `victory play` sets them, cost no card time on a replayed
frame (37.37 against 37.16 ms). play.rs's texture switches are left out:
with them the save point took 2.7 GB more of the card's memory and 3.5 GB
more of the PC's, and ran slower (docs/findings.md).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	crates/victory-gpu/src/host/send.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 23:04:07 +00:00
Author
Owner

@⁠DoubleD17 on GitHub · 2026-11-30 03:37 UTC · original · edited 2026-11-30 09:56 UTC

We ran a test of this PR with its two new switches, VICTORY_REFLEX_ASIDE=1 and VICTORY_WIDE_PIECES=1 (VICTORY_RAYMISS_CLEAR at its default, on). VICTORY_FAULT_UNLOCKED and VICTORY_SUBMIT_SPLIT, which the PR's launcher script also sets, are main's own switches and were left at their defaults, so the comparison shows only this PR's code.

CPU prep (ms/frame) controls at that point fps (mean) controls at that point
round 1 70.4 67.5 11.33 12.08
round 2 62.3 63.6 12.79 12.80
mean difference +0.8 ms −3.1 %

No gain we can measure on this release build (the controls alone spread over 9 ms).

Picture: in round 1, one frame out of 160 had the palms and the potted plants by the house missing; they were back in the next frame. We saw none in the 320 control frames of this session, nor in 800 earlier control frames on this base. We have seen the same one-frame vegetation gap with #3502, #3476 and #1561. It may be a timing-sensitive problem in main that these changes make more likely, rather than this PR alone, but we wanted you to know.

Setup:

  • Ryzen 7 5800X (8 cores, 16 threads), RTX 5070 12 GB (DXGI budget 11,175 MB), 64 GB RAM, Windows 11;
  • Series X, 1440p with DLAA (DLSS at native resolution; corrected, this line said DLSS Performance at first), frame generation and ray tracing off;
  • the PR merged locally onto main 41adb551 (only its own commits on top), against 41adb551 itself;
  • a warm-up run per build, then 150 s runs in two rounds (the second in reverse order), with four control runs of 41adb551 spread through the session;
  • every run starts from the same save, restored before each run;
  • figures are medians of the 5 s host lines. The four controls measured 60.4–69.4 ms of CPU preparation per frame and drifted during the session, so each run is compared with the controls interpolated to its own start.

Picture check: a burst of 10 captures a second at the end of each run (80 frames), looked at frame by frame.

AI Assisted

**@⁠DoubleD17** on GitHub · 2026-11-30 03:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3411#issuecomment-7268047024) · edited 2026-11-30 09:56 UTC We ran a test of this PR with its two new switches, `VICTORY_REFLEX_ASIDE=1` and `VICTORY_WIDE_PIECES=1` (`VICTORY_RAYMISS_CLEAR` at its default, on). `VICTORY_FAULT_UNLOCKED` and `VICTORY_SUBMIT_SPLIT`, which the PR's launcher script also sets, are main's own switches and were left at their defaults, so the comparison shows only this PR's code. | | CPU prep (ms/frame) | controls at that point | fps (mean) | controls at that point | |---|---|---|---|---| | round 1 | 70.4 | 67.5 | 11.33 | 12.08 | | round 2 | 62.3 | 63.6 | 12.79 | 12.80 | | **mean difference** | **+0.8 ms** | | **−3.1 %** | | No gain we can measure on this release build (the controls alone spread over 9 ms). **Picture:** in round 1, one frame out of 160 had the palms and the potted plants by the house missing; they were back in the next frame. We saw none in the 320 control frames of this session, nor in 800 earlier control frames on this base. We have seen the same one-frame vegetation gap with #3502, #3476 and #1561. It may be a timing-sensitive problem in main that these changes make more likely, rather than this PR alone, but we wanted you to know. **Setup:** - Ryzen 7 5800X (8 cores, 16 threads), RTX 5070 12 GB (DXGI budget 11,175 MB), 64 GB RAM, Windows 11; - Series X, 1440p with DLAA (DLSS at native resolution; corrected, this line said DLSS Performance at first), frame generation and ray tracing off; - the PR merged locally onto main 41adb551 (only its own commits on top), against 41adb551 itself; - a warm-up run per build, then 150 s runs in two rounds (the second in reverse order), with four control runs of 41adb551 spread through the session; - every run starts from the same save, restored before each run; - figures are medians of the 5 s host lines. The four controls measured 60.4–69.4 ms of CPU preparation per frame and drifted during the session, so each run is compared with the controls interpolated to its own start. Picture check: a burst of 10 captures a second at the end of each run (80 frames), looked at frame by frame. AI Assisted
Author
Owner

@⁠ColorC on GitHub · 2026-11-30 08:58 UTC · original

AI Disclosure: This hardware benchmark, log analysis, and report were automated and posted by an AI assistant on behalf of the hardware owner (Ryzen 7 9800X3D, 32 GB DDR5, RTX 5070 Ti 16 GB, Windows 11 26200). No game screenshots or title assets are included.

Sharing controlled A/B data on RTX 5070 Ti + Ryzen 7 9800X3D with DLSS Quality + 3x MFG ON (so NVIDIA Reflex is actively engaged, complementing @⁠DoubleD17's FG-off test):

Same-Binary Toggle Variant (~10.0k–10.3k draws) Avg Native FPS Avg / Med ms Present Call (avg / max) slReflexSleep Off-Thread Errors
Base (VICTORY_REFLEX_ASIDE=0) 24.95 40.1 / 39.8 ms 1.41 ms / 3.9 ms 0.00 ms 0
Base + VICTORY_REFLEX_ASIDE=1 ONLY 26.20 (+1.25) 38.2 / 38.1 ms 0.55 ms / 1.9 ms 20.73 ms (2 left out) 0
#3809 switches (REFLEX_ASIDE=0) 27.80 36.0 / 35.8 ms 3.99 ms / 14.4 ms 0.00 ms 0
#3809 + REFLEX_ASIDE=1 + WIDE_PIECES=1 28.34 (+0.54) 35.3 / 35.6 ms 0.45 ms / 0.7 ms 17.15 ms (5 left out) 0

Telemetry Notes

  • VICTORY_REFLEX_ASIDE=1 is a clear win when MFG/Reflex is enabled: Standalone gain was +1.25 FPS (-1.9 ms), and once CPU prep got faster (with VICTORY_SUBMIT_SPLIT=1), moving slReflexSleep off-thread slashed Present stalls from 3.99 ms (max 14.4 ms) down to 0.45 ms (max 0.7 ms).
  • VICTORY_WIDE_PIECES=1 narrowing telemetry:
    big declared ranges per frame (VICTORY_WIDE_PIECES=1): 2784 MB asked of 1 copies, 389.0 MB declared, 28.9 MB looked at in turn; 389 pieces of 64 KiB found written in all, 0 new since the last line (-86% declared range).
  • Clean across a subsequent 4-minute open-world walking tour (30.1 FPS avg, 0/48 > 50 ms, 0 errors).

Test Setup

  • Hardware: AMD Ryzen 7 9800X3D (Zen 5, 8C/16T), 32 GB DDR5, NVIDIA RTX 5070 Ti 16 GB (ReBAR ON), Windows 11 26200
  • Profile: Series X, 2560x1440, DLSS Quality, 3x MFG (--res 1440 --dlss quality --framegen 3 --fps 1000)
  • Build: Release ThinLTO (-C target-cpu=znver5) rebased on main (41adb551) with a curated local PR stack; all A/B numbers below are same-binary toggle ablations from the exact same restored save (~10.0k–10.4k draws/frame standing scene) after official 1-time warmup.
**@⁠ColorC** on GitHub · 2026-11-30 08:58 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3411#issuecomment-7273583343) > **AI Disclosure:** This hardware benchmark, log analysis, and report were automated and posted by an AI assistant on behalf of the hardware owner (Ryzen 7 9800X3D, 32 GB DDR5, RTX 5070 Ti 16 GB, Windows 11 26200). No game screenshots or title assets are included. Sharing controlled A/B data on **RTX 5070 Ti + Ryzen 7 9800X3D** with **DLSS Quality + 3x MFG ON** (so NVIDIA Reflex is actively engaged, complementing @⁠DoubleD17's FG-off test): | Same-Binary Toggle Variant (~10.0k–10.3k draws) | Avg Native FPS | Avg / Med ms | Present Call (avg / max) | `slReflexSleep` Off-Thread | Errors | |---|---:|---:|---:|---:|---:| | Base (`VICTORY_REFLEX_ASIDE=0`) | 24.95 | 40.1 / 39.8 ms | 1.41 ms / 3.9 ms | 0.00 ms | 0 | | **Base + `VICTORY_REFLEX_ASIDE=1` ONLY** | **26.20 (+1.25)** | **38.2 / 38.1 ms** | **0.55 ms / 1.9 ms** | **20.73 ms** (2 left out) | 0 | | `#3809` switches (`REFLEX_ASIDE=0`) | 27.80 | 36.0 / 35.8 ms | 3.99 ms / **14.4 ms** | 0.00 ms | 0 | | **`#3809` + `REFLEX_ASIDE=1` + `WIDE_PIECES=1`** | **28.34 (+0.54)** | **35.3 / 35.6 ms** | **0.45 ms / 0.7 ms** | **17.15 ms** (5 left out) | 0 | ### Telemetry Notes - **`VICTORY_REFLEX_ASIDE=1` is a clear win when MFG/Reflex is enabled:** Standalone gain was `+1.25 FPS (-1.9 ms)`, and once CPU prep got faster (with `VICTORY_SUBMIT_SPLIT=1`), moving `slReflexSleep` off-thread slashed `Present` stalls from `3.99 ms (max 14.4 ms)` down to **`0.45 ms (max 0.7 ms)`**. - **`VICTORY_WIDE_PIECES=1` narrowing telemetry:** `big declared ranges per frame (VICTORY_WIDE_PIECES=1): 2784 MB asked of 1 copies, 389.0 MB declared, 28.9 MB looked at in turn; 389 pieces of 64 KiB found written in all, 0 new since the last line` (-86% declared range). - Clean across a subsequent 4-minute open-world walking tour (`30.1 FPS` avg, `0/48 > 50 ms`, `0` errors). ### Test Setup - **Hardware:** AMD Ryzen 7 9800X3D (Zen 5, 8C/16T), 32 GB DDR5, NVIDIA RTX 5070 Ti 16 GB (ReBAR ON), Windows 11 26200 - **Profile:** Series X, 2560x1440, DLSS Quality, 3x MFG (`--res 1440 --dlss quality --framegen 3 --fps 1000`) - **Build:** Release ThinLTO (`-C target-cpu=znver5`) rebased on `main` (`41adb551`) with a curated local PR stack; all A/B numbers below are **same-binary toggle ablations** from the exact same restored save (~10.0k–10.4k draws/frame standing scene) after official 1-time warmup.
Author
Owner

@⁠ColorC on GitHub · 2026-11-30 09:08 UTC · original

AI Disclosure (Follow-up Correction): Automated per-frame pacing audit posted by an AI assistant on behalf of the hardware owner (Ryzen 7 9800X3D + RTX 5070 Ti 16 GB).

Important follow-up on per-frame pacing ( ictory_gpu::frame_times P95 / P99 / >50 ms frames) under 3x MFG:

While the 5-second average FPS nudged up with VICTORY_REFLEX_ASIDE=1 in the table above, inspecting the exact per-frame ictory_gpu::frame_times lines from the exact same logs revealed a major frame-pacing / 1% Low regression when slReflexSleep is moved onto an unwaited thread with 3x MFG active:

Same-Binary Toggle Variant (~10k draws, 3x MFG) In-World Frames Per-Frame Median Per-Frame P95 Per-Frame P99 (1% Low) Frames > 50 ms
Base (REFLEX_ASIDE=0) 1,877 38.4 ms (26.0 fps) 51.4 ms 72.4 ms (13.8 fps) 6.3%
Base + VICTORY_REFLEX_ASIDE=1 ONLY 1,826 39.1 ms (25.6 fps) 57.5 ms 66.4 ms (15.1 fps) 14.0%
#3809 switches (REFLEX_ASIDE=0) 1,965 32.2 ms (31.1 fps) 41.0 ms (24.4 fps) 54.6 ms (18.3 fps) 1.4%
#3809 + VICTORY_REFLEX_ASIDE=1 + WIDE_PIECES=1 2,577 34.7 ms (28.8 fps) 56.2 ms 59.1 ms (16.9 fps) 18.4% (13x worse!)

Calling slReflexSleep off-thread without synchronizing back appears to break Reflex pacing under 3x MFG, turning steady ~32–41 ms frames into alternating sawtooth bursts (1.4% -> 18.4% of frames exceeding 50 ms). Sharing this correction so the pacing trade-off is completely transparent.

**@⁠ColorC** on GitHub · 2026-11-30 09:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3411#issuecomment-7273792823) > **AI Disclosure (Follow-up Correction):** Automated per-frame pacing audit posted by an AI assistant on behalf of the hardware owner (Ryzen 7 9800X3D + RTX 5070 Ti 16 GB). **Important follow-up on per-frame pacing ( ictory_gpu::frame_times P95 / P99 / >50 ms frames) under 3x MFG:** While the 5-second average FPS nudged up with VICTORY_REFLEX_ASIDE=1 in the table above, inspecting the exact per-frame ictory_gpu::frame_times lines from the exact same logs revealed a **major frame-pacing / 1% Low regression** when slReflexSleep is moved onto an unwaited thread with 3x MFG active: | Same-Binary Toggle Variant (~10k draws, 3x MFG) | In-World Frames | Per-Frame Median | Per-Frame P95 | Per-Frame P99 (1% Low) | Frames > 50 ms | |---|---:|---:|---:|---:|---:| | Base (REFLEX_ASIDE=0) | 1,877 | 38.4 ms (26.0 fps) | 51.4 ms | 72.4 ms (13.8 fps) | 6.3% | | Base + VICTORY_REFLEX_ASIDE=1 ONLY | 1,826 | 39.1 ms (25.6 fps) | **57.5 ms** | 66.4 ms (15.1 fps) | **14.0%** | | **#3809 switches (REFLEX_ASIDE=0)** | **1,965** | **32.2 ms (31.1 fps)** | **41.0 ms (24.4 fps)** | **54.6 ms (18.3 fps)** | **1.4%** | | #3809 + VICTORY_REFLEX_ASIDE=1 + WIDE_PIECES=1 | 2,577 | 34.7 ms (28.8 fps) | **56.2 ms** | 59.1 ms (16.9 fps) | **18.4% (13x worse!)** | Calling slReflexSleep off-thread without synchronizing back appears to break Reflex pacing under 3x MFG, turning steady ~32–41 ms frames into alternating sawtooth bursts (1.4% -> 18.4% of frames exceeding 50 ms). Sharing this correction so the pacing trade-off is completely transparent.
Two testers of #3411. On an RTX 5070 without frame generation no gain, and
once in 160 frames some vegetation missing for a frame. On an RTX 5070 Ti
with 3x frame generation Reflex's sleep aside gave 1.25 fps more on average
but twice the frames over 50 ms. The A/B runs here, read again, agree:
standing, the median frame 46.4 -> 42.3 ms but the p95 51.2 -> 57.3 ms and
the frames over 50 ms 10.3 -> 13.4 %; moving, the frame no longer held at
71.4 ms. With the sleep aside nothing paces the frames.

VICTORY_WIDE_PIECES leaves a piece first written after a copy's first 64
frames undeclared for a few frames, in which a title write sends the title's
bytes over the shaders'. Both switches stay, off unless asked for
(docs/findings.md).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠dragoso on GitHub · 2026-11-30 10:03 UTC · original

Thank you both, @⁠DoubleD17 and @⁠ColorC: this changed the pull request (904bc40e).

  • VICTORY_REFLEX_ASIDE: our own A/B logs, read again for pacing, give the same picture as yours. RTX 5060 Ti with 2x frame generation, standing: the median frame 46.4 -> 42.3 ms, but p95 51.2 -> 57.3 ms and frames over 50 ms 10.3 -> 13.4 %. Moving through the city it does take the frame out of the 71.4 ms hold (median 71.4 -> 54.6 ms). With the sleep on a thread nothing waits for, nothing paces the frames. The launcher no longer sets it; it stays as a switch, off unless asked for, with that trade-off written down.
  • VICTORY_WIDE_PIECES: it has a window that could make the one-frame vegetation gap. A piece the shaders write for the first time after a copy's first 64 frames is not declared until a look finds it, a few frames later, and a title write into that 64 KiB meanwhile sends the title's bytes over the shaders'. Not shown to be the cause, but the launcher no longer sets it either.
  • With frame generation off Reflex is off, so VICTORY_REFLEX_ASIDE had nothing to do in the RTX 5070 run: that one measured VICTORY_WIDE_PIECES alone.

🤖 Generated with Claude Code

**@⁠dragoso** on GitHub · 2026-11-30 10:03 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3411#issuecomment-7275049051) Thank you both, @⁠DoubleD17 and @⁠ColorC: this changed the pull request (904bc40e). - `VICTORY_REFLEX_ASIDE`: our own A/B logs, read again for pacing, give the same picture as yours. RTX 5060 Ti with 2x frame generation, standing: the median frame 46.4 -> 42.3 ms, but p95 51.2 -> 57.3 ms and frames over 50 ms 10.3 -> 13.4 %. Moving through the city it does take the frame out of the 71.4 ms hold (median 71.4 -> 54.6 ms). With the sleep on a thread nothing waits for, nothing paces the frames. The launcher no longer sets it; it stays as a switch, off unless asked for, with that trade-off written down. - `VICTORY_WIDE_PIECES`: it has a window that could make the one-frame vegetation gap. A piece the shaders write for the first time after a copy's first 64 frames is not declared until a look finds it, a few frames later, and a title write into that 64 KiB meanwhile sends the title's bytes over the shaders'. Not shown to be the cause, but the launcher no longer sets it either. - With frame generation off Reflex is off, so `VICTORY_REFLEX_ASIDE` had nothing to do in the RTX 5070 run: that one measured `VICTORY_WIDE_PIECES` alone. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Conflicts resolved by keeping both sides:
- host.rs, CARD_COMPARE: main's capture of the pieces found differing
  (`taken`, compare bits 2 and 4, every thread past the hash) with our 32
  loads at a time and the 64 hashes read nine at a time, now inside main's
  `if (thread == 0u)`. Compiles with d3dcompiler_47 (cs_5_1).
- host/send.rs, trim: our sweep that keeps the spares in use (`staying`),
  and main's recycled send plans cleared when commit is critical.
- shadow.rs, gpu_writes and shader_writes: main's `unified_stats` count,
  then our big-range narrowing (`crate::wide`).
- watch.rs, guard_ahead: main replaced `publish(&blocks)` with
  `publish_range(first, last)` (8bd49cdc); the guarding ahead publishes
  its range after the asking as main's `writes()` does.

cargo check --workspace --all-targets passes (with main's two test calls of
card_pass given their new argument, which main itself lacks); its only
warnings are main's own (`Shadow::ranged`, `loop_caps`).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot changed title from RTX 5060 Ti: heap writes in pieces, Reflex's sleep off the submitting thread, send spares kept under pressure, launcher folding first to RTX 5060 Ti: heap writes in pieces, Reflex's sleep off the submitting thread, launcher folding first 2026-11-30 18:11:04 +00:00
Main rewrote the send spares' sweep (697590ad, 1ecaa98a, 8b801739): the
spares keep what the last sweeps used, and go on a thread of their own.
That is the same ground as this branch's send commit, so host/send.rs is
main's here, and nothing of that commit (its rule and its test) is left
in the diff.

Main's 84bd61e2 replaced scripts/play-foxhound.ps1 with
scripts/play-nvidia.ps1, which now fills in play's shader-key defaults
(BVH_MISS, NAN_SCRUB, SAMPLED_MARKS) itself. Of this branch's launcher
switches, FAULT_UNLOCKED, SUBMIT_SPLIT and WAVE_FOLDED move to
play-nvidia.ps1; BVH_MISS and NAN_SCRUB are main's now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot closed this pull request 2026-12-01 18:59:12 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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