victory launcher: make every pipeline ahead, then play #3581

Closed
github-bot wants to merge 1 commit from github-bot/gh-3581 into main AGit
Owner

@⁠BaRian29 on GitHub · 2026-11-30 01:22 UTC · original
BaRian29:pr/launcher → main · +1211 −15 · 4 files · 1 commits · closed without merging

victory launcher: make every pipeline ahead, then play

Branch: BaRian29:pr/launcher (one commit on main 41adb551)
Open: https://github.com/trustno1-coder/VIctory-NVIDIA/compare/main...BaRian29:VIctory-NVIDIA:pr/launcher

Summary

victory play --preload-all and --preload-only.
--preload-all warms every pipeline the title ever created (some 84,000 once a run has written them down), not only those earlier runs drew with. --preload-only preloads with the start's settings and stops without starting the game. A first run on a 32 GB PC otherwise compiled them while the world loaded: 0.3 fps, 96 refused for want of memory.

victory launcher, also what a double click opens when no title is beside the program. It is a small window for that:

  • the game's exe (Browse...);
  • resolution, DLSS, frame generation and Series S, the same settings for compiling and for playing;
  • how many compile processes run (each can take 1-3 GB of RAM: the launcher offers fewer when free RAM is short), and All known pipelines;
  • free RAM and commit, and how many known pipelines are already compiled for this victory.exe and driver (from warm-done.txt);
  • the progress, with time left, then the game in a console of its own.

The choices are kept in %LOCALAPPDATA%\victory\launcher.txt.

Implementation notes

  • Plain Win32 through windows-sys features: no new dependency, so Cargo.lock (hashed into the translator's fingerprint) is unchanged.
  • The preload runs in a job object with KILL_ON_JOB_CLOSE, so it ends with the window, and Stop ends all of it.
  • The game is started with CreateProcessW and none of this process's handles. A double-clicked launcher has let its console go, and std's inherited handles were refused (os error 50).
  • WM_DESTROY posts the quit message whatever state the window is in, so closing the window always ends the process.
  • DPI-aware layout; arguments are quoted the way the CRT parses them (quoted, tested).
  • Also documents the unsafe block of the delay-load hook in main.rs.

Testing

  • Clippy (both gates): no new warning against main (same 34 / 35 warnings; main itself fails -D warnings in victory-shader and victory-loader).
  • cargo test -p victory: 89 + 1 + 2 passed. New tests cover the saved choices, reading the preload's progress lines, counting known-pipelines.bin, warm-done.txt for the newest fingerprint, time left, argument quoting, and play taking --preload-all / --preload-only.
  • Used for full preloads (about 84,000 pipelines) and many game starts on an i5-14600KF / RTX 4070 Ti SUPER / 32 GB PC. Closing the window ends the process (exit code 0).
**@⁠BaRian29** on GitHub · 2026-11-30 01:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3581) `BaRian29:pr/launcher` → `main` · +1211 −15 · 4 files · 1 commits · closed without merging # victory launcher: make every pipeline ahead, then play **Branch:** `BaRian29:pr/launcher` (one commit on `main` 41adb551) **Open:** https://github.com/trustno1-coder/VIctory-NVIDIA/compare/main...BaRian29:VIctory-NVIDIA:pr/launcher ## Summary **`victory play --preload-all` and `--preload-only`.** `--preload-all` warms every pipeline the title ever created (some 84,000 once a run has written them down), not only those earlier runs drew with. `--preload-only` preloads with the start's settings and stops without starting the game. A first run on a 32 GB PC otherwise compiled them while the world loaded: 0.3 fps, 96 refused for want of memory. **`victory launcher`**, also what a double click opens when no title is beside the program. It is a small window for that: - the game's exe (Browse...); - resolution, DLSS, frame generation and Series S, the same settings for compiling and for playing; - how many compile processes run (each can take 1-3 GB of RAM: the launcher offers fewer when free RAM is short), and *All known pipelines*; - free RAM and commit, and how many known pipelines are already compiled for this `victory.exe` and driver (from `warm-done.txt`); - the progress, with time left, then the game in a console of its own. The choices are kept in `%LOCALAPPDATA%\victory\launcher.txt`. ## Implementation notes - Plain Win32 through `windows-sys` features: no new dependency, so `Cargo.lock` (hashed into the translator's fingerprint) is unchanged. - The preload runs in a job object with `KILL_ON_JOB_CLOSE`, so it ends with the window, and *Stop* ends all of it. - The game is started with `CreateProcessW` and none of this process's handles. A double-clicked launcher has let its console go, and std's inherited handles were refused (os error 50). - `WM_DESTROY` posts the quit message whatever state the window is in, so closing the window always ends the process. - DPI-aware layout; arguments are quoted the way the CRT parses them (`quoted`, tested). - Also documents the `unsafe` block of the delay-load hook in `main.rs`. ## Testing - Clippy (both gates): no new warning against `main` (same 34 / 35 warnings; `main` itself fails `-D warnings` in `victory-shader` and `victory-loader`). - `cargo test -p victory`: 89 + 1 + 2 passed. New tests cover the saved choices, reading the preload's progress lines, counting `known-pipelines.bin`, `warm-done.txt` for the newest fingerprint, time left, argument quoting, and `play` taking `--preload-all` / `--preload-only`. - Used for full preloads (about 84,000 pipelines) and many game starts on an i5-14600KF / RTX 4070 Ti SUPER / 32 GB PC. Closing the window ends the process (exit code 0).
`victory play --preload-all` warms every pipeline the title ever created
(some 84,000 once a run has written them down), not only those earlier runs
drew with; `--preload-only` preloads with the start's settings and stops
without starting the game. A first run on a 32 GB PC otherwise compiled them
while the world loaded: 0.3 fps, 96 refused for want of memory.

`victory launcher` (also what a double click opens where no title is beside
the program) is a window for that: the game's options, the compiling
processes, the progress from warm-done.txt, then the game in a console of
its own. Plain Win32 through windows-sys features, so Cargo.lock (hashed
into the translator's fingerprint) is unchanged. The preload runs in a job
object that ends with the window; the game is started with CreateProcessW
and none of this process's handles (a double-clicked launcher has let its
console go, and std's inherited handles were refused, os error 50).

Also documents the unsafe block of the delay-load hook.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 01:25:52 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:50 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:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3581#issuecomment-7321662754) 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.
github-bot closed this pull request 2026-12-01 18:58:16 +00:00

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!3581
No description provided.