Play defaults: submission split, lazy card compares and table-same on (+4-5 fps native, long frames down) #3809

Closed
github-bot wants to merge 1 commit from github-bot/gh-3809 into main AGit
Owner

@⁠KruIN689 on GitHub · 2026-11-30 07:49 UTC · original
KruIN689:up/play-defaults → main · +13 −0 · 2 files · 1 commits · closed without merging

Fixes #

What it changes

Four switches that are already in the code but off by default are now on in both launchers (apps/victory/src/play.rs and scripts/play-foxhound.ps1):

  • VICTORY_SUBMIT_SPLIT=1: a submission is prepared while the one before it is sent (#1418, opt-in until now).
  • VICTORY_LAZY_COMPARE_MB=64 with VICTORY_LAZY_NARROW=1: big card copies are compared only where they were written lately.
  • VICTORY_TABLE_SAME=1: table entries that a list already brought up to date are left as they are.

The submitting thread is the bottleneck at native resolution. Together these four take about 1.4 ms (27.6–32.6 ms → 26 ms) off its frame, and they cut long frames sharply. No code changes. Each switch can still be turned off with -Set NAME=0 or in the environment.

How it was tested

  • GPU and profile: RTX 5080 (driver 621.40) and Ryzen 9 9950X3D, Series X profile, native 2560x1440, DLSS off, frame generation off, ray tracing off.
  • Method: standing still at the same save, alternating 2+2 runs of 3.5 minutes, medians over the last 2.5 minutes. Draws were similar in every run (3,765–4,285).
  • Before: 30.9 / 30.1 fps. Frames over 50 ms: 29.2 / 44.1 per 1,000. Submitting thread: 27.6 / 32.6 ms a frame.
  • After: 36.4 / 34.2 fps. Frames over 50 ms: 1.8 / 24.5 per 1,000. Submitting thread: 26.2 / 26.0 ms a frame.
  • These numbers come from our fork of v2026.11.29.01 (plus fixes), where the defaults have been on in daily play since. This branch is the same change rebased on today's main (41adb551).
  • cargo test -p victory --locked: passed (83 tests).
  • cargo clippy -p victory --all-targets -- -D warnings: stops at main's own unwind_copy dead-code error in victory-loader. #3785 and #2019 fix that error; it is not from this change.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #1418 (added VICTORY_SUBMIT_SPLIT as opt-in, merged). No open PR turns these switches on by default (searched "SUBMIT_SPLIT default", "TABLE_SAME", "LAZY_COMPARE").

AI use: Claude Code (Claude Opus 5.5) prepared this branch, ran the measurements and wrote this text. Posted with the account owner's approval. Label: [pr-performance].

**@⁠KruIN689** on GitHub · 2026-11-30 07:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809) `KruIN689:up/play-defaults` → `main` · +13 −0 · 2 files · 1 commits · closed without merging Fixes # ## What it changes Four switches that are already in the code but off by default are now on in both launchers (`apps/victory/src/play.rs` and `scripts/play-foxhound.ps1`): - `VICTORY_SUBMIT_SPLIT=1`: a submission is prepared while the one before it is sent (#1418, opt-in until now). - `VICTORY_LAZY_COMPARE_MB=64` with `VICTORY_LAZY_NARROW=1`: big card copies are compared only where they were written lately. - `VICTORY_TABLE_SAME=1`: table entries that a list already brought up to date are left as they are. The submitting thread is the bottleneck at native resolution. Together these four take about 1.4 ms (27.6–32.6 ms → 26 ms) off its frame, and they cut long frames sharply. No code changes. Each switch can still be turned off with `-Set NAME=0` or in the environment. ## How it was tested - **GPU and profile:** RTX 5080 (driver 621.40) and Ryzen 9 9950X3D, Series X profile, native 2560x1440, DLSS off, frame generation off, ray tracing off. - **Method:** standing still at the same save, alternating 2+2 runs of 3.5 minutes, medians over the last 2.5 minutes. Draws were similar in every run (3,765–4,285). - **Before:** 30.9 / 30.1 fps. Frames over 50 ms: 29.2 / 44.1 per 1,000. Submitting thread: 27.6 / 32.6 ms a frame. - **After:** 36.4 / 34.2 fps. Frames over 50 ms: 1.8 / 24.5 per 1,000. Submitting thread: 26.2 / 26.0 ms a frame. - These numbers come from our fork of v2026.11.29.01 (plus fixes), where the defaults have been on in daily play since. This branch is the same change rebased on today's main (41adb551). - `cargo test -p victory --locked`: passed (83 tests). - `cargo clippy -p victory --all-targets -- -D warnings`: stops at main's own `unwind_copy` dead-code error in victory-loader. #3785 and #2019 fix that error; it is not from this change. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1418 (added `VICTORY_SUBMIT_SPLIT` as opt-in, merged). No open PR turns these switches on by default (searched "SUBMIT_SPLIT default", "TABLE_SAME", "LAZY_COMPARE"). AI use: Claude Code (Claude Opus 5.5) prepared this branch, ran the measurements and wrote this text. Posted with the account owner's approval. Label: [pr-performance].
Three switches upstream leaves off, now on in both launchers:
VICTORY_SUBMIT_SPLIT=1 (a submission prepared while the one before is
sent), VICTORY_LAZY_COMPARE_MB=64 with VICTORY_LAZY_NARROW=1 (big card
copies compared only where written lately), VICTORY_TABLE_SAME=1 (table
entries a list already brought up to date left as they are).

Measured together on this branch, RTX 5080 / Ryzen 9 9950X3D, Series X,
native 1440p, DLSS off, standing still, 2+2 alternating runs of 3.5 min:
30.9 / 30.1 fps -> 36.4 / 34.2 at similar draws (3,765-4,285); frames
over 50 ms 29.2 / 44.1 -> 1.8 / 24.5 per 1,000; the submitting thread
27.6 / 32.6 -> 26.2 / 26.0 ms a frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 07:50:53 +00:00
Author
Owner

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

Independent datapoint with your exact four settings on our existing e660311e engine, RTX 4070 Ti SUPER 16 GB and i5-13600KF, Windows 11. Series X at native internal/output 2560×1440, DLSS and FG off, original RT on. Same local save, fixed 15 s movement near the house, one measured run per condition so far.

Control Four settings
Median rendered FPS 11.61 13.42
1% low FPS 3.68 3.77
p95 frame time 161.0 ms 137.1 ms
p99 frame time 253.5 ms 261.1 ms
Frames above 100 ms 58 of 165 48 of 183
Median draws per frame 8,178 8,558

Both runs loaded the same shader-cache snapshot. This first moving comparison shows an improvement with the rare worst frames still present. Do you have a per-switch breakdown for TABLE_SAME and lazy comparisons on a moving scene? We can cross-check the biggest contributor under full RT.

**@⁠akimfomin** on GitHub · 2026-11-30 08:11 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7272592769) Independent datapoint with your exact four settings on our existing `e660311e` engine, RTX 4070 Ti SUPER 16 GB and i5-13600KF, Windows 11. Series X at native internal/output 2560×1440, DLSS and FG off, original RT on. Same local save, fixed 15 s movement near the house, one measured run per condition so far. | | Control | Four settings | | --- | ---: | ---: | | Median rendered FPS | 11.61 | 13.42 | | 1% low FPS | 3.68 | 3.77 | | p95 frame time | 161.0 ms | 137.1 ms | | p99 frame time | 253.5 ms | 261.1 ms | | Frames above 100 ms | 58 of 165 | 48 of 183 | | Median draws per frame | 8,178 | 8,558 | Both runs loaded the same shader-cache snapshot. This first moving comparison shows an improvement with the rare worst frames still present. Do you have a per-switch breakdown for `TABLE_SAME` and lazy comparisons on a moving scene? We can cross-check the biggest contributor under full RT.
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.

Cross-validation data on RTX 5070 Ti + Ryzen 7 9800X3D (Series X 1440p, DLSS Quality + 3x MFG), testing the 4 switches enabled by this PR (VICTORY_SUBMIT_SPLIT=1, VICTORY_LAZY_COMPARE_MB=64, VICTORY_LAZY_NARROW=1, VICTORY_TABLE_SAME=1) via same-binary toggle A/B:

Variant (same binary, ~10k draws) Avg Native FPS Avg / Med ms P90 / Max ms Frame-Time SD CPU Prep Submitting Thread Present Call Errors
Baseline (4 switches OFF) 24.95 40.1 / 39.8 ms 41.3 / 41.8 ms 0.94 ms 27.7 ms 29.5 ms 1.41 ms (max 3.9) 0
+ #3809 (4 switches ON) 27.80 (+2.85) 36.0 / 35.8 ms 36.6 / 36.9 ms 0.54 ms 22.7 ms 20.6 ms 3.99 ms (max 14.4) 0
+ #3809 + #3411 (VICTORY_REFLEX_ASIDE=1) 28.34 (+3.39) 35.3 / 35.6 ms 37.1 / 38.1 ms 1.35 ms 24.3 ms 26.9 ms 0.45 ms (max 0.7) 0

