Files
6gbvram---16gb-ram/scripts/play-nvidia.ps1
T
trustno1-coderandClaude Opus 5.5 77e13a974a Faces move, ray tracing mostly off, intro video fix, picture fixes
- Faces: the face network's 16-bit values travel through integer views; they
  were read as floats and came back as zeros on NVIDIA. Port of
  fxceless/victory-fork pull request 927 (tippythetaidum): emit/halves.rs,
  lower.rs, descriptor/host.rs, draw.rs.
- Ray tracing mostly off: scripts/rt_off_hashes.txt lists the 1,000
  CS_RaytracingResolve and 34 traced-shadow shaders, skipped by
  play-nvidia.ps1 through VICTORY_SKIP_PIPELINES (-RayTracing keeps them).
  The structure builder cannot run on NVIDIA, so every ray missed and rooms
  went white depending on the view angle. The screen-probe and visibility
  traces keep running; skipping them left rainbow glitter.
- Intro video flicker: linear one-level R8 video planes always record their
  copy (texture.rs), so frames of the ring no longer show out of order.
- VICTORY_AMBIENT_MOST (ambient.rs), VICTORY_NAN_SCRUB (emit/lower.rs) and
  VICTORY_PIPELINE_WAIT_ONCE (pipeline/make.rs, on by default).
- Off by default: VICTORY_CONSTANT_MARKS (port of fxceless pull request
  1216), VICTORY_TARGET_VARIANTS (port of fxceless a35c557393), F9 frame
  capture (capture.rs).
- play-nvidia.ps1: the speed set by default, -Quality for the slower set
  with fewer stretched bodies and less rainbow skin. README updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 19:13:08 -08:00

88 lines
5.8 KiB
PowerShell

