docs(usage): document the shader cache directory and its environment variables #5525
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5525"
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 ahmedmakroum on 2026-10-13T22:23:27Z.
What
Documents the shader cache in
docs/user/USAGE.mdunder Runtime layout: its defaultshader_cache/directory,ANYPS5_SHADER_CACHE_DIR,ANYPS5_NO_SHADER_CACHE, the per-version shader subdirectories and their cleanup, thevk-pipelines-*.binfiles, and that deleting the directory is safe.Each statement was checked against the source:
ANYPS5_SHADER_CACHE_DIR, andANYPS5_NO_SHADER_CACHE(any non-empty value other than0) turning off both caches:ShaderCacheDirectoryincore/shader/recompiler/ShaderDiskCache.cpp, used byDiskStorethere and bycore/libs/prx/libSceAgcDriver/Graphics/src/PipelineCache.cpp.DiskStoreandDiskStore::housekeepingincore/shader/recompiler/ShaderDiskCache.cpp. The store, and so the cleanup, starts at the first shader lookup (findOrCompileVariantincore/shader/recompiler/Recompiler.cpp).vk-pipelines-*.binfile per GPU and driver version (vendor ID, device ID, driver version and pipeline cache UUID in the name):core/libs/prx/libSceAgcDriver/Graphics/src/PipelineCache.cpp.DiskStore::housekeepingcreates the directory, andWriteFileAtomicallyincore/shader/recompiler/ShaderCacheDirectory.hppcreates missing parent directories.Tested
Documentation only.
python3 tools/check_conventions.pypasses.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 MarcZX10 on 2026-10-13T22:27:05Z.
Review: APPROVED
The documentation matches the current cache implementation: both cache controls, the source-version shader subdirectory and 14-day stale-version cleanup, and GPU/driver-specific Vulkan cache files are represented clearly. I verified the statements against the cited source paths in the PR body. The docs checks pass; full build jobs are skipped, as expected for this documentation-only change.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T23:33:39Z.
Review: APPROVED
Rechecked the requested head ; it is unchanged from the head I reviewed earlier. The cache paths, versioned subdirectory and stale-version cleanup description still match the implementation. Documentation checks pass; full build jobs are skipped for this docs-only change. AI-assisted: yes; reviewed by MarcZX100.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T21:46:28Z.
Checked each statement against main (
ShaderCacheDirectory,DiskStore::housekeeping, thevk-pipelines-*.binnaming inPipelineCache.cpp); they match. Conventions green; merging.