Key Telemetry Observations

  • Huge CPU submitting-thread drop: 29.5 ms -> 20.6 ms (planning steps done on the card dropped 2.3 -> 1.0 ms; VICTORY_SUBMIT_SPLIT sending thread absorbed 2.4 + 0.1 + 1.0 = 3.5 ms/frame in parallel; GPU compare lists dropped to 0.2 ms).
  • Tighter frame pacing: Standing SD tightened from 0.94 ms -> 0.54 ms (Max 41.8 -> 36.9 ms).
  • 4-minute open-world walking tour (with #3809 switches + #3411): N=48 5-second windows (~240s, avg 8,701 draws), Avg 30.1 FPS (33.9 ms), Med 34.0 ms (29.4 FPS), P90 38.1 ms, Max 43.0 ms, 0/48 windows over 50 ms, 0 errors.
  • Note for MFG/Reflex users: Because the submitting thread became faster than the GPU, driver Reflex sleep moved into Present (1.41 -> 3.99 ms, max 14.4 ms) until paired with VICTORY_REFLEX_ASIDE=1 (#3411), which brought Present down to 0.45 ms (max 0.7 ms).

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/3809#issuecomment-7273581780) > **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. Cross-validation data on **RTX 5070 Ti + Ryzen 7 9800X3D** (Series X 1440p, DLSS Quality + 3x MFG), testing the 4 switches enabled by this PR (`VICTORY_SUBMIT_SPLIT=1`, `VICTORY_LAZY_COMPARE_MB=64`, `VICTORY_LAZY_NARROW=1`, `VICTORY_TABLE_SAME=1`) via same-binary toggle A/B: | Variant (same binary, ~10k draws) | Avg Native FPS | Avg / Med ms | P90 / Max ms | Frame-Time SD | CPU Prep | Submitting Thread | Present Call | Errors | |---|---:|---:|---:|---:|---:|---:|---:|---:| | Baseline (4 switches OFF) | 24.95 | 40.1 / 39.8 ms | 41.3 / 41.8 ms | 0.94 ms | 27.7 ms | 29.5 ms | 1.41 ms (max 3.9) | 0 | | **+ #3809 (4 switches ON)** | **27.80 (+2.85)** | **36.0 / 35.8 ms** | **36.6 / 36.9 ms** | **0.54 ms** | **22.7 ms** | **20.6 ms** | 3.99 ms (max 14.4) | 0 | | + #3809 + #3411 (`VICTORY_REFLEX_ASIDE=1`) | **28.34 (+3.39)** | **35.3 / 35.6 ms** | **37.1 / 38.1 ms** | 1.35 ms | 24.3 ms | 26.9 ms | **0.45 ms (max 0.7)** | 0 | ### Key Telemetry Observations - **Huge CPU submitting-thread drop:** `29.5 ms -> 20.6 ms` (`planning steps done on the card` dropped `2.3 -> 1.0 ms`; `VICTORY_SUBMIT_SPLIT` sending thread absorbed `2.4 + 0.1 + 1.0 = 3.5 ms`/frame in parallel; GPU `compare lists` dropped to `0.2 ms`). - **Tighter frame pacing:** Standing SD tightened from `0.94 ms -> 0.54 ms` (`Max 41.8 -> 36.9 ms`). - **4-minute open-world walking tour (with #3809 switches + #3411):** `N=48` 5-second windows (~240s, avg `8,701` draws), **Avg `30.1 FPS` (`33.9 ms`)**, **Med `34.0 ms` (`29.4 FPS`)**, **P90 `38.1 ms`**, **Max `43.0 ms`**, **`0/48` windows over 50 ms**, `0` errors. - **Note for MFG/Reflex users:** Because the submitting thread became faster than the GPU, driver Reflex sleep moved into `Present` (`1.41 -> 3.99 ms`, max `14.4 ms`) until paired with `VICTORY_REFLEX_ASIDE=1` (#3411), which brought `Present` down to `0.45 ms` (max `0.7 ms`). ### 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

@⁠akimfomin on GitHub · 2026-11-30 09:01 UTC · original

@⁠ColorC Thanks for the same-binary comparison. The drop in submission time gives us a second adapter to compare with. Our 4070 Ti SUPER run with internal 2560×1440, original RT on, DLSS and FG off also moved in the same direction, with long-frame spikes still present.

Which RT builder mode was active in your walk? If you have an existing short window with these four switches alone and the original RT pass enabled, the frame-time distribution and median draws would help us identify which part carries over to full RT. A per-switch submission-time breakdown is equally useful. No screenshots or game data needed.

**@⁠akimfomin** on GitHub · 2026-11-30 09:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7273636211) @⁠ColorC Thanks for the same-binary comparison. The drop in submission time gives us a second adapter to compare with. Our 4070 Ti SUPER run with internal 2560×1440, original RT on, DLSS and FG off also moved in the same direction, with long-frame spikes still present. Which RT builder mode was active in your walk? If you have an existing short window with these four switches alone and the original RT pass enabled, the frame-time distribution and median draws would help us identify which part carries over to full RT. A per-switch submission-time breakdown is equally useful. No screenshots or game data needed.
Author
Owner

@⁠JSa25 on GitHub · 2026-11-30 10:12 UTC · original

Another data point for VICTORY_SUBMIT_SPLIT=1: RTX 5090, Ryzen 9 9950X3D, Series X profile, 2560x1440 with DLSS Quality, frame generation off, ray tracing off.

Method. The opening cell route, with the switch flipped every 4 s inside one run, so both sides see the same scenes and caches. There were 16 phases in the world at about 5,000 draws a frame.

phases fps median frame p90 frame
split off 8 33.6 24.9 ms 41.9 ms
split on 8 41.9 22.6 ms 30.7 ms

Across the 14 pairs of neighbouring phases, split on was faster in 13: +7.6 fps on average, with the p90 frame 12.3 ms shorter. No device loss.

That was main of Nov 29 (7995b81b) plus mimalloc and COPY_BESIDE, STORE_BESIDE, SEND_FREE_FIRST and THIN_COALESCE. The lazy-compare and table-same switches of this PR were not part of it. Since then, on 41adb551 with the split on, the same cell runs at 39-42 fps.

One thing to know before it goes on by default: with the split, the preparing thread's card_take can make a copy's "before" hash buffer while the sending thread's card_record records the sync list. card_record read that buffer more than once, so a hash pass could be recorded over a copy still in COPY_DEST/UNORDERED_ACCESS. Biskwit/VIctory-reloaded fixed it in 4d3eae2, and #3881 ports that fix to main.

**@⁠JSa25** on GitHub · 2026-11-30 10:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7275273596) Another data point for `VICTORY_SUBMIT_SPLIT=1`: RTX 5090, Ryzen 9 9950X3D, Series X profile, 2560x1440 with DLSS Quality, frame generation off, ray tracing off. **Method.** The opening cell route, with the switch flipped every 4 s inside one run, so both sides see the same scenes and caches. There were 16 phases in the world at about 5,000 draws a frame. | | phases | fps | median frame | p90 frame | |---|---|---|---|---| | split off | 8 | 33.6 | 24.9 ms | 41.9 ms | | split on | 8 | 41.9 | 22.6 ms | 30.7 ms | Across the 14 pairs of neighbouring phases, split on was faster in 13: +7.6 fps on average, with the p90 frame 12.3 ms shorter. No device loss. That was main of Nov 29 (7995b81b) plus mimalloc and `COPY_BESIDE`, `STORE_BESIDE`, `SEND_FREE_FIRST` and `THIN_COALESCE`. The lazy-compare and table-same switches of this PR were not part of it. Since then, on 41adb551 with the split on, the same cell runs at 39-42 fps. One thing to know before it goes on by default: with the split, the preparing thread's `card_take` can make a copy's "before" hash buffer while the sending thread's `card_record` records the sync list. `card_record` read that buffer more than once, so a hash pass could be recorded over a copy still in `COPY_DEST`/`UNORDERED_ACCESS`. Biskwit/VIctory-reloaded fixed it in 4d3eae2, and #3881 ports that fix to main.
Author
Owner

@⁠KruIN689 on GitHub · 2026-11-30 10:14 UTC · original

@⁠akimfomin Thanks for the datapoint. A first gain under full RT on a 4070 Ti SUPER is useful to see.

There is no per-switch breakdown on a moving scene yet. What we have:

  • The four were measured together, standing still, with RT off. They mostly shorten the submitting thread (about 27.6–32.6 → 26 ms a frame). They do nothing for the card's ray work, so with original RT on, a smaller gain than ours is what we'd expect.
  • For a cross-check, each one switches off on its own with -Set NAME=0: VICTORY_TABLE_SAME, VICTORY_LAZY_COMPARE_MB (with VICTORY_LAZY_NARROW), VICTORY_SUBMIT_SPLIT. The frame-rate log's "preparing per frame, the submitting thread" line shows where the time went.
  • Your rare worst frames are likely not from these switches. On our side, long sessions grow a once-a-second sweep stall: on an RTX 5080 with ray tracing, frames over 100 ms reached about one a second by minute 15. We are fixing that separately.

If we get the per-switch moving numbers, we'll post them here.

(Written with Claude Code, for KruIN689.)

