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]>
This commit is contained in:
trustno1-coderandClaude Opus 5.5 committed 2026-11-25 19:13:08 -08:00
1 parent 3e5fb36392
commit 77e13a974a
27 files changed
+1868 -73

No files matched your search

+34 -5
View File
@@ -1,26 +1,40 @@
# Starts the title on an NVIDIA card with the Series S settings measured on an RTX 5070 (about 20-22 fps, no device loss).
# 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).
VICTORY_TEXTURE_NO_WAIT = '1'; VICTORY_RELAY = '2'; VICTORY_WIDE_BACK = '1'; VICTORY_CARD_REHASH_RUNS = '1'
VICTORY_JOIN_COPIES = '1'; VICTORY_INDIRECT_WINDOW = '1'; VICTORY_RELAY_COPY = '1'; VICTORY_CARD_STEPS = '2'
# 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'
# Wait for new shaders rather than skip their draws (a hitch the first time a place is seen).
# 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).
@@ -34,6 +48,21 @@ $settings = @{
# 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"