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

Closed
dragoso wants to merge 20 commits from upstream-pr/3411 into main
dragoso commented 2026-11-29 22:57:52 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dragoso on 2026-11-29T22:57:52Z.


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 and at 84bd61e2:
    • 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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5556062471 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3411). Originally posted by [dragoso](https://github.com/dragoso) on 2026-11-29T22:57:52Z. --- 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 and at 84bd61e2: - 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)
DoubleD17 commented 2026-11-30 03:37:06 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by DoubleD17 on 2026-11-30T03:37:06Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7268047024 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3411#issuecomment-7268047024). Originally posted by [DoubleD17](https://github.com/DoubleD17) on 2026-11-30T03:37:06Z. --- 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
ColorC commented 2026-11-30 08:58:48 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ColorC on 2026-11-30T08:58:48Z.


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.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7273583343 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3411#issuecomment-7273583343). Originally posted by [ColorC](https://github.com/ColorC) on 2026-11-30T08:58:48Z. --- > **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 commented 2026-11-30 09:08:24 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ColorC on 2026-11-30T09:08:24Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7273792823 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3411#issuecomment-7273792823). Originally posted by [ColorC](https://github.com/ColorC) on 2026-11-30T09:08:24Z. --- > **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.
dragoso commented 2026-11-30 10:03:11 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dragoso on 2026-11-30T10:03:11Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7275049051 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3411#issuecomment-7275049051). Originally posted by [dragoso](https://github.com/dragoso) on 2026-11-30T10:03:11Z. --- 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)
trustno1-coder commented 2026-12-01 18:52:28 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:52:28Z.


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:7321719020 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3411#issuecomment-7321719020). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:52:28Z. --- 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!3411
No description provided.