docs(usage): state that the shader cache directory has no size limit #6568

Merged
xXPBSXx merged 1 commit from upstream-pr/6568 into main 2026-10-17 03:45:44 +00:00
xXPBSXx commented 2026-10-15 20:57:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-15T20:57:14Z.


What

The Shader cache section of docs/user/USAGE.md says that subdirectories of other versions are removed after 14 days and that deleting the directory is safe. It does not say that the directory of the current version only grows. housekeeping() in core/shader/recompiler/ShaderDiskCache.cpp removes version directories whose last-used is older than 14 days (other than the current one) and .tmp. files older than an hour; no size or entry limit applies to the current version, and the file has no other limit on cache size.

Our runs on Windows (du -sm shader_cache in the run folder after one run): about 4.2 GB after a run of about 250 s (a 10 s window of the log reports 1461.6 MiB of cache writes), about 3.4 GB after 300 s for another title, 34 MB for a small one. The sentence added says so.

Tested

Documentation only. The statement is read from housekeeping() and from write() on main 4eb91eacd; not tested: a run to fill a disk, Linux.

Checklist

  • Based on current main; no other open PR implements the same functions (#5875 adds a Pipeline journal section after the Shader cache paragraph; a later rebase may be needed)
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file (no code changed)
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none (documentation)
  • GPUs tested: n/a
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4879746214 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6568). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-15T20:57:14Z. --- ### What The Shader cache section of `docs/user/USAGE.md` says that subdirectories of other versions are removed after 14 days and that deleting the directory is safe. It does not say that the directory of the current version only grows. `housekeeping()` in `core/shader/recompiler/ShaderDiskCache.cpp` removes version directories whose `last-used` is older than 14 days (other than the current one) and `.tmp.` files older than an hour; no size or entry limit applies to the current version, and the file has no other limit on cache size. Our runs on Windows (`du -sm shader_cache` in the run folder after one run): about 4.2 GB after a run of about 250 s (a 10 s window of the log reports 1461.6 MiB of cache writes), about 3.4 GB after 300 s for another title, 34 MB for a small one. The sentence added says so. ### Tested Documentation only. The statement is read from `housekeeping()` and from `write()` on `main` `4eb91eacd`; not tested: a run to fill a disk, Linux. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions (#5875 adds a Pipeline journal section after the Shader cache paragraph; a later rebase may be needed) - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file (no code changed) - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source (none) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none (documentation) - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-15 21:03:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T21:03:05Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6771 docs/user/USAGE.md L182

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.

Pull request Shared files not compared
PR 4891 docs/user/USAGE.md
PR 5021 docs/user/USAGE.md
PR 5390 docs/user/USAGE.md
PR 5925 docs/user/USAGE.md
PR 6947 docs/user/USAGE.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6202219982 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6568#issuecomment-6202219982). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T21:03:05Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 6771](https://www.github.com/boykopovar/AnyPS5/pull/6771) | `docs/user/USAGE.md` [L182](https://github.com/boykopovar/AnyPS5/blob/29bfe31dd8a20650ba01059d44d96100c9b5e526/docs/user/USAGE.md#L182) | | | 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. | Pull request | Shared files not compared | |---|---| | [PR 4891](https://www.github.com/boykopovar/AnyPS5/pull/4891) | `docs/user/USAGE.md` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `docs/user/USAGE.md` | | [PR 5390](https://www.github.com/boykopovar/AnyPS5/pull/5390) | `docs/user/USAGE.md` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `docs/user/USAGE.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `docs/user/USAGE.md` |
xXPBSXx commented 2026-10-16 03:33:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-16T03:33:35Z.


@adriadam10 a short request for review of this documentation PR (one sentence in the Shader cache section of docs/user/USAGE.md). Head 50d8db46e is MERGEABLE / CLEAN, the Conventions, Eligibility and Intake checks are green. The statement is read from housekeeping() in ShaderDiskCache.cpp and backed by the cache sizes of our runs (about 4.2 GB after a 250 s run).

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6207477263 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6568#issuecomment-6207477263). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-16T03:33:35Z. --- @adriadam10 a short request for review of this documentation PR (one sentence in the Shader cache section of `docs/user/USAGE.md`). Head `50d8db46e` is `MERGEABLE` / `CLEAN`, the Conventions, Eligibility and Intake checks are green. The statement is read from `housekeeping()` in `ShaderDiskCache.cpp` and backed by the cache sizes of our runs (about 4.2 GB after a 250 s run). AI-assisted (Claude Code).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!6568
No description provided.