Repository navigation
run_game_wine.sh: keep the drivers' shader cache from run to run (WINE-RUN-SHADER-CACHE) - #2436
Open
kawaii-shakal wants to merge 2 commits into
Open
kawaii-shakal wants to merge 2 commits into
kawaii-shakal wants to merge 2 commits into
Conversation
…ache, or the caller's XDG_CACHE_HOME) Finding by z3r0rc in ProjectLeonida#1608: the launcher set XDG_CACHE_HOME to a new folder in each run folder, so NVIDIA's GLCache (and Mesa's shader cache) started empty on every launch. The caller's XDG_CACHE_HOME is now used when it is set, --cache DIR names one, and --cache fresh keeps the old cold-cache behaviour. session.txt says which. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JPqXc6svM4pbBagTsVEYA3
Contributor
|
#2436 | head 6fe0124 | python -I tests/test_run_game_wine.py | red: ModuleNotFoundError: No module named 'fcntl' (PR branch predates main's Windows skip guard) | green: OK (skipped=12 on Windows 11 after merging main's Linux-only guard) | full suite: same as main (514/521 standalone stdlib tests passed, 0 new failures vs main 02f71cc; compileall=0; node viewer_streaming=0) | Windows 11, Python 3.14.7, no game files | AI-assisted: yes, Antigravity (Gemini)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: WINE-RUN-SHADER-CACHE (finding by z3r0rc in #1608, its shader-cache part)
What and why
scripts/run_game_wine.shexportedXDG_CACHE_HOME=$RUN/session/cache, a new folder in each run folder. NVIDIA'sGLCacheand Mesa's shader cache live underXDG_CACHE_HOME, so every launch started with an empty driver cache andcompiled its pipelines again.
XDG_CACHE_HOMEis used when it is set;--cache DIRnames a folder instead. Both are kept from runto run.
--cache fresh, or neither of the two, gives the old behaviour: a new folder in the run folder, for a cold-cachemeasurement.
shader cache: kept in DIRorshader cache: fresh).--helpanddocs/linux_proton.mddescribe it.Not in this PR: the compile-gate defaults from the same finding (
LEONIDA_COMPILE_HELPER,LEONIDA_ASYNC_PIPELINES),which need a retail run to judge.
Tested
tests/test_run_game_wine.py, three new cases against the script's stubs: a fresh cache by default; the caller'scache kept across two runs (the stub
wineappends tonvidia/GLCache, and the second run finds the first'sline);
--cache DIRand--cache freshover a caller'sXDG_CACHE_HOME.AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.docs/design.md. (n/a: no translator change)🤖 Generated with Claude Code