Rig launcher: checks the PC, then plays with settings worked out for it #1448

Open
github-bot wants to merge 1 commit from github-bot/gh-1448 into main AGit
Owner

@⁠gertvw23 on GitHub · 2026-11-28 20:11 UTC · original
gertvw23:rig/13600k-4080-launcher → main · +268 −25 · 3 files · 1 commits · open

A PowerShell wrapper around victory.exe play that checks the PC first and picks settings for it, plus a live watcher and a run log summary. It changes nothing in the layer: options and --set switches only, so the F1 menu's SAVE AND RESTART keeps them. Six new or changed files, all additions; Play-MyRig.cmd double-clicks it.

Built on, and for, an i5-13600K / RTX 4080 16 GB / 32 GB / Windows 10 22H2 PC, but everything is read from the PC at each start.

Why

Two runs on that PC showed:

  • Commit exhaustion: 3.9 GB of commit left six seconds in, then 89 no shared buffer ... 0x8007000E and a host command list did not close (the failure in docs/windows-memory.md).
  • 2-3 fps for ~30 s after loading into the world while its pipelines were made for the first time (card ~9 % busy).

What it does

  • Checks: free commit (lists what holds it) and the page file; victory.exe processes left behind (a game without a window, or preload / warm workers whose parent is gone; only those are offered to be ended); GPU scheduling for frame generation; the D3D12 Agility runtime on Windows 10; the game's disk; RAM below its rated speed.
  • Settings: DLSS frame generation 2x on RTX 40/50 with GPU scheduling on; VICTORY_TEXTURE_ROOM_PERCENT sized to the card (84 on 16 GB instead of the 12 GB card's 80); VICTORY_PIPELINE_WORKERS 4 or 2 while commit is short; native 1440p, no cap.
  • Shader preload once per victory.exe and driver; done when the preload process exits with 0, stopped early it says how many pipelines are built and offers to go on; a skip-for-this-version choice.
  • While running: borderless full screen only once the run's log shows frames presented (a style/size change 3 s after the window appeared froze a start in its DirectStorage set-up); -Cores pcores sets the process's default CPU sets to the fast cores (off by default: unmeasured, and cores.rs measured the opposite for the list threads).
  • After: a summary of the run's log, a row in %LOCALAPPDATA%\victory\rig-runs.csv; -Try cores|room alternates A/B variants and -Compare gives medians and a verdict once each side has three runs.
  • scripts/watch-rig.ps1 (-Watch): fps, stalls, memory and GPU every minute; alerts on low commit, out-of-memory, log errors, stalls, heat and a hang (log still 60 s, window not responding).

Tested

  • scripts/tests/play-rig.Tests.ps1: 13 Pester tests (3.4, Windows 10's own), all passing; they run the scripts as processes against a stand-in victory.exe in a temporary VICTORY_HOME, with no game files.
  • On the PC above: -Check, -Summary against the two real logs, the CPU-set and borderless calls against throwaway processes.

Not tested

  • A full play session through the current version, the delayed full screen, and -Cores pcores / the 84 % texture room in the game (that is what -Try / -Compare are for).

docs/rig-launcher.md has the details and the measurements.

🤖 Generated with Claude Code

**@⁠gertvw23** on GitHub · 2026-11-28 20:11 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1448) `gertvw23:rig/13600k-4080-launcher` → `main` · +268 −25 · 3 files · 1 commits · open A PowerShell wrapper around `victory.exe play` that checks the PC first and picks settings for it, plus a live watcher and a run log summary. It changes nothing in the layer: options and `--set` switches only, so the F1 menu's SAVE AND RESTART keeps them. Six new or changed files, all additions; `Play-MyRig.cmd` double-clicks it. Built on, and for, an i5-13600K / RTX 4080 16 GB / 32 GB / Windows 10 22H2 PC, but everything is read from the PC at each start. ## Why Two runs on that PC showed: - **Commit exhaustion**: 3.9 GB of commit left six seconds in, then 89 `no shared buffer ... 0x8007000E` and `a host command list did not close` (the failure in `docs/windows-memory.md`). - **2-3 fps for ~30 s** after loading into the world while its pipelines were made for the first time (card ~9 % busy). ## What it does - **Checks**: free commit (lists what holds it) and the page file; `victory.exe` processes left behind (a game without a window, or preload / `warm` workers whose parent is gone; only those are offered to be ended); GPU scheduling for frame generation; the D3D12 Agility runtime on Windows 10; the game's disk; RAM below its rated speed. - **Settings**: DLSS frame generation 2x on RTX 40/50 with GPU scheduling on; `VICTORY_TEXTURE_ROOM_PERCENT` sized to the card (84 on 16 GB instead of the 12 GB card's 80); `VICTORY_PIPELINE_WORKERS` 4 or 2 while commit is short; native 1440p, no cap. - **Shader preload** once per victory.exe and driver; done when the `preload` process exits with 0, stopped early it says how many pipelines are built and offers to go on; a skip-for-this-version choice. - **While running**: borderless full screen only once the run's log shows frames presented (a style/size change 3 s after the window appeared froze a start in its DirectStorage set-up); `-Cores pcores` sets the process's default CPU sets to the fast cores (off by default: unmeasured, and `cores.rs` measured the opposite for the list threads). - **After**: a summary of the run's log, a row in `%LOCALAPPDATA%\victory\rig-runs.csv`; `-Try cores|room` alternates A/B variants and `-Compare` gives medians and a verdict once each side has three runs. - **`scripts/watch-rig.ps1`** (`-Watch`): fps, stalls, memory and GPU every minute; alerts on low commit, out-of-memory, log errors, stalls, heat and a hang (log still 60 s, window not responding). ## Tested - `scripts/tests/play-rig.Tests.ps1`: 13 Pester tests (3.4, Windows 10's own), all passing; they run the scripts as processes against a stand-in `victory.exe` in a temporary `VICTORY_HOME`, with no game files. - On the PC above: `-Check`, `-Summary` against the two real logs, the CPU-set and borderless calls against throwaway processes. ## Not tested - A full play session through the current version, the delayed full screen, and `-Cores pcores` / the 84 % texture room in the game (that is what `-Try` / `-Compare` are for). `docs/rig-launcher.md` has the details and the measurements. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Play-MyRig.cmd / scripts\play-rig.ps1 wrap `victory.exe play`. Built on an
i5-13600K / RTX 4080 16 GB / 32 GB / Windows 10 PC, whose two runs showed a
commit-exhaustion crash (3.9 GB of commit left, then 0x8007000E "no shared
buffer") and 2-3 fps while the world's pipelines were first made.

- Checks: a victory.exe left running, free commit (lists what holds it),
  the page file, GPU scheduling, the D3D12 Agility runtime on Windows 10,
  the game's disk, RAM below its rated speed.
- Settings: DLSS frame generation 2x on RTX 40/50, texture room sized to
  the card's memory (84 % on 16 GB instead of the 12 GB card's 80),
  fewer pipeline workers while commit is short, native 1440p, no cap.
- Shader preload once per victory.exe and graphics driver.
- While running: borderless full screen at the monitor's size, and with
  -Cores pcores the title's threads prefer the fast cores (CPU sets).
- After: a summary of the run's log and a line in rig-runs.csv.

docs/rig-launcher.md has the measurements and the reasons.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A start froze 3 s in: its log stopped in the DirectStorage set-up, at the
moment the launcher changed the window's style and size, and Windows
closed it as hung. The window is now made borderless only after the run's
own log (victory-nvidia-play-*-<pid>.log) shows a "frame times:" line,
and 15 s after that.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Preload:
- Counted as done when victory.exe's `preload` process exits with 0
  (the watcher holds its handle to read the code); the "Shaders preloaded
  in" line is only a fallback. Stopped early, the launcher says how many
  pipelines are built (warm-done.txt) and the next start offers to go on.
- The question takes yes / no this time / skip for this version; skip is
  remembered per victory.exe and driver.
- The preload's warm workers are no longer given the fast-core preference
  with -Cores pcores, and do not count as the game's memory.

Measuring:
- rig-runs.csv records the A/B variant, commit free at the start, the
  least free while the game ran and the game's peak memory (every 5 s);
  older rows are kept under the new header.
- -Try cores|room: each start takes the variant with fewer long runs.
- -Compare: medians by settings, a verdict with three runs a side (under
  3 % is called noise), and the commit the game actually took, to check
  the 32/26 GB thresholds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- scripts\watch-rig.ps1: the live watch as a script of its own (-Watch
  opens it beside the game): fps, stalls, memory and GPU every minute;
  alerts at once on low commit, out-of-memory, log errors, stalls, GPU
  heat, and a hang (the game's log still for 60 s, or its window not
  responding for 15 s), as the start that froze on 2026-11-28 did.
- Processes left behind: every victory.exe is listed as game, preload or
  warm worker; only those left behind (a game without a window, a preload
  or worker whose parent is gone) are offered to be ended, with what they
  started. Work whose parent still runs is listed and left alone.
- An error in the watcher's runspace is now reported instead of lost.
  It found a bug in this change: the new -Watch switch and the watcher's
  $watch script block were one variable (names are not case-sensitive),
  so the runspace ran the word False. Renamed to $watchScript.
- scripts\tests\play-rig.Tests.ps1: 13 Pester tests (3.4, Windows 10's
  own) against a stand-in victory.exe in a temporary VICTORY_HOME.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 20:17:06 +00:00
- The F1 menu's saved choices (console, resolution, DLSS, frame
  generation and its type, frame cap) win over the launcher's options at
  every start, and the 2026-11-28 release says nothing of it. The
  launcher now reads victory-settings.txt with play.rs settings()' rules
  (the Series S picture's DLSS mode; ultra performance only from a
  victory.exe that has it) and names each choice that will not apply.
- VICTORY_TEXTURE_ROOM_PERCENT=84 only while frame generation will
  really run. With F1's frame generation off (this PC's saved choice) it
  cut the texture pool from the layer's own ~95 % of the budget to 84 %
  for nothing; -Try room now needs frame generation on as well.