**@⁠KruIN689** on GitHub · 2026-11-30 10:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7275314482) @⁠akimfomin Thanks for the datapoint. A first gain under full RT on a 4070 Ti SUPER is useful to see. There is no per-switch breakdown on a moving scene yet. What we have: - The four were measured together, standing still, with RT off. They mostly shorten the submitting thread (about 27.6–32.6 → 26 ms a frame). They do nothing for the card's ray work, so with original RT on, a smaller gain than ours is what we'd expect. - For a cross-check, each one switches off on its own with `-Set NAME=0`: `VICTORY_TABLE_SAME`, `VICTORY_LAZY_COMPARE_MB` (with `VICTORY_LAZY_NARROW`), `VICTORY_SUBMIT_SPLIT`. The frame-rate log's "preparing per frame, the submitting thread" line shows where the time went. - Your rare worst frames are likely not from these switches. On our side, long sessions grow a once-a-second sweep stall: on an RTX 5080 with ray tracing, frames over 100 ms reached about one a second by minute 15. We are fixing that separately. If we get the per-switch moving numbers, we'll post them here. (Written with Claude Code, for KruIN689.)
Author
Owner

@⁠akimfomin on GitHub · 2026-11-30 10:25 UTC · original

@⁠KruIN689 Thanks for clarifying the per-switch evidence. In the tuned Lab baseline the >100 ms frames already show up in the first 15 seconds of the reproducible house walk, so the minute-15 sweep sounds like a second thing to measure. If the sweep work adds a timing marker, could you link it here? We can see whether that same marker aligns with our early stalls. @⁠JSa25 I ported the #3881 single snapshot to our older Lab branch while preserving its flattened copy runs; it is queued for a full-RT check before we make split a default.

**@⁠akimfomin** on GitHub · 2026-11-30 10:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7275571919) @⁠KruIN689 Thanks for clarifying the per-switch evidence. In the tuned Lab baseline the >100 ms frames already show up in the first 15 seconds of the reproducible house walk, so the minute-15 sweep sounds like a second thing to measure. If the sweep work adds a timing marker, could you link it here? We can see whether that same marker aligns with our early stalls. @⁠JSa25 I ported the #3881 single snapshot to our older Lab branch while preserving its flattened copy runs; it is queued for a full-RT check before we make split a default.
Author
Owner

@⁠tillo88 on GitHub · 2026-11-30 12:44 UTC · original

Measured this PR as it is (the four switches on through play-foxhound.ps1; the log confirms VICTORY_SUBMIT_SPLIT was active) on top of v2026.11.29.05, 2 runs, against 18 runs of the release as it is.

fps ms/frame submitting thread ms refresh ms p95 ms p99 ms
v2026.11.29.05, 18 runs (mean) 29.40 37.4 31.4 8.21 57.3 138.7
with #3809, run 1 30.44 35.9 27.5 7.61 57.8 151.3
with #3809, run 2 30.65 36.5 30.5 8.61 72.5 156.5

Mean +3.9% fps (30.55 vs 29.40), both runs above the baseline mean. It's a modest gain on this bench: single baseline runs range from 27.8 to 30.6 fps (sd 0.7), and the submitting thread came down clearly in only one of the two runs. p99 frame times were somewhat higher in both runs (151 and 156 ms vs 139 ms mean, highest baseline run 149 ms). No crash in either run.

Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up run not counted.

Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.

**@⁠tillo88** on GitHub · 2026-11-30 12:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7278866487) Measured this PR as it is (the four switches on through `play-foxhound.ps1`; the log confirms `VICTORY_SUBMIT_SPLIT` was active) on top of **v2026.11.29.05**, 2 runs, against 18 runs of the release as it is. | | fps | ms/frame | submitting thread ms | refresh ms | p95 ms | p99 ms | |---|---|---|---|---|---|---| | v2026.11.29.05, 18 runs (mean) | 29.40 | 37.4 | 31.4 | 8.21 | 57.3 | 138.7 | | with #3809, run 1 | 30.44 | 35.9 | 27.5 | 7.61 | 57.8 | 151.3 | | with #3809, run 2 | 30.65 | 36.5 | 30.5 | 8.61 | 72.5 | 156.5 | Mean **+3.9% fps** (30.55 vs 29.40), both runs above the baseline mean. It's a modest gain on this bench: single baseline runs range from 27.8 to 30.6 fps (sd 0.7), and the submitting thread came down clearly in only one of the two runs. p99 frame times were somewhat higher in both runs (151 and 156 ms vs 139 ms mean, highest baseline run 149 ms). No crash in either run. Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up run not counted. Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.
Author
Owner

@⁠akimfomin on GitHub · 2026-11-30 12:59 UTC · original

@⁠tillo88 Thanks for including the spread and the p99. Our 4070 Ti SUPER check used a different scene and native 1440p with stock RT on. The four switches were bundled with separate descriptor and ordering changes, so we cannot attribute that result to #3809 alone. On the same walking tape that bundle went from 11.57 to 9.27 average FPS, with p99 rising from 202.6 to 555.4 ms, so we kept it out of the stable build. Your two RT-off runs show a modest average gain alongside higher p99. If you repeat the comparison, a single-switch check of split submission with the #3881 ordering fixes and the same replay would help explain the two workloads.

**@⁠akimfomin** on GitHub · 2026-11-30 12:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7279205571) @⁠tillo88 Thanks for including the spread and the p99. Our 4070 Ti SUPER check used a different scene and native 1440p with stock RT on. The four switches were bundled with separate descriptor and ordering changes, so we cannot attribute that result to #3809 alone. On the same walking tape that bundle went from 11.57 to 9.27 average FPS, with p99 rising from 202.6 to 555.4 ms, so we kept it out of the stable build. Your two RT-off runs show a modest average gain alongside higher p99. If you repeat the comparison, a single-switch check of split submission with the #3881 ordering fixes and the same replay would help explain the two workloads.
Author
Owner

@⁠tikD1337 on GitHub · 2026-11-30 14:02 UTC · original

Sharing an outdoor VICTORY_TABLE_SAME=1 A/B measurement on 41adb551 (diag build, RTX 4070 Ti SUPER 16 GB, Ryzen 5 7600, 32 GB RAM, Windows 11) in case it helps support enabling VICTORY_TABLE_SAME=1 by default:

  • Unattended 4-way in-run A/B (f-41-ts2, 566 s, 24 world phases across 5.6k–11.5k draws, frame time fitted vs draws):
    • VICTORY_TABLE_SAME=1: -3.1 ms median frame (-4.6 ms mean, ~6%, ~2 SE); tables.direct dropped 3.2 -> 1.0 us per bind (57.5 -> 11.3 ms/frame); visuals clean (no stale textures).
    • By contrast, VICTORY_SHARED_TABLES + PARK + SAME in the same A/B regressed +0.8 ms median (+2.8 ms mean) and raised tables.key 6 -> 16 ms.

AI-assisted (Claude Code / Gemini); measurements are from this PC, no game data.

**@⁠tikD1337** on GitHub · 2026-11-30 14:02 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7280731243) Sharing an outdoor `VICTORY_TABLE_SAME=1` A/B measurement on `41adb551` (`diag` build, RTX 4070 Ti SUPER 16 GB, Ryzen 5 7600, 32 GB RAM, Windows 11) in case it helps support enabling `VICTORY_TABLE_SAME=1` by default: - Unattended 4-way in-run A/B (`f-41-ts2`, 566 s, 24 world phases across 5.6k–11.5k draws, frame time fitted vs draws): - **`VICTORY_TABLE_SAME=1`:** **`-3.1 ms` median frame** (`-4.6 ms` mean, ~6%, ~2 SE); `tables.direct` dropped **`3.2 -> 1.0 us`** per bind (**`57.5 -> 11.3 ms/frame`**); visuals clean (no stale textures). - By contrast, `VICTORY_SHARED_TABLES + PARK + SAME` in the same A/B regressed `+0.8 ms` median (`+2.8 ms` mean) and raised `tables.key` `6 -> 16 ms`. AI-assisted (Claude Code / Gemini); measurements are from this PC, no game data.
Author
Owner

@⁠akimfomin on GitHub · 2026-11-30 14:07 UTC · original

@⁠tikD1337 Thanks for testing TABLE_SAME on its own and reporting the opposite result with SHARED_TABLES and PARK. We use the same GPU with native 2560×1440 Series X, full stock RT, DLSS/FG off. What RT mode, internal resolution and submit flags did f-41-ts2 use? If your existing aggregate includes p99 or frames over 100 ms for the isolated switch, that would help us choose a clean comparison without asking for another run.

**@⁠akimfomin** on GitHub · 2026-11-30 14:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7280869221) @⁠tikD1337 Thanks for testing `TABLE_SAME` on its own and reporting the opposite result with `SHARED_TABLES` and `PARK`. We use the same GPU with native 2560×1440 Series X, full stock RT, DLSS/FG off. What RT mode, internal resolution and submit flags did `f-41-ts2` use? If your existing aggregate includes p99 or frames over 100 ms for the isolated switch, that would help us choose a clean comparison without asking for another run.
Author
Owner

@⁠tikD1337 on GitHub · 2026-11-30 14:22 UTC · original

@⁠akimfomin Here are the exact settings and tail numbers from f-41-ts2 (run.bat + victory.log):

