DirectStorage: a poll of a pending status entry waits a little for it to be written (VICTORY_DSTORAGE_POLL_WAIT_US) #2331
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!2331
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2331"
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?
@101Leafy on GitHub · 2026-11-29 12:03 UTC · original
101Leafy:nv/dstorage-poll-wait→main· +68 −1 · 1 files · 1 commits · merged 2026-11-30 14:12 UTCThe title polls status array entries and sleeps 1 ms between polls. A batch that lands just after a poll is only seen at the next one.
VICTORY_DSTORAGE_POLL_WAIT_US=n (0 by default, at most 2000) lets a poll of a pending entry wait up to n microseconds on a condition variable that is woken each time a status entry is written. With the switch at 0 nothing changes and no wake-ups are sent.
A test writes an entry from another thread during the wait and checks the poll sees it.