host/shadow: coalesce pending-gap watches, lock-free sifting, parallel preludes, and ASK_FIRST fix #2656
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2656
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@0x4e454f on GitHub · 2026-11-29 15:37 UTC · original
0x4e454f:refresh-coalesce-sift→main· +251 −97 · 3 files · 1 commits · merged 2026-11-30 14:12 UTCSummary
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
@BitWuehler on GitHub · 2026-11-29 16:41 UTC · original
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.)
@tillo88 on GitHub · 2026-11-29 17:53 UTC · original
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
@CopiiDeco on GitHub · 2026-11-30 00:00 UTC · original
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.