GPU: use RwLock read fast path for shadow::BUFFERS and batch heap_buffers defer_refreshes #1068
No reviewers
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!1068
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1068"
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?
@UwUCammie on GitHub · 2026-11-25 18:18 UTC · original
UwUCammie:pr/shadow-buffers-rwlock→main· +72 −11 · 3 files · 1 commits · openAll recording threads and
heap_bufferscontend on the globalshadow::BUFFERSmutex on everyshadow::findlookup, even though almost all lookups hit an already-created shadow copy.heap_buffersalso lockedHostList::deferred~4,600 times per frame in its refresh loop.shadow::BUFFERSfromMutextoRwLockwith a shared read-lock fast path inlookup()(only taking the write lock when a buffer entry has not lazily created its shadow yet).HostList::defer_refreshes/Shadow::refresh_manysoheap_buffersrecords all eligible spans under a singledeferred()lock.Tested on Linux + Wine 11.22 + RX 7900 XT (RADV,
VICTORY_RELAY=2, 480 s run into the cell scene):heap buffersnon-16th pass dropped from ~39–40 ms to ~33–36 ms, 0 GPUVM faults, picture unchanged.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.