launcher: NVIDIA shader cache shown, ray tracing popup, beta FSR 4 switch (LAUNCHER-NV-CACHE) #3520

Code

Clone this repository

Checkout

From your project repository, check out a new branch and test the changes.

git fetch -u origin "+refs/pull/3520/head:oreofr/launcher-global-nv"
git switch "oreofr/launcher-global-nv"
Open
leonida/mandy
OreoFR wants to merge 4 commits from oreofr/launcher-global-nv into main AGit

This branch is out-of-date with the base branch

Conversation
Reviewers 0 approvals
  • No reviewers
Details
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3520/head:oreofr/launcher-global-nv'
git switch 'oreofr/launcher-global-nv'
Member

Item: LAUNCHER-NV-CACHE (asked by OreoFR, 2026-12-05). The global launcher PR for now. Depends on: #3519 (leonida nv-profile).

NVIDIA shader cache, shown in Settings (next to the Direct3D 12 runtime)

  • Read in the background with leonida nv-profile --cache. Unlimited shows in green; "Limited: set Unlimited" shows in amber.
  • The tip names NVIDIA Control Panel's Shader Cache Size.
  • Why it matters: a limited cache fills with older shaders, then keeps nothing new, and the game compiles while it runs however much was precompiled.
  • Without a runtime that knows the command, the row says "Unknown".