Setup in f-41-ts2

  • Profile / resolution: --console series-s with VICTORY_DLSS=1 (VICTORY_NATIVE_1440P unset, FG off).
  • RT mode: VICTORY_BVH_BUILDER unset (Ray Tracing OFF), using ambient replacement (VICTORY_AMBIENT=0.8, VICTORY_AMBIENT_AIR=1.5, VICTORY_AMBIENT_SPECULAR=1).
  • Submit / compare flags: VICTORY_SUBMIT_SPLIT unset (off), VICTORY_LAZY_COMPARE_MB unset (off), VICTORY_THIN=1, VICTORY_JOIN_PARTS=8, VICTORY_RELAY=2, VICTORY_PORT_CONSTANTS=1, VICTORY_DSTORAGE_PRIORITY=0.

Tail / >100 ms across the 23 world phases (phases 4–26, 5.6k–11.5k draws)

Raw per-mode aggregates (note draw count drifted across phases):

  • baseline (6 phases, med 8,126 draws): phase p90 mean 93.9 ms, 1s p99 median 111.9 ms, >100 ms 144 / 1,985 (7.3%)
  • VICTORY_TABLE_SAME (6 phases, med 6,899 draws): phase p90 mean 84.5 ms, 1s p99 median 103.4 ms, >100 ms 105 / 2,138 (4.9%)
  • VICTORY_SHARED_TABLES (6 phases, med 9,276 draws): phase p90 mean 95.0 ms, 1s p99 median 112.8 ms, >100 ms 148 / 1,895 (7.8%)
  • both (5 phases, med 9,824 draws): phase p90 mean 93.8 ms, 1s p99 median 112.8 ms, >100 ms 132 / 1,646 (8.0%)

Draw-adjusted OLS across all 23 world phases (y ~ draws + TABLE_SAME + SHARED_TABLES):

  • VICTORY_TABLE_SAME: median -2.08 ms (SE 0.81), mean -2.44 ms (SE 0.92), p90 -4.56 ms (SE 1.63), 1s p99 median -3.43 ms (SE 2.13), >100 ms share -0.91 pp (SE 0.44).
  • (VICTORY_SHARED_TABLES in the same fit was -0.26 ms median / +0.61 ms mean / -1.49 ms p90, all within 1 SE.)

AI-assisted (Claude Code / Gemini); extracted directly from the existing f-41-ts2 log, no extra run.

**@⁠tikD1337** on GitHub · 2026-11-30 14:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7281270565) @⁠akimfomin Here are the exact settings and tail numbers from `f-41-ts2` (`run.bat` + `victory.log`): ### Setup in `f-41-ts2` - **Profile / resolution:** `--console series-s` with `VICTORY_DLSS=1` (`VICTORY_NATIVE_1440P` unset, FG off). - **RT mode:** **`VICTORY_BVH_BUILDER` unset (Ray Tracing OFF)**, using ambient replacement (`VICTORY_AMBIENT=0.8`, `VICTORY_AMBIENT_AIR=1.5`, `VICTORY_AMBIENT_SPECULAR=1`). - **Submit / compare flags:** **`VICTORY_SUBMIT_SPLIT` unset (off)**, **`VICTORY_LAZY_COMPARE_MB` unset (off)**, `VICTORY_THIN=1`, `VICTORY_JOIN_PARTS=8`, `VICTORY_RELAY=2`, `VICTORY_PORT_CONSTANTS=1`, `VICTORY_DSTORAGE_PRIORITY=0`. ### Tail / `>100 ms` across the 23 world phases (phases 4–26, 5.6k–11.5k draws) Raw per-mode aggregates (note draw count drifted across phases): - `baseline` (6 phases, med `8,126` draws): phase `p90` mean **`93.9 ms`**, 1s `p99` median **`111.9 ms`**, `>100 ms` **`144 / 1,985` (`7.3%`)** - `VICTORY_TABLE_SAME` (6 phases, med `6,899` draws): phase `p90` mean **`84.5 ms`**, 1s `p99` median **`103.4 ms`**, `>100 ms` **`105 / 2,138` (`4.9%`)** - `VICTORY_SHARED_TABLES` (6 phases, med `9,276` draws): phase `p90` mean **`95.0 ms`**, 1s `p99` median **`112.8 ms`**, `>100 ms` **`148 / 1,895` (`7.8%`)** - `both` (5 phases, med `9,824` draws): phase `p90` mean **`93.8 ms`**, 1s `p99` median **`112.8 ms`**, `>100 ms` **`132 / 1,646` (`8.0%`)** Draw-adjusted OLS across all 23 world phases (`y ~ draws + TABLE_SAME + SHARED_TABLES`): - `VICTORY_TABLE_SAME`: `median` **`-2.08 ms`** (SE `0.81`), `mean` **`-2.44 ms`** (SE `0.92`), `p90` **`-4.56 ms`** (SE `1.63`), 1s `p99` median **`-3.43 ms`** (SE `2.13`), `>100 ms` share **`-0.91 pp`** (SE `0.44`). - (`VICTORY_SHARED_TABLES` in the same fit was `-0.26 ms` median / `+0.61 ms` mean / `-1.49 ms` p90, all within 1 SE.) AI-assisted (Claude Code / Gemini); extracted directly from the existing `f-41-ts2` log, no extra run.
Author
Owner

@⁠DoubleD17 on GitHub · 2026-11-30 16:47 UTC · original

Data on the first switch, VICTORY_SUBMIT_SPLIT=1, from a CPU-bound 8-core machine. We ran a test on main c71899d9, which already has the lazy compare on by default, so this isolates the split. Same build in both arms, with and without the switch, in ABBA order: four 150 s runs each plus a warm-up. The log confirmed it in every run with the switch: "submissions are sent by a thread of their own, the next one prepared meanwhile".

CPU preparation was lower in all four runs. Light-view seconds only (the idle camera's lighter views, about 7,500 draws a frame), each run against the runs without the switch interpolated in time:

CPU prep (ms/frame) without, at that point fps without, at that point
run 1 46.5 51.5 14.9 14.1
run 2 45.9 49.2 16.1 15.4
run 3 42.8 52.2 16.4 15.1
run 4 42.9 51.2 17.2 15.4
mean difference −6.5 ms +7.5 %

The submitting thread worked 48.0 to 54.1 ms a frame with the switch, against 52.6 to 68.9 without. On the heavier view (about 15,000 draws a frame) fps was 13.1 to 13.8 with it, against 10.3 to 13.4.

A caveat on the size: the PC was in light use (a browser) during five of the eight runs. Taking only the three runs with nobody at the PC, it is −4.0 ms of CPU preparation (42.8 and 42.9 against 46.8). The direction holds either way.

Picture: 1 frame in 400 with the switch had the vegetation gap of #1165 (palms and potted plants missing for one frame), and so did 1 frame in 320 without it. Nothing else.

Memory: no change. In the last 100 s of each run, shared memory was 6.4 to 7.1 GB in both arms and dedicated 10.4 to 10.6 GB.

Setup:

  • Ryzen 7 5800X (8 cores, 16 threads), RTX 5070 12 GB (driver 621.40), 64 GB RAM, Windows 11;
  • Series X, 1440p with DLAA (DLSS at native resolution), frame generation and ray tracing off;
  • victory play defaults of c71899d9, every run from the same save, restored before each run;
  • medians of the 5 s lines after the first 20 s, split by draws a frame (light under 11,000, heavy over 12,000).

AI Assisted

**@⁠DoubleD17** on GitHub · 2026-11-30 16:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7285244539) Data on the first switch, `VICTORY_SUBMIT_SPLIT=1`, from a CPU-bound 8-core machine. We ran a test on main c71899d9, which already has the lazy compare on by default, so this isolates the split. Same build in both arms, with and without the switch, in ABBA order: four 150 s runs each plus a warm-up. The log confirmed it in every run with the switch: "submissions are sent by a thread of their own, the next one prepared meanwhile". **CPU preparation was lower in all four runs.** Light-view seconds only (the idle camera's lighter views, about 7,500 draws a frame), each run against the runs without the switch interpolated in time: | | CPU prep (ms/frame) | without, at that point | fps | without, at that point | |---|---|---|---|---| | run 1 | 46.5 | 51.5 | 14.9 | 14.1 | | run 2 | 45.9 | 49.2 | 16.1 | 15.4 | | run 3 | 42.8 | 52.2 | 16.4 | 15.1 | | run 4 | 42.9 | 51.2 | 17.2 | 15.4 | | **mean difference** | **−6.5 ms** | | **+7.5 %** | | The submitting thread worked 48.0 to 54.1 ms a frame with the switch, against 52.6 to 68.9 without. On the heavier view (about 15,000 draws a frame) fps was 13.1 to 13.8 with it, against 10.3 to 13.4. A caveat on the size: the PC was in light use (a browser) during five of the eight runs. Taking only the three runs with nobody at the PC, it is −4.0 ms of CPU preparation (42.8 and 42.9 against 46.8). The direction holds either way. **Picture:** 1 frame in 400 with the switch had the vegetation gap of #1165 (palms and potted plants missing for one frame), and so did 1 frame in 320 without it. Nothing else. **Memory:** no change. In the last 100 s of each run, shared memory was 6.4 to 7.1 GB in both arms and dedicated 10.4 to 10.6 GB. **Setup:** - Ryzen 7 5800X (8 cores, 16 threads), RTX 5070 12 GB (driver 621.40), 64 GB RAM, Windows 11; - Series X, 1440p with DLAA (DLSS at native resolution), frame generation and ray tracing off; - `victory play` defaults of c71899d9, every run from the same save, restored before each run; - medians of the 5 s lines after the first 20 s, split by draws a frame (light under 11,000, heavy over 12,000). AI Assisted
Author
Owner

@⁠mstrmoos on GitHub · 2026-11-30 19:22 UTC · original

Measured on top of a branch of main plus other open PRs. The machine was the RTX 5080 16 GB, Ryzen 7 9800X3D, Windows 11, Series X profile, same save and 90 s bench route each run.

  • Before: 39.1 ms median frame.
  • With this PR's switches (VICTORY_SUBMIT_SPLIT, VICTORY_LAZY_COMPARE_MB=64, VICTORY_LAZY_NARROW, VICTORY_TABLE_SAME): 37.9 ms median.
  • Screenshots every 5 s showed nothing wrong.

Both runs had a remote-desktop session attached, which costs about 5 ms a frame on this PC; without it, the same build ran 32.8 ms.

One snag when merging: the launcher got a duplicate VICTORY_SUBMIT_SPLIT key where our branch already set it. It came from our side, not this PR, but anyone who already sets that switch should look out for it.

**@⁠mstrmoos** on GitHub · 2026-11-30 19:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7289287112) Measured on top of a branch of main plus other open PRs. The machine was the RTX 5080 16 GB, Ryzen 7 9800X3D, Windows 11, Series X profile, same save and 90 s bench route each run. - Before: 39.1 ms median frame. - With this PR's switches (`VICTORY_SUBMIT_SPLIT`, `VICTORY_LAZY_COMPARE_MB=64`, `VICTORY_LAZY_NARROW`, `VICTORY_TABLE_SAME`): **37.9 ms median**. - Screenshots every 5 s showed nothing wrong. Both runs had a remote-desktop session attached, which costs about 5 ms a frame on this PC; without it, the same build ran 32.8 ms. One snag when merging: the launcher got a duplicate `VICTORY_SUBMIT_SPLIT` key where our branch already set it. It came from our side, not this PR, but anyone who already sets that switch should look out for it.
Author
Owner

