perf(agc): allow disabling graphics library registration warmup #5551
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5551"
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 fdfawef324 on 2026-10-13T23:40:20Z.
What
Shader registration eagerly materializes default results for graphics-library warmup, including shaders that may never be used. Add
APS5_NO_LIBRARY_PREBUILD=1to skip that optional materialization and warmup. Required source handles, shader ABI preparation and compilation at actual use remain available. Unset,0and other values preserve existing behavior; the option is read once per process.The change does not modify compiled shader contents, disk-cache format or dependencies.
Tested
Windows native Vulkan tests on the GPU below, using matched baseline and candidate builds on
30f961266:0: native readback passes. Baseline1: fails specifically because registration-default materialization is retained.0/1: all pass in separate processes without skips, using the same prepared source handles, variant IDs and bounded push ranges for a 64×64 all-white GPU readback.No title memory or FPS improvement is claimed. A separate integration comparison reached the same Demon's Souls capture checkpoint in 152.6 seconds with either build; sampled peak private memory was 18.21 GB versus 18.05 GB, which is inconclusive. Dreaming Sarah's integration menu checkpoint remained at 59.94 FPS.
Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryCo-Authored-By: Codex [email protected]
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T02:51:10Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/tests/execution/PreparedGraphics.cppL311, L356-357Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-14T03:43:34Z.
Windows test of #5551: Windows 10 (19045), MinGW-w64 GCC 15.2, Release,
ninja -j 4, ctest called directly; GPU selected by the execution tests (Selected GPUlog line): NVIDIA GeForce RTX 4080 SUPER. Tree:maina14ae8e23+ merge of PR head1d4c372e3a4d4efc8c92bd33eedd66cbfd76c2d5(local merge39dc13ea4, no conflict). Logs:rtx5551_*_N.log,rtx5551_result.txt.4 ctest targets, 3 runs each, exit code 0 in 12 of 12 runs:
agc_driver_prepared_graphics,agc_driver_prepared_graphics_prebuild_0,agc_driver_prepared_graphics_prebuild_1,agc_driver_prepared_graphics_prebuild_unset.Test selection: the PR changes a file under
tests/execution/, whichlibSceAgcDriver/CMakeLists.txt:1132globs (one ctest target per file), and registers its test variants inCMakeLists.txt; the four target names above are the onesctest -Nlists for them.Not tested: that the new or changed tests fail without the change (no baseline run), other ctest targets, the AMD GPU unless named above, Linux, a title run.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-14T03:59:32Z.
Thanks for the exact-head Windows reruns. The 12 successful PreparedGraphics runs add RTX 4080 SUPER coverage for the default and environment-switch variants on your merged build. I will keep that evidence separate from the baseline failure check and the untested title/performance cases, as you noted.
AI-assisted: yes.
Co-Authored-By: Codex [email protected]
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T12:15:10Z.
Checked on Linux (RADV): the PR merged onto main builds, and
agc_driver_prepared_graphicsplus the three newprebuild_{unset,0,1}tests pass. With theShaderRegistry.cppchange reverted,prebuild_1fails and unset/0pass, as the description says. The default path is unchanged. Windows RTX 4080 SUPER runs from @xXPBSXx (12/12) cover the Windows side; merging once the full Build is green.