play.ps1: DRED keeps page faults only by default (breadcrumbs cost ~37 ms of card time a frame on an RTX 2080 Ti) #274

Manually merged
github merged 1 commit from github-bot/gh-274 into gh-pr/274/base 2026-11-27 13:34:59 +00:00 AGit
Owner

@⁠cafeoh on GitHub · 2026-11-27 13:20 UTC · original
cafeoh:pr/dred-faults → main · +1 −1 · 1 files · 1 commits · merged 2026-11-27 13:34 UTC

VICTORY_D3D12_DRED=light forces the runtime's auto-breadcrumbs on (host.rs: SetAutoBreadcrumbsEnablement(FORCED_ON)), so every command on the card writes a breadcrumb after itself. On NVIDIA that costs a lot of card time. faults keeps page-fault reporting (the faulting address and the allocations near it after a device loss) and drops the breadcrumbs.

Measured on an RTX 2080 Ti / Ryzen 7 7800X3D / Windows 10, Series S, diag build, prologue (café then cell), the same exe and switches, PresentMon for card time:

DRED card busy a frame (median) café fps last 40 s fps
light (today's default), 2 runs 83.0 / 81.7 ms 11.79 / 11.66 11.00 / 11.12
faults 46.1 ms 16.74 18.62
0 (off), 2 runs 46.1 / 46.0 ms 16.79 / 16.84 18.72 / 18.70

Issue #115 saw the same direction on an RTX 3080 Ti (DRED off: card ~45 → ~35 ms). Pictures are unchanged. Breadcrumbs stay one switch away (-More @{VICTORY_D3D12_DRED='light'}) for anyone chasing a device loss.

**@⁠cafeoh** on GitHub · 2026-11-27 13:20 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/274) `cafeoh:pr/dred-faults` → `main` · +1 −1 · 1 files · 1 commits · merged 2026-11-27 13:34 UTC `VICTORY_D3D12_DRED=light` forces the runtime's auto-breadcrumbs on (host.rs: `SetAutoBreadcrumbsEnablement(FORCED_ON)`), so every command on the card writes a breadcrumb after itself. On NVIDIA that costs a lot of card time. `faults` keeps page-fault reporting (the faulting address and the allocations near it after a device loss) and drops the breadcrumbs. Measured on an RTX 2080 Ti / Ryzen 7 7800X3D / Windows 10, Series S, diag build, prologue (café then cell), the same exe and switches, PresentMon for card time: | DRED | card busy a frame (median) | café fps | last 40 s fps | |---|---|---|---| | light (today's default), 2 runs | 83.0 / 81.7 ms | 11.79 / 11.66 | 11.00 / 11.12 | | faults | 46.1 ms | 16.74 | 18.62 | | 0 (off), 2 runs | 46.1 / 46.0 ms | 16.79 / 16.84 | 18.72 / 18.70 | Issue #115 saw the same direction on an RTX 3080 Ti (DRED off: card ~45 → ~35 ms). Pictures are unchanged. Breadcrumbs stay one switch away (`-More @{VICTORY_D3D12_DRED='light'}`) for anyone chasing a device loss.
`light` forces the runtime's auto-breadcrumbs on, so every command on the
card writes a breadcrumb after itself; on an RTX 2080 Ti that took the card
from 46 to 83 ms a frame in the prologue. `faults` keeps the page-fault
report and drops the breadcrumbs. `-More @{VICTORY_D3D12_DRED='light'}`
still turns them on.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 13:23:45 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 13:23 UTC · original · edited 2026-11-27 13:38 UTC

@⁠cafeoh The two light runs and the faults-only control make the 2080 Ti result useful. Page-fault reporting remains available in the faults mode, and light stays an explicit diagnostic override. I verified the default and overrides, and Windows CI passed. The change is in main at 7728185.

**@⁠TaynanGT** on GitHub · 2026-11-27 13:23 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/274#issuecomment-7219416972) · edited 2026-11-27 13:38 UTC @⁠cafeoh The two light runs and the faults-only control make the 2080 Ti result useful. Page-fault reporting remains available in the faults mode, and light stays an explicit diagnostic override. I verified the default and overrides, and Windows CI passed. The change is in main at `7728185`.
github-bot changed target branch from main to gh-pr/274/base 2026-11-27 13:34:57 +00:00
github manually merged commit 118edb0722 into gh-pr/274/base 2026-11-27 13:34:59 +00:00
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-27 14:24 UTC · original

