play.ps1: DRED keeps page faults only by default (breadcrumbs cost ~37 ms of card time a frame on an RTX 2080 Ti) #274
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!274
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-274"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCVICTORY_D3D12_DRED=lightforces 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.faultskeeps 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:
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.@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.@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) ofmain99a7f9b+ #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_DREDwas set explicitly in every run and is the only difference:faults(F) orlight(L); the logs showbreadcrumbs=falsein the F runs andbreadcrumbs=truein 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.
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::Instantvalues summed inSUBMISSION_US[1],host.rs), not a measurement on the card, so this does not compare with the card-busy column in the PR description.@TaynanGT on GitHub · 2026-11-27 14:38 UTC · original
@CowboyBingus The two
lightruns fall inside thefaultsrange 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.@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.csvand compare the median ofMsGPUBusybetween light and faults.@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.