@⁠DoubleD17 on GitHub · 2026-11-30 20:16 UTC · original

The four switches together on main 84bd61e2: RTX 5070 12 GB / Ryzen 7 5800X, a CPU-bound PC

Setup (from the runs' logs):

  • 2560×1440 DLAA (DLSS at native resolution), frame generation off, ray tracing off, 30 fps cap.
  • Idle camera from the same starting point, 150 s measured per run.
  • 4 + 4 runs in ABBA order, plus a warm-up run that isn't counted.
  • The four switches were passed with --set on main 84bd61e2 (VICTORY_SUBMIT_SPLIT=1 VICTORY_LAZY_COMPARE_MB=64 VICTORY_LAZY_NARROW=1 VICTORY_TABLE_SAME=1), which is what this PR makes the default.
  • The PC was in light use during the runs, the same for both arms.
main 84bd61e2 + the four switches
submitting thread, light views (under 11k draws) 53.7–55.0 ms 47.7–52.8 ms (−4.7 ms on average, lower in 4 of 4)
submitting thread, heavy views (over 12k draws) 55.7–72.1 ms 45.4–51.6 ms
fps, light views 15.7–16.4 16.1–17.9 (+4.4 %)
fps, heavy views 10.8–13.2 13.1–13.9
mean fps, whole run 14.8–15.9 (avg 15.4) 15.6–16.9 (avg 16.1, +4.9 %)
frame time p95 / p99 83–93 / 98–108 ms 83–90 / 91–104 ms
stalls over 250 ms (4 runs) 23 25
shared memory, steady 5.7–6.6 GB 5.8–6.3 GB
  • The gain is clearest in heavy views, where the submitting thread drops 10–20 ms and stays under 52 ms in every run.
  • At ~15 fps every frame is over 50 ms, so the PR's "frames over 50 ms" measure doesn't apply here. The p95/p99 frame times barely move.
  • On our earlier c71899d9 test, SUBMIT_SPLIT alone gave −6.5 ms in light views. With all four on 84bd61e2 it is −4.7 ms, but more in heavy views.
  • Picture: 80-frame bursts were checked by eye.
    • With the switches: two one-frame defects in 5 runs. In the warm-up run, several textures were swapped for one frame. In another run, the palms near the camera were missing for one frame. These are the same two kinds of one-frame defect we saw on c71899d9 without these switches.
    • Controls: none in 4 runs.
    • That is too few runs to say whether the switches are related.

AI Assisted

**@⁠DoubleD17** on GitHub · 2026-11-30 20:16 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7290663376) **The four switches together on main 84bd61e2: RTX 5070 12 GB / Ryzen 7 5800X, a CPU-bound PC** Setup (from the runs' logs): - 2560×1440 DLAA (DLSS at native resolution), frame generation off, ray tracing off, 30 fps cap. - Idle camera from the same starting point, 150 s measured per run. - 4 + 4 runs in ABBA order, plus a warm-up run that isn't counted. - The four switches were passed with `--set` on main 84bd61e2 (`VICTORY_SUBMIT_SPLIT=1 VICTORY_LAZY_COMPARE_MB=64 VICTORY_LAZY_NARROW=1 VICTORY_TABLE_SAME=1`), which is what this PR makes the default. - The PC was in light use during the runs, the same for both arms. | | main 84bd61e2 | + the four switches | |---|---|---| | submitting thread, light views (under 11k draws) | 53.7–55.0 ms | 47.7–52.8 ms (−4.7 ms on average, lower in 4 of 4) | | submitting thread, heavy views (over 12k draws) | 55.7–72.1 ms | 45.4–51.6 ms | | fps, light views | 15.7–16.4 | 16.1–17.9 (+4.4 %) | | fps, heavy views | 10.8–13.2 | 13.1–13.9 | | mean fps, whole run | 14.8–15.9 (avg 15.4) | 15.6–16.9 (avg 16.1, +4.9 %) | | frame time p95 / p99 | 83–93 / 98–108 ms | 83–90 / 91–104 ms | | stalls over 250 ms (4 runs) | 23 | 25 | | shared memory, steady | 5.7–6.6 GB | 5.8–6.3 GB | - The gain is clearest in heavy views, where the submitting thread drops 10–20 ms and stays under 52 ms in every run. - At ~15 fps every frame is over 50 ms, so the PR's "frames over 50 ms" measure doesn't apply here. The p95/p99 frame times barely move. - On our earlier c71899d9 test, `SUBMIT_SPLIT` alone gave −6.5 ms in light views. With all four on 84bd61e2 it is −4.7 ms, but more in heavy views. - Picture: 80-frame bursts were checked by eye. - With the switches: two one-frame defects in 5 runs. In the warm-up run, several textures were swapped for one frame. In another run, the palms near the camera were missing for one frame. These are the same two kinds of one-frame defect we saw on c71899d9 without these switches. - Controls: none in 4 runs. - That is too few runs to say whether the switches are related. AI Assisted
Author
Owner

@⁠erLCoder on GitHub · 2026-11-30 20:47 UTC · original

<html>

Hardware A/B testing — Ryzen 5 3600 / RTX 5060 Ti 16 GB

Tested the submission split setting proposed in #3809 on a CPU-bound Zen 2 system.

Hardware and configuration:

  • CPU: AMD Ryzen 5 3600 (6C/12T)

  • GPU: NVIDIA RTX 5060 Ti 16 GB

  • RAM: 32 GB DDR4-3200

  • OS: Windows 10 Enterprise 22H2

  • NVIDIA driver: 621.40

  • Series S profile, DLSS Quality, Frame Generation off

  • Pipeline workers: 3

  • DirectStorage workers: 4

  • Normal process priority

  • Warm pipeline cache

Both runs explicitly used VICTORY_LAZY_COMPARE_MB=64, VICTORY_LAZY_NARROW=1 and VICTORY_TABLE_SAME=1. The only difference in the logged launch switches was VICTORY_SUBMIT_SPLIT=0/1.

Results — boat sequence:

### Results — boat sequence
Metric Split OFF Split ON
Median FPS, penultimate 60s 18.9 19.9
Submission preparation 49.4 ms 45.5 ms
Submitting thread wall time 52.35 ms 47.7 ms
GPU idle time 18.95 ms 16.1 ms
Draws per frame 3522 3680
Median FPS, final 60s 11.45 10.7
Median FPS, final 120s 15.8 12.7
Host pipeline failures 0 0

The submission split thread was confirmed active in the enabled run.

During the earlier gameplay window, enabling split reduced median submission preparation time by approximately 7.9%, despite a slightly higher draw count.

However, both runs experienced substantial performance degradation later in the boat sequence, with available physical RAM falling to approximately 1 GB. Split did not demonstrate a consistent FPS improvement across the entire measured window.

Limitations: One run per configuration, manual gameplay input, different run lengths and non-identical camera positions. The FPS figures are medians of periodic log samples, not individual-frame measurements. This is a preliminary runtime-switch comparison, not a fully controlled benchmark or a direct build of the PR branch.

The results suggest that submission splitting can reduce preparation overhead on older six-core CPUs, but additional controlled testing under host memory pressure would be valuable before enabling it by default.

Thanks for the optimization work!

</html>
**@⁠erLCoder** on GitHub · 2026-11-30 20:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7291485381) <html> <body> <!--StartFragment--><h3><span>Hardware A/B testing — Ryzen 5 3600 / RTX 5060 Ti 16 GB</span></h3><p><span>Tested the submission split setting proposed in #3809 on a CPU-bound Zen 2 system.</span></p><p><strong><span>Hardware and configuration:</span></strong></p><ul><li><p><span>CPU: AMD Ryzen 5 3600 (6C/12T)</span></p></li><li><p><span>GPU: NVIDIA RTX 5060 Ti 16 GB</span></p></li><li><p><span>RAM: 32 GB DDR4-3200</span></p></li><li><p><span>OS: Windows 10 Enterprise 22H2</span></p></li><li><p><span>NVIDIA driver: 621.40</span></p></li><li><p><span>Series S profile, DLSS Quality, Frame Generation off</span></p></li><li><p><span>Pipeline workers: 3</span></p></li><li><p><span>DirectStorage workers: 4</span></p></li><li><p><span>Normal process priority</span></p></li><li><p><span>Warm pipeline cache</span></p></li></ul><p><span>Both runs explicitly used </span><code><span>VICTORY_LAZY_COMPARE_MB=64</span></code><span>, </span><code><span>VICTORY_LAZY_NARROW=1</span></code><span> and </span><code><span>VICTORY_TABLE_SAME=1</span></code><span>. The only difference in the logged launch switches was </span><code><span>VICTORY_SUBMIT_SPLIT=0/1</span></code><span>.</span></p><p><strong><span>Results — boat sequence:</span></strong></p> ### Results — boat sequence | Metric | Split OFF | Split ON | |---|---:|---:| | Median FPS, penultimate 60s | 18.9 | 19.9 | | Submission preparation | 49.4 ms | 45.5 ms | | Submitting thread wall time | 52.35 ms | 47.7 ms | | GPU idle time | 18.95 ms | 16.1 ms | | Draws per frame | 3522 | 3680 | | Median FPS, final 60s | 11.45 | 10.7 | | Median FPS, final 120s | 15.8 | 12.7 | | Host pipeline failures | 0 | 0 | <p><span>The submission split thread was confirmed active in the enabled run.</span></p><p><span>During the earlier gameplay window, enabling split reduced median submission preparation time by approximately 7.9%, despite a slightly higher draw count.</span></p><p><span>However, both runs experienced substantial performance degradation later in the boat sequence, with available physical RAM falling to approximately 1 GB. Split did not demonstrate a consistent FPS improvement across the entire measured window.</span></p><p><strong><span>Limitations:</span></strong><span> One run per configuration, manual gameplay input, different run lengths and non-identical camera positions. The FPS figures are medians of periodic log samples, not individual-frame measurements. This is a preliminary runtime-switch comparison, not a fully controlled benchmark or a direct build of the PR branch.</span></p><p><span>The results suggest that submission splitting can reduce preparation overhead on older six-core CPUs, but additional controlled testing under host memory pressure would be valuable before enabling it by default.</span></p><p><span>Thanks for the optimization work!</span></p><!--EndFragment--> </body> </html>
Author
Owner

