Findings from an RTX 5090: the Auto HDR notice trips the driver watch, where the frame goes when the card is not the limit, first game runs of #1014's hash and the changed-copies list #1253

Open
opened 2026-11-26 04:00:24 +00:00 by github-bot · 5 comments
Owner

@⁠CarverXI on GitHub · 2026-11-26 02:45 UTC · original

VIctory fork on an RTX 5090: what one more test machine showed (2026-11-25)

Machine: Windows 11 Pro (build 26300), Intel i9-14900K, NVIDIA RTX 5090 32 GB (driver 621.01),
128 GB RAM. Resizable BAR is off on this machine (BAR1 256 MiB), which matters for one result below.
Build: fork main at 32b31f7, the switch set of diagnostics/README.md plus VICTORY_CARD_HASH_LEN=1,
with card budgets raised for 32 GB (VICTORY_CARD_WINDOWS_MB=6144 VICTORY_CARD_BUFFERS_MB=4096).
Scene: the opening cutscene from the saved checkpoint, driven by a script, Series X profile.
All fps figures are frames over frame time across the same window of the cutscene (60 to 220 s after
the start key), from the frame log. A single run varies by 10 to 20 %, so each A/B below is two runs
per side unless it says otherwise.

1. A bug: the driver watch trips on Windows' Auto HDR notice (fix ready)

drvwatch subscribes to every entry of the Display source. Windows 11 writes an information entry
there, 4125 ("Good news-... has been enhanced", Auto HDR), when a game's window first shows. On a machine
with Auto HDR on, the watch logged "the graphics driver reported an error" about one second into every
run and turned the draw windows off for the whole run.

Fix: the query asks for levels 1 to 3 only (critical, error, warning). Checked against this machine's
System log: it keeps the one real nvlddmkm 153 error and drops all 14 Auto HDR entries; Display
4101 ("stopped responding and has recovered") is a warning and stays in. One commit, 20 lines,
drvwatch.rs only; the subscription test uses the same query.

2. Where the frame goes on a card that is not the limit

On this card the card is idle a quarter to a third of every frame. The frame is serial: the title waits
on its fence for the previous frame, which the layer sets after the copy-back lands. Measured parts of a
usual frame (4,500 to 5,000 draws): preparing submissions 58 to 77 ms (copies 27 to 38 of it),
copy-back 35 to 50 ms, the title's lists 17 to 23 ms of card time.

A sampling profile (VICTORY_PROFILE=1) of Host::submit, about 106 ms a frame in a heavier stretch:
Batch::flush 37 (of it guard_at 15: VirtualQuery 7.5, VirtualProtect 4.3; guarded memcpy 12),
sync_heaps 11, ask_once 11, stale_under_flights 11, Shadow::update 5.5, copy_mapped 5.4,
let_go_idle 5.2 (texture retire inside D3D12), texture staging refresh 4.9. No single line of ours
costs over 2.5 ms a frame of own time.

Elasticity check (before the latest main, when the card still was the limit): skipping the 12 most
expensive title compute passes (about 17 ms of card time) shortened the frame by 22 ms.

3. Switches run in a game here for the first time

Switch Result
VICTORY_CARD_HASH_WIDE=1 (#1014's 64-thread hash) our send-and-hash lists 43.9 / 44.7 ms -> 10.5 / 10.7 ms of card time a frame; 0 errors in 4 runs; fps unchanged (4.20, 4.13 off; 4.73, 3.83 on) because the card is not the limit here
VICTORY_CARD_CHANGED_LIST=1 6.33, 6.42 fps on vs 6.09, 6.31 off (+3 %, inside the noise but the same way both times); 0 errors
VICTORY_WINDOW_UPLOAD=1 did not engage: GPU upload heaps supported=false (resizable BAR off on this machine)
VICTORY_ASYNC_PRESENT=1 the render thread's present wait 64 -> 7 ms, fps unchanged: it then waits on its fence
VICTORY_ABSENT_ONCE=1 VICTORY_ABSENT_MS=told VICTORY_VIEW_KNOWN=1 VICTORY_WIDE_REFRESH=1 no change (one run)

4. What the copy-back is worth as a frame cost

A measuring switch (VICTORY_BACK_SKIP=1, diagnostics only, wrong wherever the title reads those
bytes): no copy-back of card copies at all. 7.66 fps against 6.99, copy-back 39 -> 0 ms a frame, the card
idle 26 -> 68 ms. So with today's preparing path, skipping the copy-back nobody reads (run 277's finding)
is worth about 10 % on its own; it pays more once preparing is cheaper.

