fix(builder): reuse the launcher cache on direct start #2781
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
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/Longshot!2781
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:direct-launch-cache"
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?
Summary
Opening Longshot directly from an installed version could use a different shader cache from Play in the launcher when the player configured a custom build-files folder. Use the same launcher-library lookup as the profile resolver to choose the builder cache in that installation.
This covers installed and marked portable libraries. The cache root feeds the existing build work folders, build stores, and shader caches. Explicit environment paths keep their existing precedence for a direct start. See #2773 and #2768.
Testing
Tested: Linux, GeForce RTX 3090, NVIDIA 620.70.06. Started an existing version through the launcher’s Play shortcut and by opening the built game directly. Both reached the game with the same profile, build, configured SPIR-V store and per-driver shader cache. The game executable and build record kept their original timestamps. The regression test failed before the fix and passed with it. The locked builder and build-driver tests, focused Clippy and formatting passed before replaying the patch on current main.
Still to test:
Measurements
This corrects path selection. Performance was not measured.
Risks
A directly started installed version uses its launcher’s current cache location. A moved cache may need to warm up if the new location is empty. Standalone cache discovery uses the same rules as before.
Checklist
Ready for review
main. The title is a Conventional Commit.mise run testpasses. The strict suite is queued.third_party/untouched.When it applies
Assisted-by:trailers.Tested in game: Linux, GeForce RTX 3090, NVIDIA 620.70.06. Launcher Play and opening the game executable directly both reached the game with the same profile, existing build, configured SPIR-V store, and driver-specific shader cache.
Possibly related, for context:
WIP: fix(builder): reuse the launcher cache on direct startto fix(builder): reuse the launcher cache on direct start