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
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/fxceless--victory-fork#1253
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@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
mainat32b31f7, the switch set ofdiagnostics/README.mdplusVICTORY_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)
drvwatchsubscribes to every entry of theDisplaysource. Windows 11 writes an information entrythere, 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
nvlddmkm153 error and drops all 14 Auto HDR entries;Display4101 ("stopped responding and has recovered") is a warning and stays in. One commit, 20 lines,
drvwatch.rsonly; 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) ofHost::submit, about 106 ms a frame in a heavier stretch:Batch::flush37 (of itguard_at15:VirtualQuery7.5,VirtualProtect4.3; guarded memcpy 12),sync_heaps11,ask_once11,stale_under_flights11,Shadow::update5.5,copy_mapped5.4,let_go_idle5.2 (texture retire inside D3D12), texture staging refresh 4.9. No single line of ourscosts 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
VICTORY_CARD_HASH_WIDE=1(#1014's 64-thread hash)VICTORY_CARD_CHANGED_LIST=1VICTORY_WINDOW_UPLOAD=1supported=false(resizable BAR off on this machine)VICTORY_ASYNC_PRESENT=1VICTORY_ABSENT_ONCE=1 VICTORY_ABSENT_MS=told VICTORY_VIEW_KNOWN=1 VICTORY_WIDE_REFRESH=14. What the copy-back is worth as a frame cost
A measuring switch (
VICTORY_BACK_SKIP=1, diagnostics only, wrong wherever the title reads thosebytes): 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 frame107 -> 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 thedevice 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=1as well as without: not #2825's doing. Not run further.7. A defect seen, cause not known
On
32b31f7with the switch set above, blocky garbage along the bottom edge of some frames of thecutscene (blue and grey blocks at the bottom left and right). Not seen on the older build (
d510ee4) inthe same shot. Not bisected yet;
VICTORY_MERGE_GAP=64is 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: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.@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 befored510ee4. 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
32b31f7and may be tied to the Series X path; it doesn't rule outMERGE_GAP=64.@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 withVICTORY_CARD_WINDOWS_MB=0as 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 withVICTORY_MERGE_GAP=0landed 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 your9376fd6sighting stands: it isn't new.@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
ceb9e1fBase set as in section 2, on
ceb9e1fplus three diagnostics-only commits of mine.VICTORY_SETTLE_ROOM=1 VICTORY_PARALLEL_REFRESH=1VICTORY_SYNC_BESIDE=1An 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_BESIDEis 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
46bf535and before, same method):VICTORY_STAGING_POOL=1(_MB=1024)VICTORY_ASYNC_PRESENT=1VICTORY_CARD_HASH_WIDE=1on topVICTORY_WIDE_REFRESH=1HEAP_LOCKS,TABLE_STAGES,HEAP_WORKER,CARD_SYNC_BATCH,LOOKUP_CACHE,LIST_REUSE,HEAP_PASS_MARKEDtogetherVICTORY_LIGHT_REFRESH=1 VICTORY_ABSENT_ONCE=1 VICTORY_ABSENT_MS=toldThe 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_BESIDEI had written the same idea on46bf535(a thread of the layer's runsdescriptor::sync_heapsfrom 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 onceb9e1fhere, 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
mainlost the device (0x887A0004) in 2 of 3 runs on this card; the fork has not once.@HLVM04 on GitHub · 2026-11-26 12:56 UTC · original
A caution on
VICTORY_ASYNC_PRESENT=1next to the +8 % in your section 2: on our RTX 5070 Ti (Series S profile, a stack of fork main0b0074eplus 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 toceb9e1f, but a longer soak may be worth it before it goes into a default set.