Files
VIctory-NVIDIA-2/docs/rig-launcher.md
gertvw23 486afc8eff Rig launcher: checks the PC, then plays with settings worked out for it
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 <noreply@anthropic.com>
2026-11-28 19:52:55 +01:00

6.2 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).

  1. 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 ... 0x8007000E warnings ended in a host command list did not close, and the run was over. This is the failure in windows-memory.md.
  2. 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 once it is up, and again after an F1 restart 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

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.

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
-NoFullscreen leave the window as the layer makes it
-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