GPU: use RwLock read fast path for shadow::BUFFERS and batch heap_buffers defer_refreshes #1066
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-25T18:18:37Z.
All 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
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.