scripts: play-linux starts with the Windows launcher's whole play set #3316

Closed
aznohonza wants to merge 1 commit from upstream-pr/3316 into main
aznohonza commented 2026-12-03 10:36:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aznohonza on 2026-12-03T10:36:48Z.


Claimed in the coordination issue as: not claimed — found while bringing the title up on Linux/NVIDIA; the author asked for it to be opened without a claim entry.

What and why

scripts/play-linux.sh started the title with a 15-setting subset of the play set that
d3d12/scripts/play-nvidia.ps1 measured for the Windows launcher. One of those 15 even contradicted the play set:
LEONIDA_TEXTURE_NO_WAIT=1 here against 0 there (a texture loaded once at the start could stay empty for the run).

The settings the Linux launcher lacked are most of the prologue's frame under Wine: the indirect argument clamp's
batching and window (INDIRECT_BATCH, INDIRECT_WINDOW), the paired-wave program list (PAIRED_FOR, 45 hashes), and
the copy, submission and port switches (RELAY_COPY, SUBMIT_SENDER, JOIN_COPIES, PORT_GUARD, PORT_JOURNAL,
PORT_DESCRIPTORS, THIN, JOIN_PARTS, UPLOAD_AHEAD, …).

The defaults are now the ps1's $settings table in that table's own order, so the two files can be compared line by
line, with the measurement and the TEXTURE_NO_WAIT contradiction in the comment above them. An exported LEONIDA_*
still wins over every default, as before.

tests/test_play_linux_defaults.py now reads the ps1's table and holds every value of it against what the launcher
gives the runtime (the mock Wine dumps its LEONIDA_* environment instead of two named flags), and one more test
checks that a setting given for a single start still wins. On unmodified main the new test fails for 38 of the 49
settings; with this change all four tests pass.

Tested

RTX 3060 12 GB, Debian 13 (kernel 6.12), Wine 11.0 with VKD3D-Proton 3.2.0, the title's own copy 1.0.2.1 in its
Xbox Series S profile, the prologue cutscene, 20 minutes each way, same machine and same save:

before (the subset) after (the play set)
median frame time 84.3 ms (11.9 fps) 59.4 ms (16.8 fps)
95th percentile 1,455 ms 371 ms
VRAM peak 6,572 MB 6,954 MB

No device loss, no unhandled exception in either run (0x887A0005 is the failure the Series X profile has there; the
Series S profile did not hit it in 20 minutes). The frame times come from the runtime's own window title and its
frametime lines in the log, not from a screen recording.

Also run: sh -n scripts/play-linux.sh, python -I tests/test_play_linux_defaults.py, tests/test_play_linux.py,
tests/test_play_linux_wine_check.py, tests/test_leonida_launcher.py (3 skipped, no Tk on this box),
python -I scripts/check_no_game_data.py on both files.

GPUs tested: NVIDIA GeForce RTX 3060 12 GB (GA106), NVIDIA 620.70.10 open kernel module, Debian 13; no other GPU.

AI-assisted: yes — written by DeepSeek v4.1 Flash (coding agent) under the author's direction, from the author's own
runs on his card; no separate reviewer agent was run, so please review the numbers and the ps1/play-linux.sh pairing
with that in mind.

Checklist

  • Based on current main and merges cleanly (branched from d9b618f10).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. — no translator
    rule here.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5624765065 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3316). Originally posted by [aznohonza](https://github.com/aznohonza) on 2026-12-03T10:36:48Z. --- Claimed in the coordination issue as: not claimed — found while bringing the title up on Linux/NVIDIA; the author asked for it to be opened without a claim entry. ### What and why `scripts/play-linux.sh` started the title with a 15-setting subset of the play set that `d3d12/scripts/play-nvidia.ps1` measured for the Windows launcher. One of those 15 even contradicted the play set: `LEONIDA_TEXTURE_NO_WAIT=1` here against `0` there (a texture loaded once at the start could stay empty for the run). The settings the Linux launcher lacked are most of the prologue's frame under Wine: the indirect argument clamp's batching and window (`INDIRECT_BATCH`, `INDIRECT_WINDOW`), the paired-wave program list (`PAIRED_FOR`, 45 hashes), and the copy, submission and port switches (`RELAY_COPY`, `SUBMIT_SENDER`, `JOIN_COPIES`, `PORT_GUARD`, `PORT_JOURNAL`, `PORT_DESCRIPTORS`, `THIN`, `JOIN_PARTS`, `UPLOAD_AHEAD`, …). The defaults are now the ps1's `$settings` table in that table's own order, so the two files can be compared line by line, with the measurement and the `TEXTURE_NO_WAIT` contradiction in the comment above them. An exported `LEONIDA_*` still wins over every default, as before. `tests/test_play_linux_defaults.py` now reads the ps1's table and holds every value of it against what the launcher gives the runtime (the mock Wine dumps its `LEONIDA_*` environment instead of two named flags), and one more test checks that a setting given for a single start still wins. On unmodified `main` the new test fails for 38 of the 49 settings; with this change all four tests pass. ### Tested RTX 3060 12 GB, Debian 13 (kernel 6.12), Wine 11.0 with VKD3D-Proton 3.2.0, the title's own copy 1.0.2.1 in its Xbox Series S profile, the prologue cutscene, 20 minutes each way, same machine and same save: | | before (the subset) | after (the play set) | |---|---|---| | median frame time | 84.3 ms (11.9 fps) | **59.4 ms (16.8 fps)** | | 95th percentile | 1,455 ms | **371 ms** | | VRAM peak | 6,572 MB | 6,954 MB | No device loss, no unhandled exception in either run (`0x887A0005` is the failure the Series X profile has there; the Series S profile did not hit it in 20 minutes). The frame times come from the runtime's own window title and its `frametime` lines in the log, not from a screen recording. Also run: `sh -n scripts/play-linux.sh`, `python -I tests/test_play_linux_defaults.py`, `tests/test_play_linux.py`, `tests/test_play_linux_wine_check.py`, `tests/test_leonida_launcher.py` (3 skipped, no Tk on this box), `python -I scripts/check_no_game_data.py` on both files. GPUs tested: NVIDIA GeForce RTX 3060 12 GB (GA106), NVIDIA 620.70.10 open kernel module, Debian 13; no other GPU. AI-assisted: yes — written by DeepSeek v4.1 Flash (coding agent) under the author's direction, from the author's own runs on his card; no separate reviewer agent was run, so please review the numbers and the ps1/`play-linux.sh` pairing with that in mind. ### Checklist - [x] Based on current `main` and merges cleanly (branched from `d9b618f10`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. — no translator rule here.
merzleckeier commented 2026-12-03 10:40:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T10:40:15Z.


Review of a5ea251f on bfd03e7f:

Preserve explicit empty overrides for newly defaulted settings. I used the PR’s mock Wine fixture with LEONIDA_STATIC_SAMPLERS_LINEAR=''. The current shell launcher passes that value through. This change replaces it with PS_Composite, enabling the sampler override even though LinearScope::parse treats an empty string as disabled. LEONIDA_PAIRED_FOR='' is similarly replaced with the default list. Please check whether the variable is set instead of whether its value is non-empty. A local change to check whether the variable was set made the new empty-override test pass along with all four existing defaults tests. Explicit 0 already works.

The new Series X comment also says that profile keeps the title’s default rendering configuration. Both the base and candidate still export LEONIDA_RENDER_SCALE=0.5 and LEONIDA_OWN_UPSCALER=1 for --series-x. The comment should describe the existing behavior if the profile settings are staying as they are.

The exact PR passed the three Linux launcher test files and the Python launcher suite (144 tests, 3 skipped). The copied defaults tests detected 38 differing settings on the base. These checks used mock Wine, with no game data. AI-assisted review with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7375584525 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3316#issuecomment-7375584525). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T10:40:15Z. --- Review of `a5ea251f` on `bfd03e7f`: **Preserve explicit empty overrides for newly defaulted settings.** I used the PR’s mock Wine fixture with `LEONIDA_STATIC_SAMPLERS_LINEAR=''`. The current shell launcher passes that value through. This change replaces it with `PS_Composite`, enabling the sampler override even though `LinearScope::parse` treats an empty string as disabled. `LEONIDA_PAIRED_FOR=''` is similarly replaced with the default list. Please check whether the variable is set instead of whether its value is non-empty. A local change to check whether the variable was set made the new empty-override test pass along with all four existing defaults tests. Explicit `0` already works. The new Series X comment also says that profile keeps the title’s default rendering configuration. Both the base and candidate still export `LEONIDA_RENDER_SCALE=0.5` and `LEONIDA_OWN_UPSCALER=1` for `--series-x`. The comment should describe the existing behavior if the profile settings are staying as they are. The exact PR passed the three Linux launcher test files and the Python launcher suite (144 tests, 3 skipped). The copied defaults tests detected 38 differing settings on the base. These checks used mock Wine, with no game data. AI-assisted review with OpenAI Codex.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!3316
No description provided.