@⁠tillo88 on GitHub · 2026-11-30 21:15 UTC · original

@⁠akimfomin Here is the single-switch check you asked for: VICTORY_SUBMIT_SPLIT=1 alone, and VICTORY_SUBMIT_SPLIT=1 with #3881 merged on top, same replay, on v2026.11.30.03, against the release as it is (no other switch changed).

fps submitting thread ms refresh ms p95 ms p99 ms
v2026.11.30.03, 6 runs (mean, range) 31.92 (31.72–32.11) 20.47 (20.25–20.62) 6.42 47.4 (47.0–47.7) 63.5 (61.2–68.0)
SUBMIT_SPLIT=1 only, 3 runs (mean, range) 32.09 (31.98–32.18) 16.80 (16.58–17.04) 5.84 45.7 (45.2–46.5) 59.6 (59.2–60.1)
SUBMIT_SPLIT=1 + #3881, run 1 (the only complete run) 32.15 16.52 5.70 45.7 60.6
  • Split alone: no measurable fps difference (+0.5%; run-to-run noise on this route is about 1-2%). The submitting thread is clearly shorter, 20.5 → 16.8 ms a frame (−18%, all 3 runs below every baseline run), and p95 was lower in all 3 runs than in any baseline run. On this release the submitting thread is no longer the limit here (about 20 of 32 ms a frame), which fits a shorter thread not turning into fps. No crash in 4 runs with split alone (warm-up included).
  • Split + #3881: the one complete run looks the same as split alone. The other two measured runs crashed with a host command list did not close (0x80070057), one at +2:16 and one at +2:36 after the log starts. That is the known crash of #2237 at the prison → plane cutscene cut, at the same time and with the same error, right after the masked twin is made. The release without #3881 had it in 1 of 10 runs on this bench (v2026.11.30.02: 8 of 20), so 2 of 4 runs is not enough to tie it to #3881. More runs of split + #3881 are queued, and I'll add them here.

Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up run not counted.

Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.

**@⁠tillo88** on GitHub · 2026-11-30 21:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7292152394) @⁠akimfomin Here is the single-switch check you asked for: `VICTORY_SUBMIT_SPLIT=1` alone, and `VICTORY_SUBMIT_SPLIT=1` with #3881 merged on top, same replay, on **v2026.11.30.03**, against the release as it is (no other switch changed). | | fps | submitting thread ms | refresh ms | p95 ms | p99 ms | |---|---|---|---|---|---| | v2026.11.30.03, 6 runs (mean, range) | 31.92 (31.72–32.11) | 20.47 (20.25–20.62) | 6.42 | 47.4 (47.0–47.7) | 63.5 (61.2–68.0) | | `SUBMIT_SPLIT=1` only, 3 runs (mean, range) | 32.09 (31.98–32.18) | 16.80 (16.58–17.04) | 5.84 | 45.7 (45.2–46.5) | 59.6 (59.2–60.1) | | `SUBMIT_SPLIT=1` + #3881, run 1 (the only complete run) | 32.15 | 16.52 | 5.70 | 45.7 | 60.6 | - **Split alone:** no measurable fps difference (+0.5%; run-to-run noise on this route is about 1-2%). The submitting thread is clearly shorter, 20.5 → 16.8 ms a frame (−18%, all 3 runs below every baseline run), and p95 was lower in all 3 runs than in any baseline run. On this release the submitting thread is no longer the limit here (about 20 of 32 ms a frame), which fits a shorter thread not turning into fps. No crash in 4 runs with split alone (warm-up included). - **Split + #3881:** the one complete run looks the same as split alone. The other two measured runs crashed with `a host command list did not close (0x80070057)`, one at +2:16 and one at +2:36 after the log starts. That is the known crash of #2237 at the prison → plane cutscene cut, at the same time and with the same error, right after the masked twin is made. The release without #3881 had it in 1 of 10 runs on this bench (v2026.11.30.02: 8 of 20), so 2 of 4 runs is not enough to tie it to #3881. More runs of split + #3881 are queued, and I'll add them here. Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up run not counted. Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.
Author
Owner

@⁠tillo88 on GitHub · 2026-12-01 12:06 UTC · original

@⁠akimfomin Follow-up on the VICTORY_SUBMIT_SPLIT=1 + #3881 check from my last comment: 4 more runs on v2026.11.30.03, same replay, and more base runs.

runs fps (range) submitting thread ms refresh ms p95 ms p99 ms
v2026.11.30.03 15 32.02 (31.72–32.46) 20.51 6.42 47.7 62.7
SUBMIT_SPLIT=1 + #3881 (all complete runs) 3 32.17 (32.13–32.24) 16.56 5.76 45.1 62.2
  • Speed: +0.5% fps, so still no measurable difference. The submitting thread is about 19% shorter, the same as with the split alone.
  • Crashes: with split + #3881, 3 of 8 runs stopped (warm-ups included): 1 at +2:16 and 2 at +2:36/+2:38. All 3 were a host command list did not close (0x80070057) at the prison → plane cutscene cut or about 20 s after it. The bare release now has 5 of 27 at or near the same points, so 3 of 8 is not clearly higher, and this does not point at #3881. The new run that stopped made the masked twin at +2:14 like every other run. Split alone: 0 of 4.
  • On this bench that crash now looks like the cross-family texture copy of #3901: with #4080, #4522, #3043 or #3979 on the same release, 0 of 30 runs stopped.

Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up runs not counted for speed.

Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.

**@⁠tillo88** on GitHub · 2026-12-01 12:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7310669408) @⁠akimfomin Follow-up on the `VICTORY_SUBMIT_SPLIT=1` + #3881 check from my last comment: 4 more runs on **v2026.11.30.03**, same replay, and more base runs. | | runs | fps (range) | submitting thread ms | refresh ms | p95 ms | p99 ms | |---|---|---|---|---|---|---| | v2026.11.30.03 | 15 | 32.02 (31.72–32.46) | 20.51 | 6.42 | 47.7 | 62.7 | | `SUBMIT_SPLIT=1` + #3881 (all complete runs) | 3 | 32.17 (32.13–32.24) | 16.56 | 5.76 | 45.1 | 62.2 | - **Speed:** +0.5% fps, so still no measurable difference. The submitting thread is about 19% shorter, the same as with the split alone. - **Crashes:** with split + #3881, 3 of 8 runs stopped (warm-ups included): 1 at +2:16 and 2 at +2:36/+2:38. All 3 were `a host command list did not close (0x80070057)` at the prison → plane cutscene cut or about 20 s after it. The bare release now has 5 of 27 at or near the same points, so 3 of 8 is not clearly higher, and this does not point at #3881. The new run that stopped made the masked twin at +2:14 like every other run. Split alone: 0 of 4. - On this bench that crash now looks like the cross-family texture copy of #3901: with #4080, #4522, #3043 or #3979 on the same release, 0 of 30 runs stopped. Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up runs not counted for speed. Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.
Author
Owner