5. Open pull requests merged here

#1190 (bitsets for changed buffer slots) and #1192 (descriptor table plans per stage) merge cleanly onto
32b31f7, and the victory-gpu tests pass (207). Same window, one run each: 6.81 -> 6.99 fps, usual frame
107 -> 91 ms, preparing 65 -> 58 ms.

6. Upstream main on this card (for the record)

Upstream main (63bcca4) with upstream PR #2825 (native f16) ran the cutscene at about 0.9 fps and the
device was removed (0x887A0004, after a 6.5 s submission of 28-29 compute lists) in 2 of 3 runs into the
world, with VICTORY_F16_IN_F32=1 as well as without: not #2825's doing. Not run further.

7. A defect seen, cause not known

On 32b31f7 with the switch set above, blocky garbage along the bottom edge of some frames of the
cutscene (blue and grey blocks at the bottom left and right). Not seen on the older build (d510ee4) in
the same shot. Not bisected yet; VICTORY_MERGE_GAP=64 is a suspect only because it is inexact.


Logs and profiles behind these numbers are kept locally and can be shared as scrubbed excerpts on request. Measured and written with Claude Code.

**@⁠CarverXI** on GitHub · 2026-11-26 02:45 UTC · [original](https://github.com/fxceless/victory-fork/issues/1253) # VIctory fork on an RTX 5090: what one more test machine showed (2026-11-25) Machine: Windows 11 Pro (build 26300), Intel i9-14900K, NVIDIA RTX 5090 32 GB (driver 621.01), 128 GB RAM. **Resizable BAR is off** on this machine (BAR1 256 MiB), which matters for one result below. Build: fork `main` at 32b31f7, the switch set of `diagnostics/README.md` plus `VICTORY_CARD_HASH_LEN=1`, with card budgets raised for 32 GB (`VICTORY_CARD_WINDOWS_MB=6144 VICTORY_CARD_BUFFERS_MB=4096`). Scene: the opening cutscene from the saved checkpoint, driven by a script, Series X profile. All fps figures are frames over frame time across the same window of the cutscene (60 to 220 s after the start key), from the frame log. A single run varies by 10 to 20 %, so each A/B below is two runs per side unless it says otherwise. ## 1. A bug: the driver watch trips on Windows' Auto HDR notice (fix ready) `drvwatch` subscribes to every entry of the `Display` source. Windows 11 writes an *information* entry there, 4125 ("Good news-... has been enhanced", Auto HDR), when a game's window first shows. On a machine with Auto HDR on, the watch logged "the graphics driver reported an error" about one second into every run and turned the draw windows off for the whole run. Fix: the query asks for levels 1 to 3 only (critical, error, warning). Checked against this machine's System log: it keeps the one real `nvlddmkm` 153 error and drops all 14 Auto HDR entries; `Display` 4101 ("stopped responding and has recovered") is a warning and stays in. One commit, 20 lines, `drvwatch.rs` only; the subscription test uses the same query. ## 2. Where the frame goes on a card that is not the limit On this card the card is idle a quarter to a third of every frame. The frame is serial: the title waits on its fence for the previous frame, which the layer sets after the copy-back lands. Measured parts of a usual frame (4,500 to 5,000 draws): preparing submissions 58 to 77 ms (copies 27 to 38 of it), copy-back 35 to 50 ms, the title's lists 17 to 23 ms of card time. A sampling profile (`VICTORY_PROFILE=1`) of `Host::submit`, about 106 ms a frame in a heavier stretch: `Batch::flush` 37 (of it `guard_at` 15: `VirtualQuery` 7.5, `VirtualProtect` 4.3; guarded memcpy 12), `sync_heaps` 11, `ask_once` 11, `stale_under_flights` 11, `Shadow::update` 5.5, `copy_mapped` 5.4, `let_go_idle` 5.2 (texture retire inside D3D12), texture staging refresh 4.9. No single line of ours costs over 2.5 ms a frame of own time. Elasticity check (before the latest main, when the card still was the limit): skipping the 12 most expensive title compute passes (about 17 ms of card time) shortened the frame by 22 ms. ## 3. Switches run in a game here for the first time | Switch | Result | |---|---| | `VICTORY_CARD_HASH_WIDE=1` (#1014's 64-thread hash) | our send-and-hash lists 43.9 / 44.7 ms -> 10.5 / 10.7 ms of card time a frame; 0 errors in 4 runs; fps unchanged (4.20, 4.13 off; 4.73, 3.83 on) because the card is not the limit here | | `VICTORY_CARD_CHANGED_LIST=1` | 6.33, 6.42 fps on vs 6.09, 6.31 off (+3 %, inside the noise but the same way both times); 0 errors | | `VICTORY_WINDOW_UPLOAD=1` | did not engage: GPU upload heaps `supported=false` (resizable BAR off on this machine) | | `VICTORY_ASYNC_PRESENT=1` | the render thread's present wait 64 -> 7 ms, fps unchanged: it then waits on its fence | | `VICTORY_ABSENT_ONCE=1 VICTORY_ABSENT_MS=told VICTORY_VIEW_KNOWN=1 VICTORY_WIDE_REFRESH=1` | no change (one run) | ## 4. What the copy-back is worth as a frame cost A measuring switch (`VICTORY_BACK_SKIP=1`, diagnostics only, wrong wherever the title reads those bytes): no copy-back of card copies at all. 7.66 fps against 6.99, copy-back 39 -> 0 ms a frame, the card idle 26 -> 68 ms. So with today's preparing path, skipping the copy-back nobody reads (run 277's finding) is worth about 10 % on its own; it pays more once preparing is cheaper. ## 5. Open pull requests merged here #1190 (bitsets for changed buffer slots) and #1192 (descriptor table plans per stage) merge cleanly onto 32b31f7, and the victory-gpu tests pass (207). Same window, one run each: 6.81 -> 6.99 fps, usual frame 107 -> 91 ms, preparing 65 -> 58 ms. ## 6. Upstream main on this card (for the record) Upstream `main` (63bcca4) with upstream PR #2825 (native f16) ran the cutscene at about 0.9 fps and the device was removed (0x887A0004, after a 6.5 s submission of 28-29 compute lists) in 2 of 3 runs into the world, with `VICTORY_F16_IN_F32=1` as well as without: not #2825's doing. Not run further. ## 7. A defect seen, cause not known On 32b31f7 with the switch set above, blocky garbage along the bottom edge of some frames of the cutscene (blue and grey blocks at the bottom left and right). Not seen on the older build (d510ee4) in the same shot. Not bisected yet; `VICTORY_MERGE_GAP=64` is a suspect only because it is inexact. --- Logs and profiles behind these numbers are kept locally and can be shared as scrubbed excerpts on request. Measured and written with [Claude Code](https://claude.com/claude-code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:00:24 +00:00
Author
Owner

@⁠CarverXI on GitHub · 2026-11-26 02:52 UTC · original

The fix for section 1 is up as #1255 (one file, drvwatch.rs). Since it went in here: 0 driver-watch trips in 39 game runs.

**@⁠CarverXI** on GitHub · 2026-11-26 02:52 UTC · [original](https://github.com/fxceless/victory-fork/issues/1253#issuecomment-7181199742) The fix for section 1 is up as #1255 (one file, `drvwatch.rs`). Since it went in here: 0 driver-watch trips in 39 game runs.
Author
Owner

@⁠HLVM04 on GitHub · 2026-11-26 02:56 UTC · original

On section 7 (blocky bottom-edge band): we saw the same kind of band on an RTX 5070 Ti at 9376fd6, which is 7 commits before d510ee4. Series X profile, VICTORY_CARD_WINDOWS_MB=4096, first gameplay room: the walls and lighting were right, but a blocky stale band ran along the bottom edge, and earlier world frames had blocky smears.

On the Series S profile with fork PR #798 (title keeps its own upscaler), same tree, the bottom-edge band was gone (a few blocky spots early on). One run each, different scene from yours, so this only says the band isn't new in 32b31f7 and may be tied to the Series X path; it doesn't rule out MERGE_GAP=64.

**@⁠HLVM04** on GitHub · 2026-11-26 02:56 UTC · [original](https://github.com/fxceless/victory-fork/issues/1253#issuecomment-7181252238) On section 7 (blocky bottom-edge band): we saw the same kind of band on an RTX 5070 Ti at 9376fd6, which is 7 commits before d510ee4. Series X profile, `VICTORY_CARD_WINDOWS_MB=4096`, first gameplay room: the walls and lighting were right, but a blocky stale band ran along the bottom edge, and earlier world frames had blocky smears. On the Series S profile with fork PR #798 (title keeps its own upscaler), same tree, the bottom-edge band was gone (a few blocky spots early on). One run each, different scene from yours, so this only says the band isn't new in 32b31f7 and may be tied to the Series X path; it doesn't rule out `MERGE_GAP=64`.
Author
Owner

@⁠CarverXI on GitHub · 2026-11-26 04:05 UTC · original

Thanks, that helps. Tested here on the RTX 5090 (fork 32b31f7 + #1190 + #1192, the diagnostics/README set): the band is there with VICTORY_CARD_WINDOWS_MB=0 as well, in the same places as with windows on (screenshots every 10 s through the first prison shots of the opening cutscene, 17 per run). So on this card it is not the windows on the card. A run with VICTORY_MERGE_GAP=0 landed on other (dark) shots, so it says nothing yet either way; I'll repeat it on the same shots. And my 'not on the older build' came from one shot with a different switch set, so your 9376fd6 sighting stands: it isn't new.

**@⁠CarverXI** on GitHub · 2026-11-26 04:05 UTC · [original](https://github.com/fxceless/victory-fork/issues/1253#issuecomment-7182279657) Thanks, that helps. Tested here on the RTX 5090 (fork 32b31f7 + #1190 + #1192, the diagnostics/README set): the band is there with `VICTORY_CARD_WINDOWS_MB=0` as well, in the same places as with windows on (screenshots every 10 s through the first prison shots of the opening cutscene, 17 per run). So on this card it is not the windows on the card. A run with `VICTORY_MERGE_GAP=0` landed on other (dark) shots, so it says nothing yet either way; I'll repeat it on the same shots. And my 'not on the older build' came from one shot with a different switch set, so your 9376fd6 sighting stands: it isn't new.
Author
Owner

@⁠CarverXI on GitHub · 2026-11-26 12:38 UTC · original

More results from the RTX 5090 machine (i9-14900K, 128 GB, Windows 11 26300, driver 621.01, Resizable BAR on, High Performance plan), in case they help where your 12 GB card can't tell.

Method. Diagnostics build, Series X profile, the opening cutscene from one save, frames over time for the 60 s to 220 s after the world starts loading, arms alternated in one session, two runs a side unless said. Run-to-run noise here is about 5 to 10 %, and whole rounds drift together, so I compare within a round. Every run logs the same 9 known lines (7 refused compute pipelines, 2 lane-mask shaders) and nothing else.

1. Your newest switches on ceb9e1f

Base set as in section 2, on ceb9e1f plus three diagnostics-only commits of mine.

Arm Round 1 Round 2
base 11.58 fps 10.14 fps
+ VICTORY_SETTLE_ROOM=1 VICTORY_PARALLEL_REFRESH=1 12.18 11.10
+ those and VICTORY_SYNC_BESIDE=1 12.46 10.92

An earlier pair of the first two arms gave 11.14 against 12.06. So the two together are worth about +5 to +9 % here in three pairs out of three, and VICTORY_SYNC_BESIDE is a null here as it was for you (+2 %, -2 %).

2. The card is not the wall on this machine

Your README now finds the card to be the frame's wall at the boat. On the 5090, in this cutscene (2,000 to 5,000 draws a frame), the frame log reads about: frame 65 to 75 ms, preparing 40 to 50, copy-back 33 to 40, card idle 20 to 30, card wait 0. The preparing thread is still the limit here, so switches that trade card time for preparing-thread time may read the other way round on the two cards. Two that you list at no gain did gain here (measured on 46bf535 and before, same method):

Change Without With
VICTORY_STAGING_POOL=1 (_MB=1024) 7.68 / 7.92 8.83 / 8.94 +14 %
VICTORY_ASYNC_PRESENT=1 8.11 / 7.80 8.48 / 8.73 +8 %
VICTORY_CARD_HASH_WIDE=1 on top 8.49 / 8.64 9.34 / 9.28 +9 %
VICTORY_WIDE_REFRESH=1 +3.5 %
HEAP_LOCKS, TABLE_STAGES, HEAP_WORKER, CARD_SYNC_BATCH, LOOKUP_CACHE, LIST_REUSE, HEAP_PASS_MARKED together 9.14 / 9.29 10.89 / 10.88 +18 %, usual frame 96 to 52 ms
VICTORY_LIGHT_REFRESH=1 VICTORY_ABSENT_ONCE=1 VICTORY_ABSENT_MS=told 10.70 / 10.71 11.84 / 12.01 +11 %

The staging pool is the one I would look at again: it is the largest single step here and it is off in your test set.

Measured at no gain here: VICTORY_WINDOW_UPLOAD, the release build against the diagnostics build (12.10 / 12.18 against 11.82 / 12.03), VICTORY_INPLACE (a loss).

3. A ceiling for the copy-back

With a measuring switch that skips the copy-back of card copies (wrong picture where the title reads those bytes, so only a ceiling): 12.20 / 12.06 without, 12.91 / 13.35 with. Removing the copy-back entirely is worth at most about +8 % on this machine at the moment.

4. The heap pass beside the refreshes

Before I saw VICTORY_SYNC_BESIDE I had written the same idea on 46bf535 (a thread of the layer's runs descriptor::sync_heaps from after the sweep while the submitting thread asks the write watch, merges under flights and refreshes; it is waited for right after the batch's flush, and the waiting slots are made after it). There it measured 12.55 / 12.33 against 11.74 / 11.91 (+5 %), 227 tests passing. Yours is a null on ceb9e1f here, so either the newer base took the gain another way or the two differ in where they wait. I have not run them against each other on one base. If the comparison is of use I can do that and send the patch; I won't open a pull request for a duplicate.

5. Environment notes

Turning Resizable BAR on and moving from Balanced to High Performance took the usual frame from 118 to 160 ms down to about 92 ms on the set of that day, though the mean over the stretch moved little. Upstream VIctory main lost the device (0x887A0004) in 2 of 3 runs on this card; the fork has not once.

**@⁠CarverXI** on GitHub · 2026-11-26 12:38 UTC · [original](https://github.com/fxceless/victory-fork/issues/1253#issuecomment-7192256976) More results from the RTX 5090 machine (i9-14900K, 128 GB, Windows 11 26300, driver 621.01, Resizable BAR on, High Performance plan), in case they help where your 12 GB card can't tell. **Method.** Diagnostics build, Series X profile, the opening cutscene from one save, frames over time for the 60 s to 220 s after the world starts loading, arms alternated in one session, two runs a side unless said. Run-to-run noise here is about 5 to 10 %, and whole rounds drift together, so I compare within a round. Every run logs the same 9 known lines (7 refused compute pipelines, 2 lane-mask shaders) and nothing else. ### 1. Your newest switches on `ceb9e1f` Base set as in section 2, on `ceb9e1f` plus three diagnostics-only commits of mine. | Arm | Round 1 | Round 2 | |---|---|---| | base | 11.58 fps | 10.14 fps | | + `VICTORY_SETTLE_ROOM=1 VICTORY_PARALLEL_REFRESH=1` | 12.18 | 11.10 | | + those and `VICTORY_SYNC_BESIDE=1` | 12.46 | 10.92 | An earlier pair of the first two arms gave 11.14 against 12.06. So the two together are worth about +5 to +9 % here in three pairs out of three, and `VICTORY_SYNC_BESIDE` is a null here as it was for you (+2 %, -2 %). ### 2. The card is not the wall on this machine Your README now finds the card to be the frame's wall at the boat. On the 5090, in this cutscene (2,000 to 5,000 draws a frame), the frame log reads about: frame 65 to 75 ms, preparing 40 to 50, copy-back 33 to 40, **card idle 20 to 30**, card wait 0. The preparing thread is still the limit here, so switches that trade card time for preparing-thread time may read the other way round on the two cards. Two that you list at no gain did gain here (measured on `46bf535` and before, same method): | Change | Without | With | | |---|---|---|---| | `VICTORY_STAGING_POOL=1` (`_MB=1024`) | 7.68 / 7.92 | 8.83 / 8.94 | +14 % | | `VICTORY_ASYNC_PRESENT=1` | 8.11 / 7.80 | 8.48 / 8.73 | +8 % | | `VICTORY_CARD_HASH_WIDE=1` on top | 8.49 / 8.64 | 9.34 / 9.28 | +9 % | | `VICTORY_WIDE_REFRESH=1` | | | +3.5 % | | `HEAP_LOCKS`, `TABLE_STAGES`, `HEAP_WORKER`, `CARD_SYNC_BATCH`, `LOOKUP_CACHE`, `LIST_REUSE`, `HEAP_PASS_MARKED` together | 9.14 / 9.29 | 10.89 / 10.88 | +18 %, usual frame 96 to 52 ms | | `VICTORY_LIGHT_REFRESH=1 VICTORY_ABSENT_ONCE=1 VICTORY_ABSENT_MS=told` | 10.70 / 10.71 | 11.84 / 12.01 | +11 % | The staging pool is the one I would look at again: it is the largest single step here and it is off in your test set. Measured at no gain here: `VICTORY_WINDOW_UPLOAD`, the release build against the diagnostics build (12.10 / 12.18 against 11.82 / 12.03), `VICTORY_INPLACE` (a loss). ### 3. A ceiling for the copy-back With a measuring switch that skips the copy-back of card copies (wrong picture where the title reads those bytes, so only a ceiling): 12.20 / 12.06 without, 12.91 / 13.35 with. Removing the copy-back entirely is worth at most about +8 % on this machine at the moment. ### 4. The heap pass beside the refreshes Before I saw `VICTORY_SYNC_BESIDE` I had written the same idea on `46bf535` (a thread of the layer's runs `descriptor::sync_heaps` from after the sweep while the submitting thread asks the write watch, merges under flights and refreshes; it is waited for right after the batch's flush, and the waiting slots are made after it). There it measured 12.55 / 12.33 against 11.74 / 11.91 (+5 %), 227 tests passing. Yours is a null on `ceb9e1f` here, so either the newer base took the gain another way or the two differ in where they wait. I have not run them against each other on one base. If the comparison is of use I can do that and send the patch; I won't open a pull request for a duplicate. ### 5. Environment notes Turning Resizable BAR on and moving from Balanced to High Performance took the usual frame from 118 to 160 ms down to about 92 ms on the set of that day, though the mean over the stretch moved little. Upstream VIctory `main` lost the device (`0x887A0004`) in 2 of 3 runs on this card; the fork has not once.
Author
Owner

@⁠HLVM04 on GitHub · 2026-11-26 12:56 UTC · original

A caution on VICTORY_ASYNC_PRESENT=1 next to the +8 % in your section 2: on our RTX 5070 Ti (Series S profile, a stack of fork main 0b0074e plus several open PRs and local changes, Windows build 26200), the driver logged errors and then the device was removed (0x887A0004) at 109 s, before world entry. That is one run on a different tree, so it may not apply to ceb9e1f, but a longer soak may be worth it before it goes into a default set.

**@⁠HLVM04** on GitHub · 2026-11-26 12:56 UTC · [original](https://github.com/fxceless/victory-fork/issues/1253#issuecomment-7192660537) A caution on `VICTORY_ASYNC_PRESENT=1` next to the +8 % in your section 2: on our RTX 5070 Ti (Series S profile, a stack of fork main 0b0074e plus several open PRs and local changes, Windows build 26200), the driver logged errors and then the device was removed (0x887A0004) at 109 s, before world entry. That is one run on a different tree, so it may not apply to `ceb9e1f`, but a longer soak may be worth it before it goes into a default set.
This discussion has been locked. Commenting is limited to contributors.
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/fxceless--victory-fork#1253
No description provided.