Light vs faults on another NVIDIA card, with one build and only the launcher setting changed, as you suggested on #273: RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 64 GB, Windows 11.

Setup: one exe for all runs (md5 8657D8CBFCAAEF490E24F061EE0D36A8), a diag build (--profile diag -p victory --features diagnostics) of main 99a7f9b + #206 + an opt-in switch of ours that was not set (VICTORY_LAZY_BACK). scripts\play.ps1 -Console series-s -Machine 4070 -Windowed -Dlss quality; our deviations, the same in every run: -Windowed, -Machine 4070, the reflection hold (VICTORY_AMBIENT_REFLECT=1, VICTORY_AMBIENT_REFLECT_IN=CS_TemporalResolve2_Opaque,CS_TemporalResolve1_Alpha), Enter presses (held 0.3 s) written to a keys file (VICTORY_KEYS_FILE) by a background job that begins no new round after 62 s on its clock, and a window capture after each 3 s wait while the game window was up. The build predates #274; VICTORY_D3D12_DRED was set explicitly in every run and is the only difference: faults (F) or light (L); the logs show breadcrumbs=false in the F runs and breadcrumbs=true in the L runs. Interleaved F1 L1 F2 L2, one session, 450 s each.

Frame-meter lines with > 1000 draws and 0 pipelines being made; medians (mean of the two middle lines for an even count, rounded half up); p10/p90 by nearest rank; with fewer than 100 lines per run, the 1% low is the lowest line.

Run lines used / all fps median p10 p90 1% low ms/frame preparing copies ms / MB textures ms / MB GPU ms copying back ms / MB draws dropped draws
F1 65 / 86 24.1 21.9 24.6 16.6 41.5 33.6 8.9 / 50.5 0.3 / 20.0 0.2 18.9 / 24.2 4431 254
L1 46 / 85 25.2 23.8 25.7 20.0 39.7 31.1 8.3 / 49.2 0.3 / 19.2 0.2 18.1 / 24.0 4431 249
F2 53 / 86 25.7 23.8 26.6 23.0 39.0 30.3 8.4 / 47.7 0.3 / 19.5 0.3 18.0 / 24.0 4450 252
L2 75 / 87 24.5 19.1 25.4 13.2 40.8 31.1 7.8 / 47.2 0.3 / 18.4 0.4 18.0 / 24.4 4407 255

ms/frame: faults 41.5 / 39.0, light 39.7 / 40.8. The light runs fall inside the range of the faults runs, so these four runs show no difference in ms/frame between the two settings beyond the spread between runs of the same setting.

We have no card-time measurement (no PresentMon), only the frame meter above. Its GPU ms column is a CPU-side wall-clock timer (std::time::Instant values summed in SUBMISSION_US[1], host.rs), not a measurement on the card, so this does not compare with the card-busy column in the PR description.

