host/shadow: coalesce pending-gap watches, lock-free sifting, parallel preludes, and ASK_FIRST fix #2656
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2656"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 0x4e454f on 2026-11-29T15:37:46Z.
Summary
Reduces CPU refresh and submission-preparation overhead on the submitting thread through four independent improvements (tested with VICTORY_PORT_CONSTANTS=0, where the 174 MB heap lives in VRAM):
Changes
ecord_prelude and records multiple preludes in parallel via wide_each_scoped when GPU detiling is not active.
Measured Impact (GTA 6 Series S open world, VICTORY_PORT_CONSTANTS=0)
efreshes per frame (wall-clock): 26.2–28.6 ms -> 19.4–20.7 ms (-7.5 ms/frame)
Verification
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BitWuehler on 2026-11-29T16:41:33Z.
Tested on Linux (CachyOS) / GE-Proton 11-14 (
vkd3d-proton master) / Ryzen 7 9800X3D (8c/16t) / RTX 5080 16 GB (driver 620.73.04) stacked on829188e9+ #2647 + #2665 withVICTORY_ASK_FIRST=1(Series X profile, 1440p, DLSS Quality):host.rsagainst #2647 (kept #2647's incrementalcopy_spans_extendalongside #2656'sASK_FIRSTskip);shadow.rsandlist/thin.rsmerged cleanly.ASK_FIRST):frame_ms: 95.2 ms avg / 7084 ms max -> 52.6 ms avg / 589 ms maxprep_msmax: 161.6 ms -> 115.9 mscopies_msmax: 72.5 ms -> 52.0 ms(Test summary compiled with AI assistance.)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tillo88 on 2026-11-29T17:53:56Z.
Tested this PR in game on top of
829188e9(its base): it crashes for me, 2 runs out of 2, at the same place.a host command list did not close (0x80070057): a command recorded into it was invalid829188e9alone, and with #2665, passes this point every time (4 runs today).Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing builder off.
Logs (both runs, colour codes and game path stripped): attached.
pr2656-crash-logs.zip
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CopiiDeco on 2026-11-30T00:00:10Z.
A second data point for the crash above, from another rig: the same error,
a host command list did not close (The parameter is incorrect. (0x80070057)): a command recorded into it was invalid, about a minute into the opening cutscene.Rig: Ryzen 5 5600X (6C/12T), RTX 3080 10 GB (driver 616.92), 32 GB, Windows 11 26200; diagnostics build, Series S, DLSS Performance, frame generation off, ray tracing off.
Stack: main
829188e9+ #2776 + this PR + #2647 + #2745 + #2655. The same stack without #2655 passed one run, and a run withVICTORY_D3D12_DEBUG=1did not reproduce it in 5 minutes, so it is intermittent here (which would fit a race, e.g. in the parallel prelude recording, as guessed above). Not narrowed down further on my side.