play.ps1: device-removed data keeps page faults only by default (breadcrumbs cost ~37 ms of card time a frame) #713

Manually merged
github merged 1 commit from github-bot/gh-713 into main 2026-11-29 08:21:49 +00:00 AGit
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 04:14 UTC · original
kibagami-nc:scripts/play-dred-faults-by-default → main · +4 −1 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC

Rebased on main (f9dfb76f). The conflict was the settings line that #927 changed (VICTORY_CARD_AWAKE is no longer set there): main's line is kept, with VICTORY_D3D12_DRED = 'faults'. The script parses, stays ASCII with CRLF line ends.

The problem

scripts\play.ps1 runs the diagnostics build (target\diag, its default) with VICTORY_D3D12_DRED=light. That forces the runtime's auto-breadcrumbs on (SetAutoBreadcrumbsEnablement), so every command on the card writes a breadcrumb after itself. On NVIDIA this costs a lot of card time.

TaynanGT/Vice-Tay#274 measured it on an RTX 2080 Ti (Series S, the prologue: café then cell, PresentMon for card time):

DRED card busy a frame (median) café fps
light 83.0 / 81.7 ms 11.79 / 11.66
faults 46.1 ms 16.74
off 46.1 / 46.0 ms 16.79 / 16.84

TaynanGT/Vice-Tay#115 saw the same direction on an RTX 3080 Ti.

The change

play.ps1 sets VICTORY_D3D12_DRED=faults by default, and its header says why and how to get the breadcrumbs back.

  • What faults keeps: the page-fault report after a device loss, which gives the faulting address and the allocations near it. It drops the breadcrumbs.
  • For anyone chasing a device loss: the breadcrumbs stay one switch away, with -More @{VICTORY_D3D12_DRED='light'}.

The release victory.exe (play) is not concerned: DRED is only built into the diagnostics build.

This is a port of cafeoh's change (TaynanGT/Vice-Tay#274). That script differs from this one, so the change is made by hand here.

Tests

  • The script still parses ([System.Management.Automation.Language.Parser]::ParseFile: 0 errors).
  • Not run with the game here.
**@⁠kibagami-nc** on GitHub · 2026-11-28 04:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/713) `kibagami-nc:scripts/play-dred-faults-by-default` → `main` · +4 −1 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC **Rebased on main (f9dfb76f).** The conflict was the settings line that #927 changed (`VICTORY_CARD_AWAKE` is no longer set there): main's line is kept, with `VICTORY_D3D12_DRED = 'faults'`. The script parses, stays ASCII with CRLF line ends. ## The problem `scripts\play.ps1` runs the diagnostics build (`target\diag`, its default) with `VICTORY_D3D12_DRED=light`. That forces the runtime's auto-breadcrumbs on (`SetAutoBreadcrumbsEnablement`), so every command on the card writes a breadcrumb after itself. On NVIDIA this costs a lot of card time. [TaynanGT/Vice-Tay#274](https://github.com/TaynanGT/Vice-Tay/pull/274) measured it on an RTX 2080 Ti (Series S, the prologue: café then cell, PresentMon for card time): | DRED | card busy a frame (median) | café fps | |---|---|---| | `light` | 83.0 / 81.7 ms | 11.79 / 11.66 | | `faults` | 46.1 ms | 16.74 | | off | 46.1 / 46.0 ms | 16.79 / 16.84 | TaynanGT/Vice-Tay#115 saw the same direction on an RTX 3080 Ti. ## The change `play.ps1` sets `VICTORY_D3D12_DRED=faults` by default, and its header says why and how to get the breadcrumbs back. - **What `faults` keeps:** the page-fault report after a device loss, which gives the faulting address and the allocations near it. It drops the breadcrumbs. - **For anyone chasing a device loss:** the breadcrumbs stay one switch away, with `-More @{VICTORY_D3D12_DRED='light'}`. The release `victory.exe` (`play`) is not concerned: DRED is only built into the diagnostics build. This is a port of cafeoh's change ([TaynanGT/Vice-Tay#274](https://github.com/TaynanGT/Vice-Tay/pull/274)). That script differs from this one, so the change is made by hand here. ## Tests - The script still parses (`[System.Management.Automation.Language.Parser]::ParseFile`: 0 errors). - Not run with the game here.
scripts\play.ps1 runs the diagnostics build (target\diag) with
VICTORY_D3D12_DRED=light, which forces the runtime's auto-breadcrumbs on:
every command on the card writes a breadcrumb after itself, and on NVIDIA
that costs a lot of card time. Measured on an RTX 2080 Ti, Series S, the
prologue: about 82 ms of card time a frame with light, 46 ms with faults
or off; 11.7 against 16.8 fps in the cafe (TaynanGT/Vice-Tay#274, same
direction on an RTX 3080 Ti in TaynanGT/Vice-Tay#115).

`faults` keeps the page-fault report after a device loss (the faulting
address and the allocations near it) without the breadcrumbs. The
breadcrumbs stay one switch away: -More @{VICTORY_D3D12_DRED='light'}.

Port of cafeoh's change (TaynanGT/Vice-Tay#274).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 04:18:56 +00:00
github-bot force-pushed github-bot/gh-713 from 9c3ce22e04 to 0519b67745 2026-11-29 00:39:38 +00:00 Compare
github manually merged commit 437b73e888 into main 2026-11-29 08:21:49 +00:00
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!713
No description provided.