perf(agc): memoize source failures of draw stages as for compute #422
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/422"
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-02T23:26:53Z.
What
SourceHandleForremembers a source that failed to resolve and answers later lookups with the stored failure, but only for compute stages. A draw stage that cannot be resolved was resolved again on every draw: GTA V draws whose descriptor came through a lane-dependent chain repeated the walk and threw each time.compileDrawStagetakes the memoized failure through the existingpoisonedout-parameter. The draw is rejected with that message instead of an exception, asDispatchalready does.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.
ctest: all tests pass.APS5_PROFILE_DRAW=1: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 repositorycompileDrawStagecall inDraw.cpp; whichever merges second keeps both changes🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-03T06:28:30Z.
+1. My integration branch has carried a version of this without the linked-program key. On PPSA21564's world map, unwinding these repeated throws took about 19% of the queue worker's time on Linux (the guest libc's unwinder calls dl_iterate_phdr for every frame), and memoizing the draw-stage failures removed it. I'll switch my branch to this version, since it also keys on the linked programs.