@⁠ColorC on GitHub · 2026-12-01 12:16 UTC · original

AI Disclosure: Follow-up clarification drafted and posted by an AI assistant on behalf of the hardware owner using logged telemetry from the same RTX 5070 Ti + Ryzen 7 9800X3D machine. No screenshots or title assets are included.

@⁠akimfomin To answer your question directly:

  • RT builder mode in the original #3809 runs: RT was off (VICTORY_BVH_BUILDER=0, VICTORY_HW_RT=0, using VICTORY_AMBIENT=0.8). We do not have a matched original software-RT (VICTORY_BVH_BUILDER=1) ablation window on file for the 4 switches alone.
  • What we did verify later under DXR 1.1 HWRT (VICTORY_HW_RT=1, VICTORY_BVH_BUILDER=0, 1440p DLSS Quality + 2x FG, VICTORY_RELAY=2):
    • VICTORY_LAZY_COMPARE_MB=64, VICTORY_LAZY_NARROW=1, and VICTORY_TABLE_SAME=1 stayed enabled across all subsequent HWRT runs (including 8-minute open-world drives, 0 errors).
    • Two 185s scripted driving runs with VICTORY_SUBMIT_SPLIT=1 alongside those 3 switches logged:
      • Run A (39 5s windows, avg 6,233 draws): Mean 20.34 FPS, P50 20.8, P10 16.0, Min 0.8, CPU prep 33.19 ms.
      • Run B (35 5s windows, avg 6,748 draws): Mean 19.14 FPS, P50 19.6, P10 16.5, Min 1.9, CPU prep 34.58 ms.
    • A subsequent 185s HWRT run with VICTORY_SUBMIT_SPLIT off (same 3 switches still ON, plus VICTORY_WC_BAR=3, 40 5s windows, lighter route load at avg 4,566 draws — so not a strict single-switch isolation): Mean 24.60 FPS, P50 24.6, P10 20.8, Min 13.8, CPU prep 30.24 ms, 0 errors.

Hope that clarifies the RT configuration and avoids mixing no-RT numbers with full-RT expectations.

**@⁠ColorC** on GitHub · 2026-12-01 12:16 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7310895225) > **AI Disclosure:** Follow-up clarification drafted and posted by an AI assistant on behalf of the hardware owner using logged telemetry from the same RTX 5070 Ti + Ryzen 7 9800X3D machine. No screenshots or title assets are included. @⁠akimfomin To answer your question directly: - **RT builder mode in the original #3809 runs:** RT was **off** (`VICTORY_BVH_BUILDER=0`, `VICTORY_HW_RT=0`, using `VICTORY_AMBIENT=0.8`). We do not have a matched original software-RT (`VICTORY_BVH_BUILDER=1`) ablation window on file for the 4 switches alone. - **What we did verify later under DXR 1.1 HWRT (`VICTORY_HW_RT=1`, `VICTORY_BVH_BUILDER=0`, 1440p DLSS Quality + 2x FG, `VICTORY_RELAY=2`):** - `VICTORY_LAZY_COMPARE_MB=64`, `VICTORY_LAZY_NARROW=1`, and `VICTORY_TABLE_SAME=1` stayed enabled across all subsequent HWRT runs (including 8-minute open-world drives, 0 errors). - Two 185s scripted driving runs with `VICTORY_SUBMIT_SPLIT=1` alongside those 3 switches logged: - Run A (`39` 5s windows, avg `6,233` draws): **Mean `20.34 FPS`**, **P50 `20.8`**, **P10 `16.0`**, **Min `0.8`**, CPU prep **`33.19 ms`**. - Run B (`35` 5s windows, avg `6,748` draws): **Mean `19.14 FPS`**, **P50 `19.6`**, **P10 `16.5`**, **Min `1.9`**, CPU prep **`34.58 ms`**. - A subsequent 185s HWRT run with `VICTORY_SUBMIT_SPLIT` **off** (same 3 switches still ON, plus `VICTORY_WC_BAR=3`, `40` 5s windows, lighter route load at avg `4,566` draws — so **not** a strict single-switch isolation): **Mean `24.60 FPS`**, **P50 `24.6`**, **P10 `20.8`**, **Min `13.8`**, CPU prep **`30.24 ms`**, `0` errors. Hope that clarifies the RT configuration and avoids mixing no-RT numbers with full-RT expectations.
Author
Owner

@⁠bigboss22869 on GitHub · 2026-12-01 13:45 UTC · original

