upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/linux_proton.md
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-11-27 06:47:26 +0000
committerClaude <noreply@anthropic.com>2026-11-27 06:47:26 +0000
commit6fe01249f668cbc5b5b659d5fc91e87c754f81f7 (patch)
tree5e7a1b4afa2db5d3979d8c1ac86439a1ef59b084 /docs/linux_proton.md
parentd1dff7949be62b6609c3c2ca937df7f50fbf1305 (diff)
run_game_wine.sh: keep the drivers' shader cache from run to run (--cache, or the caller's XDG_CACHE_HOME)
Finding by z3r0rc in #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
Diffstat (limited to 'docs/linux_proton.md')
-rw-r--r--docs/linux_proton.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/linux_proton.md b/docs/linux_proton.md
index 42487ed49..2e2a7d643 100644
--- a/docs/linux_proton.md
+++ b/docs/linux_proton.md
@@ -98,6 +98,10 @@ What it does:
98- **Limits:** a hard time limit (`--seconds`, then SIGTERM and SIGKILL 10 s later), a lock so one run happens at a 98- **Limits:** a hard time limit (`--seconds`, then SIGTERM and SIGKILL 10 s later), a lock so one run happens at a
99 time (`--lock`, by default in `XDG_RUNTIME_DIR`), and teardown of Wine and the whole session on exit, time-out or 99 time (`--lock`, by default in `XDG_RUNTIME_DIR`), and teardown of Wine and the whole session on exit, time-out or
100 signal. 100 signal.
101- **Shader cache:** the session's `XDG_CACHE_HOME`, where NVIDIA's `GLCache` and Mesa's shader cache go, is the
102 caller's when it is set, or the folder `--cache DIR` names; both are kept from run to run, so a later launch does
103 not compile every pipeline in the driver again. Without either, or with `--cache fresh`, it is a new folder in the
104 run folder, for a cold-cache run. The summary's first line says which (`shader cache: kept in DIR` or `fresh`).
101- **Traces:** `gta6rt --run` with `--trace` and `--trace-d3d12`, a fresh `--overlay` and save folder in the run 105- **Traces:** `gta6rt --run` with `--trace` and `--trace-d3d12`, a fresh `--overlay` and save folder in the run
102 folder. Every other `LEONIDA_*` variable reaches the runtime unchanged, so `LEONIDA_INPUT_SCRIPT=a@210,a@240` 106 folder. Every other `LEONIDA_*` variable reaches the runtime unchanged, so `LEONIDA_INPUT_SCRIPT=a@210,a@240`
103 presses A as above. Arguments after `--` go to `gta6rt`. 107 presses A as above. Arguments after `--` go to `gta6rt`.