perf(gpu): lock-free has_pending fast path in Shadow::nothing_new and writes_pending #1134
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!1134
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1134"
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?
@adwen-007 on GitHub · 2026-11-28 13:51 UTC · original
adwen-007:pr/perf-lockfree-has-pending→main· +13 −3 · 1 files · 1 commits · merged 2026-11-28 19:39 UTCProblem
Shadow::nothing_newandShadow::writes_pendingare called thousands of times per frame on the hot refresh path and unconditionally acquiredself.pending.lock()even when no shader writes were pending for that shadow buffer.Fix
Track pending state with an
AtomicBool(has_pending, updated alongsideself.pendingunder its mutex) sonothing_newandwrites_pendingskip locking the mutex in the common empty case.Verification
cargo check -p victory-gpupasses cleanly onv2026.11.28.01(63b902f).