launcher: prune old caches, compile only used pipelines, keep data out of source trees #200

Open
avalondrey wants to merge 1 commit from upstream-pr/200 into amd
avalondrey commented 2026-12-04 14:46:49 +00:00 (Migrated from github.com)

Imported from eikkapine/jaxe. Originally posted by avalondrey on 2026-12-04T14:46:49Z.


launcher: prune old caches, compile only used pipelines, keep data out of source trees

  • Add an optional "Clean old caches" button and -Clean switch that removes
    oversized run logs / frame files, PowerShell's rebuildable caches, caches
    left by earlier installs, and AMD's DxcCache.old. It never touches saves,
    the active cache, or the game files.
  • Compile only the pipelines earlier runs actually drew with (warm --used)
    instead of every pipeline the title ever created (~85,000), which makes the
    first precompile after an update much shorter.
  • When started from a source checkout (a .jaxe-root ancestor), keep the
    runtime cache and saves in %LOCALAPPDATA%\jaxe instead of the source tree,
    as required by docs/asset-policy.md. Release folders are unchanged.
  • Check updates against the version in the AMD asset name, since a release can
    bump only its NVIDIA asset while the AMD zip keeps the previous version.
  • Fix the launcher crash caused by naming the clean button $clean, which
    collides with the script's [switch]$Clean parameter.

Tested on Windows 11 with an RX 7800 XT: the launcher opens, -Clean reports the
freed space, the pipeline cache stays valid (warm --used -> 0 to make), and
saves/caches are preserved.

<!-- greyfinch-sync:eikkapine/jaxe:issue:5648597904 --> Imported from [eikkapine/jaxe](https://github.com/eikkapine/jaxe/pull/200). Originally posted by [avalondrey](https://github.com/avalondrey) on 2026-12-04T14:46:49Z. --- launcher: prune old caches, compile only used pipelines, keep data out of source trees - Add an optional "Clean old caches" button and `-Clean` switch that removes oversized run logs / frame files, PowerShell's rebuildable caches, caches left by earlier installs, and AMD's DxcCache.old. It never touches saves, the active cache, or the game files. - Compile only the pipelines earlier runs actually drew with (`warm --used`) instead of every pipeline the title ever created (~85,000), which makes the first precompile after an update much shorter. - When started from a source checkout (a `.jaxe-root` ancestor), keep the runtime cache and saves in %LOCALAPPDATA%\jaxe instead of the source tree, as required by docs/asset-policy.md. Release folders are unchanged. - Check updates against the version in the AMD asset name, since a release can bump only its NVIDIA asset while the AMD zip keeps the previous version. - Fix the launcher crash caused by naming the clean button `$clean`, which collides with the script's `[switch]$Clean` parameter. Tested on Windows 11 with an RX 7800 XT: the launcher opens, -Clean reports the freed space, the pipeline cache stays valid (`warm --used` -> 0 to make), and saves/caches are preserved.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/200:upstream-pr/200'
git switch 'upstream-pr/200'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'amd'
git merge --no-ff 'upstream-pr/200'
git switch 'upstream-pr/200'
git rebase 'amd'
git switch 'amd'
git merge --ff-only 'upstream-pr/200'
git switch 'upstream-pr/200'
git rebase 'amd'
git switch 'amd'
git merge --no-ff 'upstream-pr/200'
git switch 'amd'
git merge --squash 'upstream-pr/200'
git switch 'amd'
git merge --ff-only 'upstream-pr/200'
git switch 'amd'
git merge 'upstream-pr/200'
git push origin 'amd'
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
eikkapine/jaxe!200
No description provided.