perf(agc): log storage image and storage-viewed texture creation only with APS5_DEBUG_LOG #6473
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6473"
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 ahir061 on 2026-10-15T16:36:16Z.
What
StorageTextureand the sampledTextureviewed from a storage image wrote one unconditionalAPS5_LOG_OUTline each time they were created. A title whose dynamic resolution keeps re-creating storage images (#6099) turns that into a log flood on the queue workers: Marvel's Wolverine wrote 1,175,006 lines to stdout in a 25-minute run, 99.7 % of them these two (Texture.cpp"viewed from storage image" 653,217,StorageTexture514,596). They now useAPS5_LOG_OUT_DEBUG, as other per-object traces do, so they are printed only in builds withAPS5_DEBUG_LOG.Tested
Marvel's Wolverine PPSA03671 01.001.005, Windows 11 26200, Ryzen 7 5800X3D, 16 GiB RAM, RX 6600 XT 8 GB (AMD 26.9.2),
--windows, warm shader cache, the "Sony Interactive Entertainment presents" card.mainalone aborts earlier on this card (device memory, #5961), so both runs use the same local branch (maina5e2a80c6+ #5998, #6340, #5987, #6174 and local memory budgets), with and without this commit, same environment (APS5_STORAGE_CACHE_MIB=4096 APS5_HOST_IMPORT_MIB=4096 APS5_PROFILE_DRAW=1 APS5_TRACE_SUMMARY_EVERY=30):Resources.Completeper frame, last intervalA worker-0 sample (
APS5_SAMPLE_WORKER, 44,670 samples) without this PR had 11.3 % of queue worker 0 in__mingw_fprintfunder these two lines. The summary lines are attached: without this PR summary-without-this-pr.txt, with it summary-with-this-pr.txt. The run with it reports commit afffb8ae8 as dirty because it was built before this change was committed; the uncommitted change is this commit. I did not captureAPS5_TRACE_FRAMEStraces, and can if wanted.agc_driver_graphics(GCC 15.2.0 UCRT, Release): passes. The build has no new warnings.python tools/check_conventions.py --base upstream/main: passes.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T16:44:45Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp