diff options
| author | Дмитрий Корлодный <deusex1998@gmail.com> | 2026-11-30 08:14:20 +0000 |
|---|---|---|
| committer | Дмитрий Корлодный <deusex1998@gmail.com> | 2026-11-30 08:14:20 +0000 |
| commit | 206bb4b68825cfbd586a09e5f6768be98655bbe2 (patch) | |
| tree | ccb7aa28ff059dcb352a61ebb46bbda909c2bd95 /docs/linux_proton.md | |
| parent | caf4fc3698927c0e529209ab08c2bceb4dc1c672 (diff) | |
run_game_wine.sh: --cache fresh is cold: drops the drivers' cache variables and an old session/cache (WINE-RUN-SHADER-CACHE)
Review follow-up (timbot103):
- A driver's own variable wins over XDG_CACHE_HOME, so a warm MESA_SHADER_CACHE_DIR, MESA_GLSL_CACHE_DIR or
__GL_SHADER_DISK_CACHE_PATH reached Wine under --cache fresh. A fresh run now unsets them; with a kept cache the
caller's variables stay and win. --help and docs/linux_proton.md say so.
- A run folder whose earlier launch did not start is accepted again: a fresh run now empties its session/cache, and
session.txt is written anew instead of getting a second "shader cache:" line.
- test_run_game_wine_safety's shared fixture passes --cache fresh, so an inherited XDG_CACHE_HOME stays out.
Two new tests in tests/test_run_game_wine.py fail with the old script and pass with this one.
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.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/linux_proton.md b/docs/linux_proton.md index 39791bed1..8117a01f5 100644 --- a/docs/linux_proton.md +++ b/docs/linux_proton.md | |||
| @@ -101,6 +101,9 @@ What it does: | |||
| 101 | caller's when it is set, or the folder `--cache DIR` names; both are kept from run to run, so a later launch does | 101 | caller's when it is set, or the folder `--cache DIR` names; both are kept from run to run, so a later launch does |
| 102 | not compile every pipeline in the driver again. Without either, or with `--cache fresh`, it is a new folder in the | 102 | not compile every pipeline in the driver again. Without either, or with `--cache fresh`, it is a new folder in the |
| 103 | run folder, for a cold-cache run. The summary's first line says which (`shader cache: kept in DIR` or `fresh`). | 103 | run folder, for a cold-cache run. The summary's first line says which (`shader cache: kept in DIR` or `fresh`). |
| 104 | The flag picks the XDG cache root; a driver's own variable (`MESA_SHADER_CACHE_DIR`, the older | ||
| 105 | `MESA_GLSL_CACHE_DIR`, NVIDIA's `__GL_SHADER_DISK_CACHE_PATH`) wins over it. A fresh run unsets them and empties | ||
| 106 | the run folder's `session/cache`, so it is cold; with a kept cache the caller's variables stay. | ||
| 104 | - **Traces:** `gta6rt --run` with `--trace` and `--trace-d3d12`, a fresh `--overlay` and save folder in the run | 107 | - **Traces:** `gta6rt --run` with `--trace` and `--trace-d3d12`, a fresh `--overlay` and save folder in the run |
| 105 | folder. Every other `LEONIDA_*` variable reaches the runtime unchanged, so `LEONIDA_INPUT_SCRIPT=a@210,a@240` | 108 | folder. Every other `LEONIDA_*` variable reaches the runtime unchanged, so `LEONIDA_INPUT_SCRIPT=a@210,a@240` |
| 106 | presses A as above. Arguments after `--` go to `gta6rt`. | 109 | presses A as above. Arguments after `--` go to `gta6rt`. |