Ray tracing + PLAY on NVIDIA

  • Runs only when the shader heap is still the driver's 512 MiB (nv-profile --check).
  • A popup says why it matters: ray tracing fills that heap and the device can be lost (0x887A0005). It offers 1 GB on cards of 8 GB or less, 2 GB above.
  • Yes: the start goes on, and play-nvidia.ps1 (#3519) has Windows ask for the administrator rights.
  • No: this start goes on without asking (LEONIDA_NV_PROFILE=0).

Beta only: FSR 4 switch

  • Shown on the beta copy, and only on the AMD cards the beta's script gives FSR 4 to (fsr4_card, same list as Test-BetaFsr4Card).
  • On by default. Off: PLAY passes LEONIDA_UPSCALE=stretch.
  • It says "not tested yet".
  • HDR10 is not listed: the beta has it on by default, and it acts only with Windows HDR on.
  • Why in the main launcher: the installed app runs the main copy's launcher on either channel (repo_launcher), so rows in the beta copy's launcher were never shown. I checked this on the installed app by switching to beta and back.

Not changed: after a switch between main and beta, the launcher already checks for updates. The switch restarts it, and every start checks.

Tested (Windows 11)

  • tests/test_launcher_nv_and_fsr4.py (new), tests/test_leonida_launcher.py, tests/test_launcher_*.py, tests/test_i18n_*.py: OK.
  • Texts in de, es, fr, pt.
  • Not yet seen on screen.
  • Seen while testing: on this PC, the installed app (v1.0.1) shows the old default address git.leonida.now in Settings, though both copies carry clearfieldswimming.com. It may be running its own bundled launcher instead of the copy's. If so, launcher changes reach installed-app players only with a new Mandy Setup. Not yet explained.

AI-assisted (oreofr-agent).

🤖 Generated with Claude Code

Item: LAUNCHER-NV-CACHE (asked by OreoFR, 2026-12-05). The global launcher PR for now. Depends on: #3519 (`leonida nv-profile`). **NVIDIA shader cache, shown in Settings** (next to the Direct3D 12 runtime) - Read in the background with `leonida nv-profile --cache`. Unlimited shows in green; "Limited: set Unlimited" shows in amber. - The tip names NVIDIA Control Panel's Shader Cache Size. - Why it matters: a limited cache fills with older shaders, then keeps nothing new, and the game compiles while it runs however much was precompiled. - Without a runtime that knows the command, the row says "Unknown". **Ray tracing + PLAY on NVIDIA** - Runs only when the shader heap is still the driver's 512 MiB (`nv-profile --check`). - A popup says why it matters: ray tracing fills that heap and the device can be lost (0x887A0005). It offers 1 GB on cards of 8 GB or less, 2 GB above. - Yes: the start goes on, and `play-nvidia.ps1` (#3519) has Windows ask for the administrator rights. - No: this start goes on without asking (`LEONIDA_NV_PROFILE=0`). **Beta only: FSR 4 switch** - Shown on the beta copy, and only on the AMD cards the beta's script gives FSR 4 to (`fsr4_card`, same list as `Test-BetaFsr4Card`). - On by default. Off: PLAY passes `LEONIDA_UPSCALE=stretch`. - It says "not tested yet". - HDR10 is not listed: the beta has it on by default, and it acts only with Windows HDR on. - Why in the main launcher: the installed app runs the main copy's launcher on either channel (`repo_launcher`), so rows in the beta copy's launcher were never shown. I checked this on the installed app by switching to beta and back. **Not changed:** after a switch between main and beta, the launcher already checks for updates. The switch restarts it, and every start checks. **Tested** (Windows 11) - `tests/test_launcher_nv_and_fsr4.py` (new), `tests/test_leonida_launcher.py`, `tests/test_launcher_*.py`, `tests/test_i18n_*.py`: OK. - Texts in de, es, fr, pt. - **Not yet seen on screen.** - **Seen while testing:** on this PC, the installed app (v1.0.1) shows the old default address `git.leonida.now` in Settings, though both copies carry `clearfieldswimming.com`. It may be running its own bundled launcher instead of the copy's. If so, launcher changes reach installed-app players only with a new Mandy Setup. Not yet explained. AI-assisted (oreofr-agent). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Settings (next to the Direct3D 12 runtime) shows NVIDIA's shader cache size as the driver has it,
read in the background with `leonida nv-profile --cache` (#3519): Unlimited in green, "Limited: set
Unlimited" in amber, with a tip naming NVIDIA Control Panel's setting. Limited, the cache fills with
older shaders and keeps nothing new, and the game compiles while it runs however much was precompiled.

PLAY with ray tracing on an NVIDIA card whose shader heap is still the driver's 512 MiB (`nv-profile
--check`) first says why it matters (ray tracing fills it and the device can be lost, 0x887A0005) and
asks. Yes: the start goes on and play-nvidia.ps1 has Windows ask for the administrator rights to raise
it (1 GB on cards of 8 GB or less, 2 GB above). No: this start goes on without asking
(LEONIDA_NV_PROFILE=0). Without a runtime that knows the command, nothing is shown or asked.

Texts in de, es, fr, pt. Depends on: #3519.
Tested: tests/test_leonida_launcher.py (308), tests/test_launcher_*.py and tests/test_i18n_*.py
(test_launcher_menu_sync fails the same on main without this change). Not clicked through yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The installed app runs the main copy's launcher on either channel (repo_launcher takes the main
folder), so rows added to the beta copy's launcher were never shown (seen on the installed app,
2026-12-05: the channel picker switched to beta and back, the rows missing). They are here instead,
shown only when the launcher runs on the beta copy (CHANNEL "beta"): FSR 4 (AMD) "Automatic on
supported AMD cards, not tested yet" and HDR10 "On when Windows HDR is on, not tested yet", no choice
to make, each tip naming the variable that turns it off (LEONIDA_UPSCALE=stretch, LEONIDA_HDR=0).
Texts in fr, es, pt, de.

Tested: tests/test_leonida_launcher.py, tests/test_launcher_*.py, tests/test_i18n_*.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As OreoFR asked: HDR10 leaves the launcher's list (the beta has it on by default, and it acts only
with Windows HDR on). FSR 4 becomes a switch, shown only on the beta copy and only when the card is one
the beta's play-nvidia.ps1 gives FSR 4 to (fsr4_card, its Test-BetaFsr4Card: Radeon RX 6000/7000/9000,
680M-890M-style and 80x0S): on by default; off, PLAY passes LEONIDA_UPSCALE=stretch and the picture is
stretched as before. It says "not tested yet". New setting "fsr4" (default on).

The update check after a switch between main and beta was already there: the switch restarts the
launcher, and every start checks for updates (seen on the installed app: "checked just now" right after
the switch).

Tested: tests/test_launcher_nv_and_fsr4.py (new: the card list, nv-profile's answers and the cache row),
tests/test_leonida_launcher.py, tests/test_launcher_*.py, tests/test_i18n_*.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Seen on OreoFR's PC: Settings showed https://git.leonida.now/leonida/mandy as the update source, though
both copies carry clearfieldswimming.com and Reset to default gives it. The saved repo_url held the old
address in full (saved by an earlier launcher), and the field showed whatever was saved. A saved
earlier home (is_default_repo: the default or one of OLD_DEFAULT_REPOS) is now shown as DEFAULT_REPO;
the next Save then stores "" as for the default. Updates were never affected: source_url already took
an old default for the current one.

Tested: tests/test_leonida_launcher.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
First-time contributor

Verified at head 07fe21be, merge base 93b9d90a (the PR predates #3294's merge; not rebased). tests/test_launcher_nv_and_fsr4.py is absent at 93b9d90a.

python -I -m unittest discover -s tests -p test_launcher_nv_and_fsr4.py -v
#   Ran 4 tests in 0.009s — OK
python -I -m unittest discover -s tests -p test_launcher_d3d12_runtime.py   # Ran 18 tests — OK
python -I -m unittest discover -s tests -p test_launcher_language_env.py    # Ran 7 tests — OK
python -I -m unittest discover -s tests -p test_launcher_whats_new.py       # Ran 22 tests — OK

What the new tests cover. fsr4_card (the beta list answers true for RX 7900 XTX, RX 6600, RX 9070 XT, 780M, 8060S; false for RX 5700 XT, "AMD Radeon(TM) Graphics", RTX 4070, Arc A770, empty), nv_profile_answer (exit 0/1/2 passed through, 3 and a missing runtime answer None), and the three tones of nv_cache_status. The three neighbouring launcher suites were run individually to check the surfaces this diff edits.

Host note. A full test_launcher*.py discovery run hung here and was killed after 15 min; the tkinter-based test_launcher_menu_sync/test_launcher_play_log suites are the likely cause. That is a limitation of this machine, not of the PR, and is why the suites were run one at a time.

git diff --check against 93b9d90a: clean. scripts/check_no_game_data.py on the six changed files: clean.

Limits. The Settings row, the PLAY popup and the FSR 4 switch are GUI paths; no launcher window was opened, and the four new tests are helper-level only. Per the PR's Depends on: #3519, the nv-profile calls are stubs here and were not run against a driver in this check.

AI-assisted (Hy4 flash). GPU: RTX 5060 Laptop (driver 621.40) and Radeon 780M present; the tests create no device and the 780M's name is used only as a string. No game data used or needed.

Verified at head 07fe21be, merge base 93b9d90a (the PR predates #3294's merge; not rebased). `tests/test_launcher_nv_and_fsr4.py` is absent at 93b9d90a. ```powershell python -I -m unittest discover -s tests -p test_launcher_nv_and_fsr4.py -v # Ran 4 tests in 0.009s — OK python -I -m unittest discover -s tests -p test_launcher_d3d12_runtime.py # Ran 18 tests — OK python -I -m unittest discover -s tests -p test_launcher_language_env.py # Ran 7 tests — OK python -I -m unittest discover -s tests -p test_launcher_whats_new.py # Ran 22 tests — OK ``` **What the new tests cover.** `fsr4_card` (the beta list answers true for RX 7900 XTX, RX 6600, RX 9070 XT, 780M, 8060S; false for RX 5700 XT, "AMD Radeon(TM) Graphics", RTX 4070, Arc A770, empty), `nv_profile_answer` (exit 0/1/2 passed through, 3 and a missing runtime answer `None`), and the three tones of `nv_cache_status`. The three neighbouring launcher suites were run individually to check the surfaces this diff edits. **Host note.** A full `test_launcher*.py` discovery run hung here and was killed after 15 min; the tkinter-based `test_launcher_menu_sync`/`test_launcher_play_log` suites are the likely cause. That is a limitation of this machine, not of the PR, and is why the suites were run one at a time. `git diff --check` against 93b9d90a: clean. `scripts/check_no_game_data.py` on the six changed files: clean. **Limits.** The Settings row, the PLAY popup and the FSR 4 switch are GUI paths; no launcher window was opened, and the four new tests are helper-level only. Per the PR's `Depends on: #3519`, the `nv-profile` calls are stubs here and were not run against a driver in this check. AI-assisted (Hy4 flash). GPU: RTX 5060 Laptop (driver 621.40) and Radeon 780M present; the tests create no device and the 780M's name is used only as a string. No game data used or needed.
Sign in to join this conversation.
No description provided.