# Starts the title on an NVIDIA card with the Series S settings measured on an RTX 5070 (about 18-22 fps, no device loss).
# scripts\play-nvidia.ps1 -Exe <path of your own copy's executable>
# -NoSmoothMotion run target\<build>\victory.exe itself. By default a copy named victory_sm.exe is started instead,
# so a Smooth Motion profile set for that exe in the NVIDIA App applies every time.
# -SeriesX the Series X profile instead (slower: about 7 fps at half scale)
# -Quality fewer stretched/jumping bodies and less rainbow skin, at about 13 fps instead of about 20
# -RayTracing keep the title's ray-tracing passes (off by default: see below)
# -Build target\diag (the default, the build all measurements are of) or target\release
# (the release build ignores the ray-tracing skip list: VICTORY_SKIP_PIPELINES is a diagnostics switch)
# -More other settings: -More @{VICTORY_PANEL='1'}
# Run it from a normal window, not as administrator: the driver then keeps its shader cache elsewhere.
param(
[Parameter(Mandatory)][string]$Exe,
[switch]$NoSmoothMotion,
[switch]$SeriesX,
[switch]$Quality,
[switch]$RayTracing,
[ValidateSet('diag', 'release')][string]$Build = 'diag',
[hashtable]$More = @{}
)
$settings = @{
# This fork's play set (scripts\play.ps1, not -Safe): the speed set.
VICTORY_TEXTURE_NO_WAIT = '1'; VICTORY_RELAY = '2'; VICTORY_CARD_STEPS = '2'
VICTORY_WIDE_BACK = '1'; VICTORY_CARD_REHASH_RUNS = '1'
VICTORY_JOIN_COPIES = '1'; VICTORY_INDIRECT_WINDOW = '1'; VICTORY_RELAY_COPY = '1'
VICTORY_INDIRECT_BATCH = '2'; VICTORY_MAP_THREADS = '1'; VICTORY_TITLE_PRIORITIES = '0'; VICTORY_CARD_AWAKE = '1'
VICTORY_SHOW_AFTER = '1'; VICTORY_AMBIENT = '0.8'; VICTORY_D3D12_DRED = 'light'; VICTORY_SKIP_PIPELINES = 'none'
VICTORY_THIN = '1'; VICTORY_JOIN_PARTS = '8'; VICTORY_UPLOAD_AHEAD = '1'
# Cheap picture fixes, on in both sets:
# - Overbright views: without rays the light probes keep the sky's light indoors. The fog is bounded by 1.5 times
# the light around, and what the title left by 2 times the estimate (was 4; ambient.rs).
VICTORY_AMBIENT_AIR = '1.5'; VICTORY_AMBIENT_MOST = '2'
# - Black blobs: a NaN a shader writes is made 0 before blur and the temporal upscaler spread it (emit/lower.rs).
VICTORY_NAN_SCRUB = '1'
# Wait for new shaders rather than skip their draws (a hitch the first time a place is seen). Each pipeline is
# waited for at most once (VICTORY_PIPELINE_WAIT_ONCE, on by default): one that takes longer no longer stops the
# picture in every frame it is in view (pipeline/make.rs).
VICTORY_PIPELINE_WAIT_MS = '10000'
# NVIDIA caps the shader-visible view heap at 1,000,000: without more dynamic slots thousands of draws a frame
# are dropped (descriptor/host.rs dynamic_slots).
VICTORY_DYNAMIC_SLOTS = '524288'
# Half render scale with the title's own upscaler (Series S needs it with a scale below 1; victory-loader hooks.rs).
VICTORY_RENDER_SCALE = '0.5'; VICTORY_OWN_UPSCALER = '1'
# Ray walks end at the root while the structure builder is off (emit/intersect.rs).
VICTORY_BVH_MISS = '1'
# Memory compares on the card instead of the CPU: 11 -> about 22 fps on Series S.
VICTORY_CARD_BUFFERS_MIN_MB = '1'; VICTORY_CARD_BUFFERS_MB = '1536'
# Series S presents the interface as a second plane: laid over the game (compose.rs), else black before gameplay.
VICTORY_COMPOSE = '1'
}
# Ray tracing mostly off. The structure builder cannot run on NVIDIA (its 64-lane programs are refused; upstream
# Marvisak/VIctory pull request 2311), so every ray misses, and the passes that turn misses into light made rooms go
# white depending on the view angle. rt_off_hashes.txt lists the 1,000 CS_RaytracingResolve and 34 traced-shadow
# shaders, which are skipped. The screen-probe and visibility traces keep running: skipping those too left their
# outputs as garbage (rainbow glitter everywhere).
$rtList = Join-Path $PSScriptRoot 'rt_off_hashes.txt'
if (-not $RayTracing -and (Test-Path $rtList)) {
$settings.VICTORY_SKIP_PIPELINES = (Get-Content $rtList -Raw).Trim()
}
if ($Quality) {
# Stretched/jumping bodies: relay stage 1 and no card steps (avatarmanz/VIctory-7900XTX issue 13,
# fxceless/victory-fork issue 89). Rainbow skin: texture refreshes wait for the runtime's remapping.
# Costs about 7 fps (the submitting thread waits about 30 ms a frame for the card).
$settings.VICTORY_RELAY = '1'; $settings.VICTORY_CARD_STEPS = '0'; $settings.VICTORY_TEXTURE_NO_WAIT = '0'
}
foreach ($k in $More.Keys) { $settings[$k] = $More[$k] }
$victory = Join-Path $PSScriptRoot "..\target\$Build\victory.exe"
if (-not (Test-Path $victory)) { Write-Host "No $victory. Build it first (README.md)."; return }
if (-not (Test-Path $Exe)) { Write-Host "No $Exe."; return }
if (-not $NoSmoothMotion) {
# A copy under the name the NVIDIA App's Smooth Motion profile is set for, refreshed when the build changes.
$sm = Join-Path (Split-Path $victory) 'victory_sm.exe'
if (-not (Test-Path $sm) -or (Get-Item $sm).LastWriteTime -lt (Get-Item $victory).LastWriteTime) {
Copy-Item $victory $sm -Force
}
$victory = $sm
}
# (Other settings left over in this window go; where your files are stays.)
$paths = 'VICTORY_CONFIG', 'VICTORY_GAME_DIR', 'VICTORY_CACHE_DIR', 'VICTORY_DATA_DIR'
Get-ChildItem Env:VICTORY_* | Where-Object { $_.Name -notin $paths } | ForEach-Object { Remove-Item "Env:$($_.Name)" }
foreach ($k in $settings.Keys) { Set-Item "Env:$k" $settings[$k] }
$Exe = (Resolve-Path $Exe).Path
$runArgs = @('run', $Exe, '--execute')
if (-not $SeriesX) { $runArgs += @('--console', 'series-s') }
Push-Location (Join-Path $PSScriptRoot '..') # victory.toml is looked for here
try { & $victory @runArgs } finally { Pop-Location }