- 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 <noreply@anthropic.com>
9.4 KiB
The rig launcher (Play-MyRig.cmd, scripts\play-rig.ps1)
A wrapper around victory.exe play that looks at the PC first and starts the game with settings
worked out for it. It changes nothing in the layer or in the title's files: it picks options and
--set switches, checks what made earlier runs fail, and watches the game's process while it runs.
.\Play-MyRig.cmd # double click: checks, then plays
.\scripts\play-rig.ps1 -Exe 'D:\MyDump\game_scarlett_master.exe' # once; the path is remembered
.\scripts\play-rig.ps1 -Check # the checks, the settings and the command only
.\scripts\play-rig.ps1 -Summary # the newest run's log: fps, stalls, memory, crash
It was built on, and for, this PC:
| CPU | Intel Core i5-13600K: 6 fast cores (12 threads) and 8 slow cores |
| GPU | GeForce RTX 4080 16 GB, driver 621.40 |
| RAM | 32 GB DDR5 (at 4800 MT/s; the sticks are rated 5600) |
| Windows | Windows 10 22H2 (build 19045), D3D12 Agility runtime 1.614 beside victory.exe |
| Disk | the dump on an NVMe drive |
| Display | 2560x1440 at 240 Hz, hardware-accelerated GPU scheduling on |
Everything it decides is read from the PC at each start, so it also picks sensible settings elsewhere, but the measured basis below is from this one.
What two runs on this PC showed
Both runs used victory.exe on its own (Series X, native 1440p, DLSS Quality, no frame generation).
- It ran out of memory to commit. Six seconds in, the layer warned of host memory pressure with
3.9 GB of commit left (Windows' commit limit is RAM plus page file: 47.8 GB here, with a fixed
16 GB page file, and about 20 GB already taken by other programs). Two minutes later, 89
no shared buffer ... 0x8007000Ewarnings ended ina host command list did not close, and the run was over. This is the failure in windows-memory.md. - It sat at 2-3 frames a second after loading into the world for about 30 s, with the card about 9 % busy. The driver was building the world's pipelines for the first time (the log's pipeline library: 662 made at the end). A shader preload builds them ahead.
What it does about it
| On this PC | Why |
|---|---|
Stops before starting if a victory.exe is still running, and offers to end it |
the F1 menu's SAVE AND RESTART can leave one behind without a window, holding its memory |
| Checks free commit: wants about 32 GB, lists what holds the most if there is less | the crash above |
VICTORY_PIPELINE_WORKERS=4 under 32 GB free, 2 under 26 GB (the layer's own choice here: 8) |
the 32 GB reports in windows-memory.md ran out while pipelines were being made; fxceless #777 throttles the same workers. A preload leaves few to make in play |
| Recommends a page file that puts the commit limit at RAM + 32 GB (here: 32,768 MB or "System managed") | a change only you make: sysdm.cpl, then a restart |
Preloads shaders (play --preload) once for each victory.exe and graphics driver, asked first |
the 2-3 fps stretch above; both change what the pipelines are |
| DLSS frame generation 2x | an RTX 40 with GPU scheduling on; the layer renders near 30 fps, so this is where smoothness comes from |
VICTORY_TEXTURE_ROOM_PERCENT=84 |
the launcher's 80 keeps a fifth of the card's budget for frame generation, sized for a 12 GB card; it needs about 2 GB, so a 16 GB card keeps 2.4 GB and gives the rest to textures |
| Series X at native 1440p, DLSS Quality, no frame cap | the monitor is 2560x1440 at 240 Hz |
Makes the window borderless full screen 15 s after the game's log shows frames being presented, and again after an F1 restart (done 3 s after the window appeared, a start froze in its DirectStorage set-up; -NoFullscreen leaves the window alone) |
the layer fits its window inside the screen (2488x1400 here), which scales a 2560x1440 picture down; full screen shows it pixel for pixel. Frame generation also needs the window in focus |
Writes a summary after each run and a line in %LOCALAPPDATA%\victory\rig-runs.csv |
so a change of settings can be measured, not guessed |
The settings go to victory.exe play as options and --set switches, so the F1 menu's SAVE AND
RESTART keeps them. What the F1 menu saved still wins over the options, as at every start.
It also notes what only you can change: XMP/EXPO off in the BIOS (memory speed matters to this CPU-bound layer), a power-saving plan, the game on a hard disk or SATA drive.
The fast and slow cores (-Cores pcores)
The layer already keeps its own threads that a frame waits for on the fast cores
(VICTORY_FAST_CORES, crates\victory-gpu\src\cores.rs; the log says fast=12 of=20 here).
The title's own threads are left to Windows, and Windows 10 has no Thread Director to steer them.
-Cores pcores sets the game process's default CPU sets to the fast cores, so that every thread that
picks none of its own prefers them: the title's, and also the layer's pipeline, streaming and
list-translating workers. It is a preference, not a hard affinity mask. It is off by default because
cores.rs measured the opposite for the list-translating threads (more threads than the fast cores
run at once, with the slow cores idle), and it is not measured on this PC yet. Compare it:
.\scripts\play-rig.ps1 # play the same stretch, then
.\scripts\play-rig.ps1 -Cores pcores # the same stretch again
Import-Csv $env:LOCALAPPDATA\victory\rig-runs.csv | Format-Table
Or let the launcher alternate for you and keep the score:
.\scripts\play-rig.ps1 -Try cores # each start takes the variant with fewer runs so far
.\scripts\play-rig.ps1 -Try room # texture room: the launcher's 80 % against the 16 GB card's 84 %
.\scripts\play-rig.ps1 -Compare # medians by settings, a verdict once each side has three runs
-Compare counts only runs with a minute or more in the game, calls a difference under 3 % of median
fps noise, and also reports how much of Windows' commit the game took (free at the start minus the least
free while it ran, sampled every 5 s). That is what the 32 GB / 26 GB thresholds above should be checked
against: they came from one crashed run.
The summary's numbers come from the layer's own once-a-second frame-time lines. Seconds drawn faster than 125 frames a second (menus, loading screens) are left out; "under 10 fps" counts the stalls.
Live watch (scripts\watch-rig.ps1, or -Watch)
Read-only, at below-normal priority, every 5 s: the newest play log, Windows' commit, the game's
processes and nvidia-smi. Every minute (-ReportEvery) a line with rendered fps (median and slowest
5 %), seconds under 10 fps, commit free, the game's memory and CPU, GPU load, VRAM, temperature and power;
while the shader preload runs, its progress instead. At once (and not more than every minute or two):
commit under 5 GB, the layer's memory-pressure and out-of-memory lines, errors in the log, 15 s under
10 fps, the GPU at 84 C, and a hang: the game's log still for 60 s (not with VICTORY_LOG=warn) or
Windows finding its window not responding for 15 s. When the game has ended, one line for the whole run.
Processes left behind
Before a start the launcher lists every victory.exe with what it is: the game (play / run), the
shader preload, or one of its pipeline workers (warm). It offers to end only those left behind: a game
without a window, or a preload or worker whose parent process is gone (a closed window or a killed
preload leaves those). A game with its window, or a preload or warm run whose parent still runs, is
listed but left alone: it may be someone's work in progress.
Tests
Invoke-Pester .\scripts\tests # Pester 3.4 (Windows 10's own) or later 3.x / 4.x; about 3 minutes
They run the launcher and the watcher as separate processes against a stand-in victory.exe compiled
for the purpose, in a temporary VICTORY_HOME: no game files, and nothing of a real setup is read or
changed. Covered: the log summary (crash, close, menus left out), -Compare (verdict, noise, too few
runs), -Set with commas, -Check starting nothing, processes left behind vs work in progress, the
preload's exit code (stopped early, done), the skip choice, the runs file's new columns with older rows
kept, and the watcher's end-of-run line. Not covered: the real game, the window changes and the
fast-core preference (see above for those).
Options
| Option | What |
|---|---|
-Exe, -Victory |
the title's exe and victory.exe; remembered in %LOCALAPPDATA%\victory\rig-launcher.json |
-Check |
checks, settings and the command, nothing started |
-Summary [-Log <file>] |
a run's summary only |
-Cores layer / pcores |
see above |
-Dlss, -Res, -FrameGen 0..6, -NoFrameGen, -SeriesS, -Fps |
override what it picked |
-Preload auto / yes / no |
the shader preload. Auto asks yes / no this time / skip for this version (remembered). It counts as done only when victory.exe's preload process exits with 0; stopped early, the next start says how many pipelines are built and offers to go on |
-Try cores / room, -Compare |
A/B tests and their comparison (above) |
-NoFullscreen |
leave the window as the layer makes it |
-Watch |
a second window with scripts\watch-rig.ps1 (below) |
-Set VICTORY_X=1 |
add or override any switch (-Set "VICTORY_A=1,VICTORY_B=2" from cmd) |
-Yes |
take the default answer to every question |