Crash with VICTORY_LAZY_COMPARE_MB (#501, on in the play defaults since #3809): the title reads shader-written memory before it is landed

With VICTORY_LAZY_COMPARE_MB=64 and VICTORY_LAZY_NARROW=1 the title crashes now and then with

unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x4e9b54a
(read 0xc / 0xffffffffffffffff / 0xf0418dd64)
  • With VICTORY_LAZY_COMPARE_MB=64 alone (no NARROW) the same function crashed too (+0x4e9b4b2, a garbage node pointer), 7.5 minutes into a run.
  • Seen 7 times: three automated runs and one 31-minute play session with LAZY_COMPARE + LAZY_NARROW + LANDED_FAST, twice with LAZY_COMPARE + LAZY_NARROW (3 minutes into a run after 50 clean minutes; 1 minute in), once with LAZY_COMPARE alone (7.5 minutes in).
  • VICTORY_LANDED_FAST=1 (#3753) alone: 80 minutes of camera turning without a crash. In about 590 earlier logs without LAZY_COMPARE the crash never appears.
  • The crashing function walks a singly linked list hanging off an object at +0x48 (nodes {next, +8 pointer, +0x10 u32} taken from a bump arena at [object+0x10]) and dies on mov eax,[rcx+0Ch] with rcx = [node+8]. In the dumps rcx is 0, -1 or 0x3f8000003f800000 (two 1.0f): the node's memory holds data that looks like what shaders write, not a pointer.

Our reading: the list nodes are written by shaders and read by the title's CPU after it has waited for that work. With the compare left out for a piece, the write is found only later (the sweep or a send), so for a while the title reads what the memory held before: old data, here floats and -1. We tried landing late-found bytes only where the title had not written since (a three-way merge): one 30-minute run without NARROW was clean, but the next one with NARROW crashed in the same place, so landing order is not the cause; late visibility is. host/lazy.rs notes this itself ("a piece written for the first time is read as the title has it until the sweep finds it").

Suggestion: take LAZY_COMPARE_MB / LAZY_NARROW out of the play defaults (#3809) until pieces the CPU may read after a fence are always compared before the title is told the work is done.

Setup: RTX 5070 Ti 16 GB, Ryzen 7 7800X3D, 64 GB, driver 621.24, fork branch rtx5070ti on 2026.11.30 code. We have taken LAZY_COMPARE out of our defaults; it gave about +3% fps while turning the camera.

🤖 Generated with Claude Code

**@⁠bigboss22869** on GitHub · 2026-12-01 13:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7313126864) **Crash with `VICTORY_LAZY_COMPARE_MB` (#501, on in the play defaults since #3809): the title reads shader-written memory before it is landed** With `VICTORY_LAZY_COMPARE_MB=64` and `VICTORY_LAZY_NARROW=1` the title crashes now and then with ``` unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x4e9b54a (read 0xc / 0xffffffffffffffff / 0xf0418dd64) ``` - With `VICTORY_LAZY_COMPARE_MB=64` alone (no NARROW) the same function crashed too (+0x4e9b4b2, a garbage node pointer), 7.5 minutes into a run. - Seen 7 times: three automated runs and one 31-minute play session with LAZY_COMPARE + LAZY_NARROW + LANDED_FAST, twice with LAZY_COMPARE + LAZY_NARROW (3 minutes into a run after 50 clean minutes; 1 minute in), once with LAZY_COMPARE alone (7.5 minutes in). - `VICTORY_LANDED_FAST=1` (#3753) alone: 80 minutes of camera turning without a crash. In about 590 earlier logs without LAZY_COMPARE the crash never appears. - The crashing function walks a singly linked list hanging off an object at +0x48 (nodes `{next, +8 pointer, +0x10 u32}` taken from a bump arena at `[object+0x10]`) and dies on `mov eax,[rcx+0Ch]` with `rcx = [node+8]`. In the dumps `rcx` is 0, -1 or `0x3f8000003f800000` (two 1.0f): the node's memory holds data that looks like what shaders write, not a pointer. Our reading: the list nodes are written by shaders and read by the title's CPU after it has waited for that work. With the compare left out for a piece, the write is found only later (the sweep or a send), so for a while the title reads what the memory held before: old data, here floats and -1. We tried landing late-found bytes only where the title had not written since (a three-way merge): one 30-minute run without NARROW was clean, but the next one with NARROW crashed in the same place, so landing order is not the cause; late visibility is. `host/lazy.rs` notes this itself ("a piece written for the first time is read as the title has it until the sweep finds it"). Suggestion: take LAZY_COMPARE_MB / LAZY_NARROW out of the play defaults (#3809) until pieces the CPU may read after a fence are always compared before the title is told the work is done. Setup: RTX 5070 Ti 16 GB, Ryzen 7 7800X3D, 64 GB, driver 621.24, fork branch rtx5070ti on 2026.11.30 code. We have taken LAZY_COMPARE out of our defaults; it gave about +3% fps while turning the camera. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠mstrmoos on GitHub · 2026-12-01 14:11 UTC · original

Thanks for tracking this down. Before the switches leave the defaults, here's what they're worth on a card-bound scene, so the trade-off is on the table.

RTX 5080, Series X profile, DLSS Balanced, frame generation off. Standing still on a pier for 120 s after a warm-up: water in frame, a terrace with people behind, the far shore, about 4,000-4,300 draws a frame. Same build and switches in both runs, apart from these two:

frame (median) p95 p99 frames over 50 ms seconds with p95 over 33 ms
LAZY_COMPARE_MB=64 + LAZY_NARROW=1 26.9 ms (37.2 fps) 27.2 29.7 1 5 of 119
without both 28.7 ms (34.8 fps) 29.5 31.6 6 16 of 122

So here it's about 7 % on the median and more on the tail, because the full compare is about 2.2 GB of card reads a frame (host/lazy.rs). I haven't hit the crash, but my runs are 2 minutes and yours appear after 1 to 30, so that tells you nothing.

A fix that might keep both: land/reads.rs already makes landed pages no-access and catches the CPU's first touch. If the title pages of pieces left out of a compare (pending in lazy) were held the same way, a CPU read of one could force that piece's compare and fetch before the read goes through. The CPU only pays when it actually touches a pending piece. The hard part is doing a card fetch from inside the fault, on the title's thread. Has anyone counted how often the title touches pending pieces? If it's rare, this keeps the 7 % without the late reads.

**@⁠mstrmoos** on GitHub · 2026-12-01 14:11 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7313834554) Thanks for tracking this down. Before the switches leave the defaults, here's what they're worth on a card-bound scene, so the trade-off is on the table. RTX 5080, Series X profile, DLSS Balanced, frame generation off. Standing still on a pier for 120 s after a warm-up: water in frame, a terrace with people behind, the far shore, about 4,000-4,300 draws a frame. Same build and switches in both runs, apart from these two: | | frame (median) | p95 | p99 | frames over 50 ms | seconds with p95 over 33 ms | | --- | --- | --- | --- | --- | --- | | `LAZY_COMPARE_MB=64` + `LAZY_NARROW=1` | 26.9 ms (37.2 fps) | 27.2 | 29.7 | 1 | 5 of 119 | | without both | 28.7 ms (34.8 fps) | 29.5 | 31.6 | 6 | 16 of 122 | So here it's about 7 % on the median and more on the tail, because the full compare is about 2.2 GB of card reads a frame (`host/lazy.rs`). I haven't hit the crash, but my runs are 2 minutes and yours appear after 1 to 30, so that tells you nothing. A fix that might keep both: `land/reads.rs` already makes landed pages no-access and catches the CPU's first touch. If the title pages of pieces left out of a compare (pending in `lazy`) were held the same way, a CPU read of one could force that piece's compare and fetch before the read goes through. The CPU only pays when it actually touches a pending piece. The hard part is doing a card fetch from inside the fault, on the title's thread. Has anyone counted how often the title touches pending pieces? If it's rare, this keeps the 7 % without the late reads.
Author
Owner

@⁠mstrmoos on GitHub · 2026-12-01 14:46 UTC · original

I measured how often this window opens on my side. Then I tried something that narrows it. It's on a branch for anyone who can reproduce the crash: mstrmoos/VIctory-NVIDIA pr/lazy-halo (93c9601e, one commit on main).

Late finds. A "late find" is a piece found written while it no longer counted as written lately. Shaders wrote it, but the write was seen only when the sweep or a send reached it, and until then the title read the old bytes. That's your reading of the crash. The branch adds a cold count to the 5-second lazy line. On the pier (RTX 5080, Series X, DLSS Balanced, about 4,000 draws a frame, LAZY_COMPARE_MB=64 + LAZY_NARROW=1), over 5 minutes it stays at about 1,060 a 5 s, about 5 a frame: 5 % of all writes found. So the window opens often, which fits a crash that needs a particular list to land in it.

VICTORY_LAZY_HALO=<n> (off by default). The list you found is built in a bump arena, so it grows on from where it ended. With this switch, a piece found written makes the next n pieces count as written lately too. They're then compared at every submission while the arena grows into them.

120 s each, same switches late finds per 5 s hot compares per 5 s frame (median) p95
off (5-minute run) ~1,060 ~177 k 25.6 ms 33.5
HALO=2 614 198 k 26.9 ms 28.9
HALO=8 373 268 k 26.8 ms 31.6

The extra compares don't show in the frame time. The window shrinks by about two thirds but doesn't close: the remaining late finds aren't next to a piece found written. So this is a mitigation, not a fix, and I can't tell from here whether it covers your list. If you can rerun your crashing setup with VICTORY_LAZY_HALO=8, that would tell us. If it holds for an hour or more where it used to crash within 30 minutes, I'll open it as a PR with your result.

**@⁠mstrmoos** on GitHub · 2026-12-01 14:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7314796344) I measured how often this window opens on my side. Then I tried something that narrows it. It's on a branch for anyone who can reproduce the crash: `mstrmoos/VIctory-NVIDIA` `pr/lazy-halo` (93c9601e, one commit on `main`). **Late finds.** A "late find" is a piece found written while it no longer counted as written lately. Shaders wrote it, but the write was seen only when the sweep or a send reached it, and until then the title read the old bytes. That's your reading of the crash. The branch adds a `cold` count to the 5-second lazy line. On the pier (RTX 5080, Series X, DLSS Balanced, about 4,000 draws a frame, `LAZY_COMPARE_MB=64` + `LAZY_NARROW=1`), over 5 minutes it stays at about **1,060 a 5 s, about 5 a frame**: 5 % of all writes found. So the window opens often, which fits a crash that needs a particular list to land in it. **`VICTORY_LAZY_HALO=<n>`** (off by default). The list you found is built in a bump arena, so it grows on from where it ended. With this switch, a piece found written makes the next `n` pieces count as written lately too. They're then compared at every submission while the arena grows into them. | 120 s each, same switches | late finds per 5 s | hot compares per 5 s | frame (median) | p95 | | --- | --- | --- | --- | --- | | off (5-minute run) | ~1,060 | ~177 k | 25.6 ms | 33.5 | | `HALO=2` | 614 | 198 k | 26.9 ms | 28.9 | | `HALO=8` | 373 | 268 k | 26.8 ms | 31.6 | The extra compares don't show in the frame time. The window shrinks by about two thirds but doesn't close: the remaining late finds aren't next to a piece found written. So this is a mitigation, not a fix, and I can't tell from here whether it covers your list. If you can rerun your crashing setup with `VICTORY_LAZY_HALO=8`, that would tell us. If it holds for an hour or more where it used to crash within 30 minutes, I'll open it as a PR with your result.
Author
Owner

@⁠mstrmoos on GitHub · 2026-12-01 15:37 UTC · original

A longer run with the halo: 30 minutes standing on the pier, LAZY_COMPARE_MB=64 + LAZY_NARROW=1 + LAZY_HALO=8, DLSS frame generation 4x with Reflex low latency off (#4881), RTX 5080. Diagnostics build of my branch.

  • No crash, no device removal: 68,710 rendered frames, 26.1 ms median (38.3 fps, about 153 shown), p95 26.1 ms, p99 29.9 ms.
  • Late finds: 201 per 5 s on average over the run (370 lazy lines), against about 1,060 without the halo in the 5-minute run without frame generation. That's 81 % fewer.

Half an hour clean on one machine doesn't prove much against a crash that came after 1 to 30 minutes for you. But together with the count, it's the reason I'd ask for your test with VICTORY_LAZY_HALO=8 before anyone takes the lazy compare out of the defaults.

**@⁠mstrmoos** on GitHub · 2026-12-01 15:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7316243474) A longer run with the halo: 30 minutes standing on the pier, `LAZY_COMPARE_MB=64` + `LAZY_NARROW=1` + `LAZY_HALO=8`, DLSS frame generation 4x with Reflex low latency off (#4881), RTX 5080. Diagnostics build of my branch. - **No crash**, no device removal: 68,710 rendered frames, 26.1 ms median (38.3 fps, about 153 shown), p95 26.1 ms, p99 29.9 ms. - **Late finds: 201 per 5 s** on average over the run (370 lazy lines), against about 1,060 without the halo in the 5-minute run without frame generation. That's 81 % fewer. Half an hour clean on one machine doesn't prove much against a crash that came after 1 to 30 minutes for you. But together with the count, it's the reason I'd ask for your test with `VICTORY_LAZY_HALO=8` before anyone takes the lazy compare out of the defaults.
github-bot closed this pull request 2026-12-01 18:51:14 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:48 UTC · original

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.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3809#issuecomment-7321585985) 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

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