perf(agc): index the pending storage images by guest range #403
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/403"
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 boykopovar/AnyPS5. Originally posted by MichonGoddijn231849 on 2026-10-02T19:02:57Z.
What
Each guest memory read asks the pending storage images whether it must store results first (
FlushPendingfrom the memory-access hook,overlappingPending, andPendingStorageOverlapsfor shader resources). Each of these scanned the whole registry, and almost every read overlaps none of the images.thread_localrefreshingonce per image. With MinGW everythread_localaccess is an__emutls_get_addresscall, so the scan cost one TLS lookup per pending image.refreshingonce.In GTA V's Prologue, sampling the submission thread put 17.6% of its time in
FlushPending, 15% of it inside__emutls_get_address, and another 8% inoverlappingPending.Tested
Windows 11 Pro, AMD Ryzen 5 7600, NVIDIA GeForce RTX 5080 (driver 32.0.16.1074), 32 GB DDR5-5600, MinGW-w64 GCC 15.2.0.
APS5_PROFILE_DRAW=1: 6 to 7 fps before, 8 to 8.5 after. Per draw packet,Graphics::Drawwent from 67 to 46 µs and the whole packet from 104 to 78 µs.FlushPendingandoverlappingPendingleft the top of the profile.main.ctest: all tests pass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository🤖 Generated with Claude Code