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

Open
gertvw23 wants to merge 1 commit from upstream-pr/1448 into main
gertvw23 commented 2026-11-28 20:11:48 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by gertvw23 on 2026-11-28T20:11:48Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5544147726 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1448). Originally posted by [gertvw23](https://github.com/gertvw23) on 2026-11-28T20:11:48Z. --- 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)
trustno1-coder commented 2026-11-29 08:28:14 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T08:28:14Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7253124732 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1448#issuecomment-7253124732). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-29T08:28:14Z. --- 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.
andrewpozdnakov7-jpg commented 2026-12-01 18:26:52 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T18:26:52Z.


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 #5050 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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7320961337 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1448#issuecomment-7320961337). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-12-01T18:26:52Z. --- 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 #5050 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1448:upstream-pr/1448'
git switch 'upstream-pr/1448'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1448'
git switch 'upstream-pr/1448'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1448'
git switch 'upstream-pr/1448'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1448'
git switch 'main'
git merge --squash 'upstream-pr/1448'
git switch 'main'
git merge --ff-only 'upstream-pr/1448'
git switch 'main'
git merge 'upstream-pr/1448'
git push origin 'main'
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!1448
No description provided.