Linux/Proton: scripts/play-linux.sh with the settings an RTX 5070 Ti needed, and the notes of its first run (DXC, PipeWire quantum, Proton's four compute programs, the watchdog) #4230

Closed
github-bot wants to merge 11 commits from github-bot/gh-4229 into main AGit
Owner

@⁠Denkiyaa on GitHub · 2026-11-30 17:36 UTC · original
Denkiyaa:pr/linux-nvidia-notes → main · +1219 −820 · 34 files · 11 commits · closed without merging

Fixes #

What it changes

Documentation and a launcher only; no Rust code changes.

docs/linux-proton.md gets a section "A PipeWire quantum of 30 ms, and a first run on an RTX 5070 Ti":

  • DXC is needed under Wine: without dxcompiler.dll indirect draws were dropped (2,619 a frame) and the card's compare ran on the CPU (3 fps). DXC 1.9 refused the ambient light's raise until asked for HLSL 2018 (as #3417 does).
  • A PipeWire clock.min-quantum of 1440 (30 ms) starved the title's spatial audio: no sound, the first screen's assert after 5-9 s, a load that stood still for minutes. winealsa (a registry line in the prefix) avoids it.
  • With Proton Experimental 11.0-20261112, four compute programs were never made by the driver's compiler worker (3 fps in the world); GE-Proton11-15 made all four.
  • On a first run some compute pipelines took 50-90 s, longer than the title's 30 s watchdog; VICTORY_PIPELINE_COMPUTE_WAIT=0 got past it once.
  • The two-plane composer and Wine's compiler: the 1440p output needs the composer's root signature made without DXC (#2449, #605).

scripts/play-linux.sh (new): starts the title under Proton through umu-run, with each setting next to the measurement that chose it. What it adds over the commands in the doc (and over #1630's play-proton.sh, which is a general runner): measured defaults for NVIDIA cards under Proton.

  • The card's budget set 5,000 MB under the card's free memory (nvidia-smi), since NVIDIA's Linux driver does not spill the card's memory into the PC's.
  • The layer's windows in the card's memory (VICTORY_WINDOWS_BAR_MB=4096, VICTORY_SEND_BAR=1). Without them the process grew to 24-27 GB within five minutes on a 32 GB PC and swapped. With them it stayed at 16-17 GB.
  • NVIDIA's shader disk cache: a 4 GiB file of the title's own, dropped before it passes 3.5 GiB, because the driver stops indexing it past 4 GiB (#3535).
  • gamescope by default on a Wayland desktop. The desktop's own scaling of X11 programs resampled the picture twice (Wine saw a 2048x1152 screen at 125 % scaling); gamescope scales it once. Frame generation 2X held in every second inside gamescope, against 84 % of the seconds outside it.
  • DLSS Quality with frame generation 3X by default. FRAMEGEN=2 or 0, or DLSS=off, change that.
  • The frame cap at 240, not 60, because frames begin on the cap's ticks. VICTORY_GUARD_HOT=20.
  • The four submission switches of #3809, the particles' light atlas left out (with the measurement for why), and the reflections settings with what each fixed.
  • VICTORY_SWEEP_PRESSED_MS=8000 and VICTORY_SMALL_ROOM_PERCENT=115. These are switches from two pull requests of their own (sent beside this one). A build without them ignores these settings.
  • WINE_DIR to run a plain Wine build instead of Proton, for comparisons.

The title's folder is the first argument or GAME_DIR; every other path is a variable (VICTORY_EXE, DXC_DIR, WINEPREFIX, PROTONPATH, VICTORY_OUT, __GL_SHADER_DISK_CACHE_PATH) or under $HOME.

Specific to the PC it was measured on, so that others know what to change:

  • The monitor's mode for gamescope is read with kscreen-doctor (KDE only). Elsewhere it is left to gamescope, or GAMESCOPE_OUT=<w>x<h> gives it.
  • The Proton looked for first is ~/.local/share/Steam/compatibilitytools.d/GE-Proton11-15-x86_64, then Proton Experimental, then umu-launcher's own GE-Proton.
  • The default prefix is $HOME/Games/victory-prefix-ge, and DXC's default folder is $HOME/Games/victory-dxc.
  • Every figure in the comments is from one RTX 5070 Ti 16 GB with a Ryzen 7 9800X3D and 32 GB of RAM, on CachyOS with GE-Proton11-15 and the Series S profile. The defaults of 8000, 115, 3X and the 5,000 MB margin were chosen on that card.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 32 GB RAM, CachyOS (kernel 7.3.6), NVIDIA 620.73.04, GE-Proton11-15; Series S profile, DLSS Quality, DLSS frame generation 3X (2X in the earlier runs), 2560x1440 screen. The doc's section is from runs on main e1f2eb6 with the DXC-language and composer changes, DLSS off. The launcher was used on a branch of this repository that carries other ports besides main.
  • Before: the doc's commands with nothing else. The figures for each setting are in the launcher's comments.
  • After: the opening scenes at 17-20 fps with sound (doc section), and later sessions in the world through the launcher (the comments).
  • Not checked: the launcher with exactly this branch's main (the runs used a branch with more ports); another card, another desktop than KDE Plasma, or another distribution; Windows (nothing here changes it).
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): no shader change.
  • cargo test passed for the crates it touches: not applicable (no Rust code). bash -n scripts/play-linux.sh passes. cargo xtask policy --staged passed.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related:
    • #1630 adds a different launcher, scripts/play-proton.sh, a general runner with options and no measured settings. The two could live side by side, or this one's settings could move into it. Note that VICTORY_EXE names the title's executable there and victory.exe here.
    • #1702 adds scripts/run-wine.sh for system Wine.
    • #3535 is the NVIDIA cache past 4 GiB, which the launcher follows.
    • #3417 and #2449/#605 are the code that the DXC and composer notes refer to.
    • #4134, #3696, #3973, #3367 and #2455 also edit docs/linux-proton.md, in other sections. No textual overlap is expected beyond the end of the file.
    • Main has no Linux launcher.

Written with Claude Code (Claude Opus 5.5): the measurements were run by me on my PC; the launcher, the notes and this text were prepared with it.

🤖 Generated with Claude Code

**@⁠Denkiyaa** on GitHub · 2026-11-30 17:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4229) `Denkiyaa:pr/linux-nvidia-notes` → `main` · +1219 −820 · 34 files · 11 commits · closed without merging <!-- Thanks for the pull request. Please label it (pr-fix, pr-feature, pr-performance, pr-diagnostics, pr-refactor, pr-docs or pr-tests, plus the area labels), or put the label in the title, like [pr-fix]. --> Fixes # ## What it changes Documentation and a launcher only; no Rust code changes. **`docs/linux-proton.md`** gets a section "A PipeWire quantum of 30 ms, and a first run on an RTX 5070 Ti": - DXC is needed under Wine: without `dxcompiler.dll` indirect draws were dropped (2,619 a frame) and the card's compare ran on the CPU (3 fps). DXC 1.9 refused the ambient light's `raise` until asked for HLSL 2018 (as #3417 does). - A PipeWire `clock.min-quantum` of 1440 (30 ms) starved the title's spatial audio: no sound, the first screen's assert after 5-9 s, a load that stood still for minutes. `winealsa` (a registry line in the prefix) avoids it. - With Proton Experimental 11.0-20261112, four compute programs were never made by the driver's compiler worker (3 fps in the world); GE-Proton11-15 made all four. - On a first run some compute pipelines took 50-90 s, longer than the title's 30 s watchdog; `VICTORY_PIPELINE_COMPUTE_WAIT=0` got past it once. - The two-plane composer and Wine's compiler: the 1440p output needs the composer's root signature made without DXC (#2449, #605). **`scripts/play-linux.sh`** (new): starts the title under Proton through `umu-run`, with each setting next to the measurement that chose it. What it adds over the commands in the doc (and over #1630's `play-proton.sh`, which is a general runner): measured defaults for NVIDIA cards under Proton. - The card's budget set 5,000 MB under the card's free memory (`nvidia-smi`), since NVIDIA's Linux driver does not spill the card's memory into the PC's. - The layer's windows in the card's memory (`VICTORY_WINDOWS_BAR_MB=4096`, `VICTORY_SEND_BAR=1`). Without them the process grew to 24-27 GB within five minutes on a 32 GB PC and swapped. With them it stayed at 16-17 GB. - NVIDIA's shader disk cache: a 4 GiB file of the title's own, dropped before it passes 3.5 GiB, because the driver stops indexing it past 4 GiB (#3535). - gamescope by default on a Wayland desktop. The desktop's own scaling of X11 programs resampled the picture twice (Wine saw a 2048x1152 screen at 125 % scaling); gamescope scales it once. Frame generation 2X held in every second inside gamescope, against 84 % of the seconds outside it. - DLSS Quality with frame generation 3X by default. `FRAMEGEN=2` or `0`, or `DLSS=off`, change that. - The frame cap at 240, not 60, because frames begin on the cap's ticks. `VICTORY_GUARD_HOT=20`. - The four submission switches of #3809, the particles' light atlas left out (with the measurement for why), and the reflections settings with what each fixed. - `VICTORY_SWEEP_PRESSED_MS=8000` and `VICTORY_SMALL_ROOM_PERCENT=115`. These are switches from two pull requests of their own (sent beside this one). A build without them ignores these settings. - `WINE_DIR` to run a plain Wine build instead of Proton, for comparisons. The title's folder is the first argument or `GAME_DIR`; every other path is a variable (`VICTORY_EXE`, `DXC_DIR`, `WINEPREFIX`, `PROTONPATH`, `VICTORY_OUT`, `__GL_SHADER_DISK_CACHE_PATH`) or under `$HOME`. **Specific to the PC it was measured on, so that others know what to change:** - The monitor's mode for gamescope is read with `kscreen-doctor` (KDE only). Elsewhere it is left to gamescope, or `GAMESCOPE_OUT=<w>x<h>` gives it. - The Proton looked for first is `~/.local/share/Steam/compatibilitytools.d/GE-Proton11-15-x86_64`, then Proton Experimental, then `umu-launcher`'s own GE-Proton. - The default prefix is `$HOME/Games/victory-prefix-ge`, and DXC's default folder is `$HOME/Games/victory-dxc`. - Every figure in the comments is from one RTX 5070 Ti 16 GB with a Ryzen 7 9800X3D and 32 GB of RAM, on CachyOS with GE-Proton11-15 and the Series S profile. The defaults of 8000, 115, 3X and the 5,000 MB margin were chosen on that card. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 32 GB RAM, CachyOS (kernel 7.3.6), NVIDIA 620.73.04, GE-Proton11-15; Series S profile, DLSS Quality, DLSS frame generation 3X (2X in the earlier runs), 2560x1440 screen. The doc's section is from runs on main e1f2eb6 with the DXC-language and composer changes, DLSS off. The launcher was used on a branch of this repository that carries other ports besides main. - Before: the doc's commands with nothing else. The figures for each setting are in the launcher's comments. - After: the opening scenes at 17-20 fps with sound (doc section), and later sessions in the world through the launcher (the comments). - **Not checked:** the launcher with exactly this branch's main (the runs used a branch with more ports); another card, another desktop than KDE Plasma, or another distribution; Windows (nothing here changes it). - For shader changes, the wave sizes tested (32 and/or 64 lanes): no shader change. - `cargo test` passed for the crates it touches: not applicable (no Rust code). `bash -n scripts/play-linux.sh` passes. `cargo xtask policy --staged` passed. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: - #1630 adds a different launcher, `scripts/play-proton.sh`, a general runner with options and no measured settings. The two could live side by side, or this one's settings could move into it. Note that `VICTORY_EXE` names the title's executable there and `victory.exe` here. - #1702 adds `scripts/run-wine.sh` for system Wine. - #3535 is the NVIDIA cache past 4 GiB, which the launcher follows. - #3417 and #2449/#605 are the code that the DXC and composer notes refer to. - #4134, #3696, #3973, #3367 and #2455 also edit `docs/linux-proton.md`, in other sections. No textual overlap is expected beyond the end of the file. - Main has no Linux launcher. --- Written with Claude Code (Claude Opus 5.5): the measurements were run by me on my PC; the launcher, the notes and this text were prepared with it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- scripts/play-linux.sh: starts the title under Proton (umu-run) with what
  the runs on one Linux PC needed, each setting beside the measurement that
  chose it: DXC for the helpers; the card's budget 5,000 MB under what is
  free (NVIDIA's Linux driver spills nothing); the layer's windows in the
  card's memory (VICTORY_WINDOWS_BAR_MB, the process stayed at 16-17 GB
  instead of growing to 24-27); NVIDIA's shader disk cache of the title's
  own; gamescope on a Wayland desktop, so the picture is scaled once
  instead of twice by a desktop that scales X11 programs; the frame cap at
  240; the sweep's pressed interval at 8000 and small stand-ins up to 115 %
  of the budget (switches of their own pull requests, ignored by a build
  without them). The title's folder is the first argument or GAME_DIR;
  every other path is a variable or under $HOME.
- docs/linux-proton.md: DXC is needed under Wine (indirect draws dropped
  without it), a PipeWire quantum of 30 ms that starved the title's audio
  (no sound, the first screen's assert, a load that stood still) and
  winealsa, four compute programs Proton Experimental's driver worker never
  made and GE-Proton did, the first world frame against the title's
  watchdog, and the 1440p composer.

CachyOS, RTX 5070 Ti, GE-Proton11-15. Not run on Windows (nothing here
changes it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 18:09:08 +00:00
github-bot closed this pull request 2026-12-01 18:50:24 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:45 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4229#issuecomment-7321477000) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4230
No description provided.