**@⁠CowboyBingus** on GitHub · 2026-11-27 14:24 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/274#issuecomment-7220748902) Light vs faults on another NVIDIA card, with one build and only the launcher setting changed, as you suggested on [#273](https://git.gtahub.st/github/TaynanGT--Vice-Tay/issues/273): RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 64 GB, Windows 11. **Setup:** one exe for all runs (md5 `8657D8CBFCAAEF490E24F061EE0D36A8`), a diag build (`--profile diag -p victory --features diagnostics`) of `main` 99a7f9b + #206 + an opt-in switch of ours that was not set (`VICTORY_LAZY_BACK`). `scripts\play.ps1 -Console series-s -Machine 4070 -Windowed -Dlss quality`; our deviations, the same in every run: `-Windowed`, `-Machine 4070`, the reflection hold (`VICTORY_AMBIENT_REFLECT=1`, `VICTORY_AMBIENT_REFLECT_IN=CS_TemporalResolve2_Opaque,CS_TemporalResolve1_Alpha`), Enter presses (held 0.3 s) written to a keys file (`VICTORY_KEYS_FILE`) by a background job that begins no new round after 62 s on its clock, and a window capture after each 3 s wait while the game window was up. The build predates #274; `VICTORY_D3D12_DRED` was set explicitly in every run and is the only difference: `faults` (F) or `light` (L); the logs show `breadcrumbs=false` in the F runs and `breadcrumbs=true` in the L runs. Interleaved F1 L1 F2 L2, one session, 450 s each. Frame-meter lines with > 1000 draws and 0 pipelines being made; medians (mean of the two middle lines for an even count, rounded half up); p10/p90 by nearest rank; with fewer than 100 lines per run, the 1% low is the lowest line. | Run | lines used / all | fps median | p10 | p90 | 1% low | ms/frame | preparing | copies ms / MB | textures ms / MB | GPU ms | copying back ms / MB | draws | dropped draws | |---|---|---|---|---|---|---|---|---|---|---|---|---|---| | F1 | 65 / 86 | 24.1 | 21.9 | 24.6 | 16.6 | 41.5 | 33.6 | 8.9 / 50.5 | 0.3 / 20.0 | 0.2 | 18.9 / 24.2 | 4431 | 254 | | L1 | 46 / 85 | 25.2 | 23.8 | 25.7 | 20.0 | 39.7 | 31.1 | 8.3 / 49.2 | 0.3 / 19.2 | 0.2 | 18.1 / 24.0 | 4431 | 249 | | F2 | 53 / 86 | 25.7 | 23.8 | 26.6 | 23.0 | 39.0 | 30.3 | 8.4 / 47.7 | 0.3 / 19.5 | 0.3 | 18.0 / 24.0 | 4450 | 252 | | L2 | 75 / 87 | 24.5 | 19.1 | 25.4 | 13.2 | 40.8 | 31.1 | 7.8 / 47.2 | 0.3 / 18.4 | 0.4 | 18.0 / 24.4 | 4407 | 255 | ms/frame: faults 41.5 / 39.0, light 39.7 / 40.8. The light runs fall inside the range of the faults runs, so these four runs show no difference in ms/frame between the two settings beyond the spread between runs of the same setting. We have no card-time measurement (no PresentMon), only the frame meter above. Its GPU ms column is a CPU-side wall-clock timer (`std::time::Instant` values summed in `SUBMISSION_US[1]`, `host.rs`), not a measurement on the card, so this does not compare with the card-busy column in the PR description.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 14:38 UTC · original

@⁠CowboyBingus The two light runs fall inside the faults range on your 5070 Ti, so this pair shows no clear frame-time effect on that setup. Thanks for calling out the CPU-side timer. The next card-time comparison needs GPU timestamps or a GPU busy trace.

**@⁠TaynanGT** on GitHub · 2026-11-27 14:38 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/274#issuecomment-7221047915) @⁠CowboyBingus The two `light` runs fall inside the `faults` range on your 5070 Ti, so this pair shows no clear frame-time effect on that setup. Thanks for calling out the CPU-side timer. The next card-time comparison needs GPU timestamps or a GPU busy trace.
Author
Owner

@⁠cafeoh on GitHub · 2026-11-27 14:47 UTC · original

Thanks for the careful runs. One note: your "preparing" is 30-34 ms of a ~40 ms frame, so your frame is CPU-bound and extra card time from breadcrumbs could hide entirely. On the 2080 Ti the card was the limit (card busy ~46 of ~49 ms), which is where it showed. If you want card time, PresentMon 2.x gives it per frame: PresentMon-2.6.0-x64.exe --process_name victory.exe --output_file pm.csv and compare the median of MsGPUBusy between light and faults.

**@⁠cafeoh** on GitHub · 2026-11-27 14:47 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/274#issuecomment-7221232103) Thanks for the careful runs. One note: your "preparing" is 30-34 ms of a ~40 ms frame, so your frame is CPU-bound and extra card time from breadcrumbs could hide entirely. On the 2080 Ti the card was the limit (card busy ~46 of ~49 ms), which is where it showed. If you want card time, PresentMon 2.x gives it per frame: `PresentMon-2.6.0-x64.exe --process_name victory.exe --output_file pm.csv` and compare the median of `MsGPUBusy` between light and faults.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 14:56 UTC · original

@⁠cafeoh Right, the 30–34 ms spent preparing can hide the extra GPU work in a 40 ms frame. I’ll use the per-frame GPU Busy values for that comparison and keep the same scene and warmed cache in each run.

**@⁠TaynanGT** on GitHub · 2026-11-27 14:56 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/274#issuecomment-7221434087) @⁠cafeoh Right, the 30–34 ms spent preparing can hide the extra GPU work in a 40 ms frame. I’ll use the per-frame GPU Busy values for that comparison and keep the same scene and warmed cache in each run.
This discussion has been locked. Commenting is limited to contributors.
No description provided.