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

Closed
BaRian29 wants to merge 1 commit from upstream-pr/3581 into main
BaRian29 commented 2026-11-30 01:22:32 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BaRian29 on 2026-11-30T01:22:32Z.


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).
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5557306954 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3581). Originally posted by [BaRian29](https://github.com/BaRian29) on 2026-11-30T01:22:32Z. --- # 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).
trustno1-coder commented 2026-12-01 18:50:49 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:50:49Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321662754 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3581#issuecomment-7321662754). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:50:49Z. --- 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

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
trustno1-coder/VIctory-NVIDIA!3581
No description provided.