Launcher: clean old caches, compile only used pipelines, keep game data out of source checkouts #2

Closed
avalondrey51 wants to merge 1 commit from launcher-cache-cleanup into amd
First-time contributor

Launcher: clean old caches, compile only used pipelines, keep game data out of source checkouts

Base: amd at efc43ea (AMD build v2026.12.05.1).

This is a launcher-only change. It adds a safe cleanup path for the caches that
grow over time, and keeps a source checkout from collecting game-derived data.

Changes

  • Clean old caches (-Clean and a button in the launcher):
    removes only rebuildable data:

    • cache-old-* copies left by Fix Shaders;
    • jaxe-prep-*.cmd batches left by an interrupted precompile;
    • old run logs / frame-time files (newest ten of each stay, run logs + frame
      times together under 200 MB);
    • PowerShell module/command analysis caches;
    • old %LOCALAPPDATA%\victory caches and AMD\DxcCache.old.

    The active cache, saves, settings and game files are never touched.

  • Automatic log pruning on every start (same rules as above, without the
    PowerShell/victory/AMD parts).

  • Test-SourceTree: when jaxe.ps1 runs from a checkout (a folder with
    .jaxe-root), cache and saves go to %LOCALAPPDATA%\jaxe instead of inside
    the source tree. A release folder keeps them beside the launcher, as before.
    Existing saves from earlier checkout runs are copied over once.

  • warm --used during precompile: compile the pipelines earlier runs drew
    with (about 4,600) instead of every known pipeline (~88,000). The rest are
    still recorded and made on first use.

  • In-place updates keep jaxe.ps1 as well as settings, saves and cache,
    so local launcher changes survive an update.

  • Update check reads the AMD asset version (not the release tag). A release
    can bump only the NVIDIA asset (tag v2026.12.05.2) while the AMD zip stays
    v2026.12.05.1; the launcher then no longer offers a false update.

  • jaxe Clean.cmd (new): double-click helper for jaxe.ps1 -Clean.

  • Small fixes: $cleanBtn instead of $clean (would collide with the new
    [switch]$Clean), fonts created outside the -Property hashtable, and
    Import Save / Reset Shaders / Copy Old Saves use the new cache/data roots.

Testing

Windows 11, AMD RX 7800 XT, from a jaxe checkout:

  • PowerShell parser: OK.
  • Launcher window opens (jaxe v2026.12.05.1).
  • jaxe.ps1 -Clean: exit 0, report printed, only rebuildable data removed.
  • jaxe.exe warm --used --limit 10: 10 pipelines compiled, then 0 to make;
    the cache book is written under the new translator fingerprint.
  • Patch applied to a clean gtahub/amd worktree; the result is identical to the
    tested launcher (line endings normalised).

No game files, assets, keys or machine-specific paths are included.

# Launcher: clean old caches, compile only used pipelines, keep game data out of source checkouts Base: `amd` at `efc43ea` (AMD build `v2026.12.05.1`). This is a launcher-only change. It adds a safe cleanup path for the caches that grow over time, and keeps a source checkout from collecting game-derived data. ## Changes - **Clean old caches** (`-Clean` and a button in the launcher): removes only rebuildable data: - `cache-old-*` copies left by Fix Shaders; - `jaxe-prep-*.cmd` batches left by an interrupted precompile; - old run logs / frame-time files (newest ten of each stay, run logs + frame times together under 200 MB); - PowerShell module/command analysis caches; - old `%LOCALAPPDATA%\victory` caches and `AMD\DxcCache.old`. The active cache, saves, settings and game files are never touched. - **Automatic log pruning on every start** (same rules as above, without the PowerShell/victory/AMD parts). - **`Test-SourceTree`**: when `jaxe.ps1` runs from a checkout (a folder with `.jaxe-root`), cache and saves go to `%LOCALAPPDATA%\jaxe` instead of inside the source tree. A release folder keeps them beside the launcher, as before. Existing saves from earlier checkout runs are copied over once. - **`warm --used`** during precompile: compile the pipelines earlier runs drew with (about 4,600) instead of every known pipeline (~88,000). The rest are still recorded and made on first use. - **In-place updates keep `jaxe.ps1`** as well as settings, saves and cache, so local launcher changes survive an update. - **Update check reads the AMD asset version** (not the release tag). A release can bump only the NVIDIA asset (tag `v2026.12.05.2`) while the AMD zip stays `v2026.12.05.1`; the launcher then no longer offers a false update. - `jaxe Clean.cmd` (new): double-click helper for `jaxe.ps1 -Clean`. - Small fixes: `$cleanBtn` instead of `$clean` (would collide with the new `[switch]$Clean`), fonts created outside the `-Property` hashtable, and Import Save / Reset Shaders / Copy Old Saves use the new cache/data roots. ## Testing Windows 11, AMD RX 7800 XT, from a jaxe checkout: - PowerShell parser: OK. - Launcher window opens (`jaxe v2026.12.05.1`). - `jaxe.ps1 -Clean`: exit 0, report printed, only rebuildable data removed. - `jaxe.exe warm --used --limit 10`: 10 pipelines compiled, then `0 to make`; the cache book is written under the new translator fingerprint. - Patch applied to a clean `gtahub/amd` worktree; the result is identical to the tested launcher (line endings normalised). No game files, assets, keys or machine-specific paths are included.
Adds a Clean button and -Clean mode (only rebuildable data), Test-SourceTree so a checkout keeps cache/data in %LOCALAPPDATA%, log pruning, warm --used, keeps jaxe.ps1 during in-place updates, and reads the AMD asset version instead of the release tag. Adds release/jaxe Clean.cmd.
MrEikka closed this pull request 2026-12-06 00:43:31 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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.

Dependencies

No dependencies set

Reference
MrEikka/jaxe!2
No description provided.