docs(usage): describe the texture cache budgets and APS5_TEXTURE_CACHE_MIB #6873

Merged
parl0v merged 1 commit from upstream-pr/6873 into main 2026-10-17 04:25:12 +00:00
parl0v commented 2026-10-16 15:09:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-16T15:09:42Z.


What

Adds a "Texture cache budget" section to docs/user/USAGE.md: how the automatic storage image and sampled texture budgets are chosen (StorageTextureBudget, SampledTextureBudget, TextureCacheBudget in ShaderResources.cpp), that APS5_TEXTURE_CACHE_MIB fixes both, and that a fixed budget above the automatic one can push allocations into host memory on an 8 GB card.

APS5_TEXTURE_CACHE_MIB is not described in the user documentation today. #6078 lists it in its developer environment reference (docs/dev/ENVIRONMENT.md); this is the user-facing description of what the automatic budget does and when not to override it.

The numbers in the section, Minecraft Dungeons II (PPSA16064 01.100.100), first world load and a 120 s scripted walk, RTX 4060 8 GB (NVIDIA 617.42), i5-14400F, 16 GB RAM, Windows 10 19045. Heap 0 reports a 7189 MiB budget, so the automatic storage image budget is 1797 MiB (the start-up [gpu] sampled texture cache budget line). Same libs in both arms, rows interleaved:

APS5_TEXTURE_CACHE_MIB placed in host memory (last placed in host memory line) walk FPS
3072 868 MiB, 878 MiB 4.46, 4.83
unset none 6.48, 6.07

Tested

  • tools/check_conventions.py --base upstream/main passes. Documentation only.

Checklist

  • Based on current main; no other open PR implements the same functions
  • 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 notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a (documentation)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4890328258 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6873). Originally posted by [parl0v](https://github.com/parl0v) on 2026-10-16T15:09:42Z. --- ### What Adds a "Texture cache budget" section to `docs/user/USAGE.md`: how the automatic storage image and sampled texture budgets are chosen (`StorageTextureBudget`, `SampledTextureBudget`, `TextureCacheBudget` in `ShaderResources.cpp`), that `APS5_TEXTURE_CACHE_MIB` fixes both, and that a fixed budget above the automatic one can push allocations into host memory on an 8 GB card. `APS5_TEXTURE_CACHE_MIB` is not described in the user documentation today. #6078 lists it in its developer environment reference (`docs/dev/ENVIRONMENT.md`); this is the user-facing description of what the automatic budget does and when not to override it. The numbers in the section, Minecraft Dungeons II (PPSA16064 01.100.100), first world load and a 120 s scripted walk, RTX 4060 8 GB (NVIDIA 617.42), i5-14400F, 16 GB RAM, Windows 10 19045. Heap 0 reports a 7189 MiB budget, so the automatic storage image budget is 1797 MiB (the start-up `[gpu] sampled texture cache budget` line). Same libs in both arms, rows interleaved: | `APS5_TEXTURE_CACHE_MIB` | placed in host memory (last `placed in host memory` line) | walk FPS | |---|---|---| | 3072 | 868 MiB, 878 MiB | 4.46, 4.83 | | unset | none | 6.48, 6.07 | ### Tested - `tools/check_conventions.py --base upstream/main` passes. Documentation only. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a (documentation) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-16 15:29:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T15:29:45Z.


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 6946 docs/user/USAGE.md L187

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 6771 docs/user/USAGE.md
PR 6947 docs/user/USAGE.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218863185 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6873#issuecomment-6218863185). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T15:29:45Z. --- <!-- 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 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `docs/user/USAGE.md` [L187](https://github.com/boykopovar/AnyPS5/blob/aeb8f62b865d893b771b6946084b7cdbad4e0ffd/docs/user/USAGE.md#L187) | | | 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 6771](https://www.github.com/boykopovar/AnyPS5/pull/6771) | `docs/user/USAGE.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `docs/user/USAGE.md` |
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!6873
No description provided.