- A --set over a switch saved in the menu's file is named.
- Preload count: only the newest fingerprint in warm-done.txt, each key
  once (it said 188,469 of 88,552: three builds' lines). Not shown as
  this version's when the launcher saw that fingerprint under another
  victory.exe or driver, or the file is older than victory.exe; "this
  time" is counted against the same fingerprint's lines from before.
- Tests: 21 Pester tests (8 new), all passing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-29 08:28 UTC · original

Thank you! An earlier version of this pull request was merged into main with its original commits and is part of v2026.11.29.01, where you are credited. GitHub does not show it as merged because new commits were pushed here after that merge. It stays open so those newer commits can be looked at next.

**@⁠trustno1-coder** on GitHub · 2026-11-29 08:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1448#issuecomment-7253124732) Thank you! An earlier version of this pull request was merged into main with its original commits and is part of [v2026.11.29.01](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.29.01), where you are credited. GitHub does not show it as merged because new commits were pushed here after that merge. It stays open so those newer commits can be looked at next.
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 18:26 UTC · original

One small launch follow-up on 284ca6b8. After the initial runner exits, the launcher waits for an F1 or warm-up restart by looking for processes at the same executable path. An instance that was already open before this run can keep that wait going and delay the report.

060d3d37 skips instances that started before the existing run timestamp. A later instance at the same path can still be followed, as needed for the restart. The watcher and launch settings are untouched.

A focused Windows PowerShell fixture ran the exact wait loop using synthetic process records. The old instance stopped delaying the report. A later restart was still awaited, including when an old instance was present, and a different executable path was ignored. The full launcher parsed and staged asset policy passed. The patch and #5051 merge cleanly in a local merge check.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding this change into another commit.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 18:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1448#issuecomment-7320961337) One small launch follow-up on `284ca6b8`. After the initial runner exits, the launcher waits for an F1 or warm-up restart by looking for processes at the same executable path. An instance that was already open before this run can keep that wait going and delay the report. [060d3d37](https://github.com/andrewpozdnakov7-jpg/VIctory-NVIDIA/commit/060d3d37db2e80729b43ff5bf059bb2111dd020c) skips instances that started before the existing run timestamp. A later instance at the same path can still be followed, as needed for the restart. The watcher and launch settings are untouched. A focused Windows PowerShell fixture ran the exact wait loop using synthetic process records. The old instance stopped delaying the report. A later restart was still awaited, including when an old instance was present, and a different executable path was ignored. The full launcher parsed and staged asset policy passed. The patch and #5051 merge cleanly in a local merge check. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding this change into another commit. AI-assisted with OpenAI Codex.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1448/head:github-bot/gh-1448'
git switch 'github-bot/gh-1448'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1448'
git switch 'github-bot/gh-1448'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1448'
git switch 'github-bot/gh-1448'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1448'
git switch 'main'
git merge --squash 'github-bot/gh-1448'
git switch 'main'
git merge --ff-only 'github-bot/gh-1448'
git switch 'main'
git merge 'github-bot/gh-1448'
git push origin 'main'
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!1448
No description provided.