fix(storage): count and clear the compressed shader store #397
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!397
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:fix/compressed-shader-store"
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?
Why
Longshot #3023 keeps the shared shader store compressed, in new files (
spirv.zpackandspirv.zidx, format 2). Storage only knowsspirv.packandspirv.idx, so it would neither count nor free the new files. This should land before #3023 reaches players.What changed
src/storage/shaders.rs: each format's pack and index are checked on their own (magic, the name's own version, one generation). A folder can hold both, since builds from before #3023 keep using format 1.spirv.pack.programs-*, the same names in both formats) are listed when either pair is there.docs/paths.mdnames both.Nothing changes on screen except the size Storage shows. It does not clear the old files on their own: clearing removes both formats, as clearing the shader store did before.
Testing
Linux:
cargo fmt --check,cargo clippy --locked --workspace --all-targets -- -D warnings: clean.tests/test_launcher_core.py: 326 passed, 2 failed, 1 ignored. The two (adding_the_same_release_twice_creates_distinct_instances,copies_verified_artifacts_without_sharing_files_or_profile_data) refused because anotherlongshot-builderwas running on the PC; each passes when run alone, here and onmain.compressed_store_is_cleared_with_or_without_the_uncompressed_one: passes.test_release.py: 46 passed.Not done: not tried in the running launcher against a real store, and not run on Windows.
🤖 Generated with Claude Code
Possibly related, for context: