10 Commits

Author SHA1 Message Date
811b0c4426 play-linux.sh: a test for the kernel path on a kernel before 6.7; rewrap; the benchmark caps its rounds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JPqXc6svM4pbBagTsVEYA3
2026-12-02 10:06:51 +00:00
a336878143 play-linux.sh: the ntdll.so beside Wine decides; the kernel path is in Wine from 10.7
Review findings: upstream Wine has the userfaultfd and PAGEMAP_SCAN write watch from the
10.7 development release (not 10.6, not the stable 10.0), so the version rule is 10.7, and
only when no ntdll.so is found beside wine; a found one decides by its PAGEMAP_SCAN message.
Tests cover the lib, lib64 and Debian multiarch layouts and wine reached through a symbolic
link. docs/linux.md: Linux 6.7 is needed but not always enough, and which figures are a
native program's. The benchmark checks its arguments and allocations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JPqXc6svM4pbBagTsVEYA3
2026-12-02 10:02:27 +00:00
7465df77b7 play-linux.sh: say when Wine watches the title's memory with signals (LINUX-WINE-WRITE-WATCH-CHECK)
Wine 9.0 and 10.0, or any Wine on Linux before 6.7, track write-watched pages by making
them read-only and taking a SIGSEGV at the first write after each reset; Wine 11.0 and
Proton's Wine use userfaultfd's asynchronous write protection and PAGEMAP_SCAN instead.
Measured on a cloud VM: 2.3-3.8 us against 0.7-0.85 us per first write. The launcher now
says so in one line (LEONIDA_WINE_CHECK=0 leaves it out); docs/linux.md, "Which Wine", has
the numbers, and scripts/write_watch_bench.c measures them under any Wine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JPqXc6svM4pbBagTsVEYA3
2026-12-02 09:56:12 +00:00
5b03c688bf Merge pull request #2966 from aznohonza/scripts/entry-point-help
scripts: --help answers in the Python and shell entry points
2026-12-02 00:47:12 +00:00
1228aad135 scripts: the help tests cover -h too, and play-linux names LEONIDA_GAME_DIR
Dropping -h from run_wine_session.sh or check_no_game_data.py now fails the
test that covers it, and play-linux.sh's usage lists LEONIDA_GAME_DIR with
the other path variables (it already honours it).

AI-assisted.
2026-12-01 22:45:38 +01:00
19d62a98d4 Linux: enable scoped copy and descriptor tracking defaults (#2700)
* Linux: enable scoped copy and descriptor defaults

* Test Linux launcher optimization defaults and opt-outs
2026-12-01 11:52:20 +01:00
6da607c096 scripts: --help on the Python and shell entry points
check_no_game_data.py read `--help` as a path and answered "cannot read --help", exit 2, in the tool every
contributor is told to run; it now prints the usage text it already carries and exits 0. play-linux.sh and
run_wine_session.sh print their usage before any environment check, where they used to answer with an error
(and play-linux.sh's no-argument case still prints the same usage, on stderr, exit 2).

run_game_wine.sh's one-line Usage line names the required --shaders, which its Inputs section already listed.

A test per script fails on main's copies and passes here.
2026-12-01 10:29:39 +01:00
fee07ff779 d3d12: Leonida's D3D12 runtime under its own name
What changed:
- victory/ is now d3d12/;
- its crates are leonida-* (leonida_* code paths);
- the program is leonida.exe;
- settings are LEONIDA_*, and the older VICTORY_* names still work through apps/leonida/src/leonida.rs;
- the config file is leonida.toml;
- log names and user-facing text say Leonida.

What did not change: lines that credit upstream projects or people, URLs, copyright notices and the
GPL-3.0 LICENSE. d3d12/README.md opens with a Leonida section that says the runtime grew from
Marvisak/VIctory through trustno1-coder/VIctory-NVIDIA. The rest of that README is labelled as
trustno1-coder's.

The launchers (scripts/play-d3d12.ps1, scripts/play-linux.sh), docs/linux.md and
scripts/sync_victory.py (prefix d3d12) follow the move. Future upstream merges will need a
mapping from upstream's names onto these.

Builds with `cargo build --profile diag -p leonida --features diagnostics`. The settings alias
tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:11:32 -05:00
010c21b7de d3d12: the runtime is leonida.exe, its window says Leonida
victory/ builds as leonida.exe ([[bin]] in apps/victory; the package keeps VIctory's name so upstream merges and cargo -p victory still work), the window caption reads Leonida, and the launchers (victory/scripts/play-nvidia.ps1 and play.ps1, scripts/play-d3d12.ps1, scripts/play-linux.sh) start leonida.exe; the Smooth Motion copy is leonida_sm.exe. VICTORY_* settings are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:01:44 -05:00
8a73677be8 Linux: bundle VKD3D-Proton with the D3D12 runtime
On Linux the D3D12 runtime (victory/) runs under Wine. Its Direct3D 12 now comes in the package, so
players download nothing else for D3D12.
- scripts/fetch_vkd3d_proton.py puts VKD3D-Proton 3.1's unmodified 64-bit d3d12.dll and
  d3d12core.dll in the package. It also adds the LGPL-2.1 text and notice from the v3.1 tag and a
  note on where the source is. Every download is checked against a pinned SHA-256. Standard
  library only; Python 3.14 for compression.zstd.
- scripts/play-linux.sh installs the bundled DLLs into Leonida's own Wine prefix (no other prefix is
  touched) and sets WINEDLLOVERRIDES=d3d12,d3d12core=n. It runs the runtime with the measured
  NVIDIA defaults of play-nvidia.ps1.
- docs/linux.md describes the package and what is still untested: the launcher is syntax-checked
  only; it has not run on a Linux machine yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 15:49:02 -05:00