The driver watch counts warnings and errors only, not the Auto HDR notice #1252

Merged
CarverXI merged 1 commit from upstream-pr/1255 into main 2026-11-26 03:41:50 +00:00
CarverXI commented 2026-11-26 02:52:29 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by CarverXI on 2026-11-26T02:52:29Z.


Part 1 of #1253.

Problem

drvwatch subscribes to every System-log entry of the Display source. That source also writes information entries that are no fault, among them 4125 ("Good news-… has been enhanced"), the Auto HDR notice Windows 11 writes when a game's window first shows. On a machine with Auto HDR on, the watch logged "the graphics driver reported an error to the system's event log" about one second into every run and turned the draw windows off for the rest of it, so VICTORY_INDIRECT_WINDOW=1 never took effect there.

Change

The query (now the constant QUERY, used by start and by the_system_takes_the_subscription) asks for levels 1 to 3 only: critical, error, warning.

*[System[Provider[@Name='nvlddmkm' or @Name='amdkmdag' or @Name='amdwddmg' or @Name='igfx'
  or @Name='igfxn' or @Name='Display'] and (Level=1 or Level=2 or Level=3)]]

Display 4101 ("display driver stopped responding and has recovered") is a warning, so it stays in; nvlddmkm 153 is an error and stays in.

Checked

  • The new XPath run against the System log of the machine that showed it (Windows 11 build 26300, RTX 5090, driver 621.01) with Get-WinEvent -FilterXPath: it returns the one nvlddmkm 153 error and none of the 14 Display 4125 entries; the old query returns all 15.
  • In the game: before the change, the run that showed it logged the drvwatch error at 1.0 s after start, at the same second as the Display 4125 entry in the System log; after it, 0 trips in 39 runs of up to five minutes each, with draw windows on throughout.
  • cargo test -p victory-gpu --features diagnostics drvwatch: 2 passed (the subscription test now subscribes with the new query), 1 ignored as before.
  • cargo clippy reports nothing in drvwatch.rs.

One file, crates/victory-gpu/src/drvwatch.rs.

🤖 Generated with Claude Code

<!-- greyfinch-sync:fxceless/victory-fork:issue:6618452323 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1255). Originally posted by [CarverXI](https://github.com/CarverXI) on 2026-11-26T02:52:29Z. --- Part 1 of #1253. ## Problem `drvwatch` subscribes to every System-log entry of the `Display` source. That source also writes *information* entries that are no fault, among them 4125 ("Good news-… has been enhanced"), the Auto HDR notice Windows 11 writes when a game's window first shows. On a machine with Auto HDR on, the watch logged "the graphics driver reported an error to the system's event log" about one second into every run and turned the draw windows off for the rest of it, so `VICTORY_INDIRECT_WINDOW=1` never took effect there. ## Change The query (now the constant `QUERY`, used by `start` and by `the_system_takes_the_subscription`) asks for levels 1 to 3 only: critical, error, warning. ``` *[System[Provider[@Name='nvlddmkm' or @Name='amdkmdag' or @Name='amdwddmg' or @Name='igfx' or @Name='igfxn' or @Name='Display'] and (Level=1 or Level=2 or Level=3)]] ``` `Display` 4101 ("display driver stopped responding and has recovered") is a warning, so it stays in; `nvlddmkm` 153 is an error and stays in. ## Checked - The new XPath run against the System log of the machine that showed it (Windows 11 build 26300, RTX 5090, driver 621.01) with `Get-WinEvent -FilterXPath`: it returns the one `nvlddmkm` 153 error and none of the 14 `Display` 4125 entries; the old query returns all 15. - In the game: before the change, the run that showed it logged the `drvwatch` error at 1.0 s after start, at the same second as the `Display` 4125 entry in the System log; after it, 0 trips in 39 runs of up to five minutes each, with draw windows on throughout. - `cargo test -p victory-gpu --features diagnostics drvwatch`: 2 passed (the subscription test now subscribes with the new query), 1 ignored as before. - `cargo clippy` reports nothing in `drvwatch.rs`. One file, `crates/victory-gpu/src/drvwatch.rs`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
upstream-sync closed this pull request 2026-11-26 04:07:52 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!1252
No description provided.