A PC port for low-end PCs: it runs the Xbox Series version of the title natively on Windows, from files you own, tuned to play on modest hardware (developed on an Intel i5-11400F, 24 GB RAM and an NVIDIA GeForce RTX 3060 12 GB). Built on VIctory, the compatibility layer and recompiler it started from (by way of avatarmanz's VIctory-7900XTX), with work ported from the other VIctory forks (Credits below); it is its own project now, with its own goals: FSR 3 upscaling and frame generation, lean memory, a release mode for playing.
Ray tracing off: a stable 30 fps in 8-10 GB of RAM first. Then lower frame times and latency, then ray tracing. The test PC: Intel i5-11400F, 24 GB RAM, RTX 3060 12 GB, Windows 11 21H2.
The way there is porting, not emulating: patching the title's renderer so it behaves the way a PC renderer does, rather than having the layer watch and copy the console's shared memory every frame. Shaders are translated ahead of time into a versioned store that is kept between builds.
This repository contains no game files, code or assets. You need your own
copy of the game. It is not affiliated with or endorsed by the game's developer
or publisher. A pre-commit check (cargo xtask policy) refuses them.
The target now: a median of 15 real fps (66.7 ms frames), which frame generation turns into about
30 shown. Where it is, on the opening cutscene of 2026-12-01 (diagnostics build, three runs of
200 s, each of another stretch of it): 69-85 ms median (14.5, 12.9 and 11.8 fps), the card doing 51-54 ms
of work a frame, with VICTORY_CARD_BUFFERS_MIN_KB=128, VICTORY_INDIRECT_BATCH=2 and
VICTORY_TEXTURE_PASS_ASIDE=1 pinned. Its light stretch runs 46-56 ms (18-22 fps) at 1,000-1,900 draws a
frame; its heavy stretches 95-184 ms, half of that preparing the title's work (copies alone 20-48 ms,
26-95 MB a frame). Frame generation no longer holds the real frames (2026-12-01): a present generates
a frame only when the screen would fall a frame behind 30 a second, so the real frames run as fast as
they come and about 30 are shown from 15 real a second up. In play (the user, 2026-11-30, the first
boat mission, release build, the pacing before that change, which held real frames to 15 a second):
12-15 real fps consistently, 22-30 shown; the new pacing has not been played yet.
| Boot, menus, loading screens, intro video | 30 fps (33 ms) |
| Opening cutscene, Series S profile, 1080p, PC FSR 3 at quality scale, diagnostics build, the cutscene of 2026-12-01 | 69-85 ms median (14.5-11.8 fps) over three runs, card work 51-54 ms; each run plays another stretch of it, so runs do not compare with each other (an in-run A/B does). The last release build figure is of the 2026-11-29 cutscene: 11.4 fps median (87.9 ms), card work 71.0 ms, best frames 73.5 ms (the day's unpinned reference 9.5 fps / 104.8 ms); 2026-11-28's cutscene: 11.6 fps median |
The same with frame generation (play-release.ps1), since 2026-12-01 |
real frames not held; a frame is generated only where 30 shown a second is short of one. Measured (diagnostics build, run of 2026-12-01): at 17-19 real fps 29-32 shown a second, 19-37% of the presents generating nothing; under 15 real every present generates (twice the real rate); menus stay at the title's 30 fps with nothing generated |
| Gameplay: the first boat mission | 12-15 real fps consistently, 22-30 shown with frame generation (the user, 2026-11-30, release build, the texture pass lever in, real frames then held to 15 a second): the game plays end to end with an Xbox pad (or a DualSense through DSX). Not yet reached by the test harness, so not benchmarked; not yet played with the pacing of 2026-12-01 |
| Memory | 20-23 GB private in the stream-ins (22.9 GB at the peak): on a 24 GB PC it pages, and the frame rate follows free RAM. The drops come as an area streams in (2026-12-01): the kernel's "pages read on hard faults" in the diagnostics log's memory line - 50,172 pages a second (199 MB) as an area streams in, and 34,204 at the cutscene's second stream-in, where frames take 179-189 ms, against 108-2,771 in the steady stretch - are the title reading its files (run 32): line by line 0.75-0.98 of victory.exe's ReadFile bytes in the second stream-in (4.1 GB in 48 s; 4,153 hard faults in all processes against 900,924 pages), and in the first its own reads plus 1.3 GB of paging (4.4-5.6 GB of the process out of its working set then, 216-497 MB free); What holds it: the card's use plateaus at 9.06-9.46 GB because windows of title memory are lean on the card only up to 80 % of its budget (window_card_pct); every window past it is a buffer in the PC's memory (0.75-2.2 GB) that shaders read over the bus. What the process holds (run 18's memory map, 2026-12-01): of 20.5 GB private in the steady stretch, 6.8 GB is the port's own (3.1 GB shared buffers, 3.1 GB upload buffers - 1.8 GB of it list scratch for under 75 MB live - 0.6 GB Rust heap), 2.9 GB the title's told allocations, and 11.4 GB untagged, by run 21's sizes mostly write-combined memory (11.8 GB committed, 1.4 GB in RAM: the D3D12 runtime's and the driver's heaps; run 18 also saw 4.2 GB not write-combined, three 1 GiB reservations among it that fill as the first area streams in and that no path of the port makes, nor the title's own code: run 19). The driver's shader cache holds more than any of them (run 19): NVIDIA's DXCache file, 8 GiB mapped, 6.7 GB in RAM at boot and 3.0 GB through play. Run 19 took the stream-in stalls for page faults on trimmed pages of that cache read back a page at a time (no pipeline is made in a stream-in, run 21; 2.88-3.8 GB read in the first stream-in against 0.44 GB written to the pagefile) - run 31 refutes it: page by page (VICTORY_CACHE_PAGES), the storms bring in 0 MB and 1 MB of the cache; the 3.1-3.9 GB a storm reads are pages of no file the process maps and stay nowhere, and the hypothesis was decompressions from the PC's compressed-page store (the Memory Compression process holds 967,264 of the PC's hard faults since boot against 28,237 for the next) - run 32 (VICTORY_FAULTS_WHO=1, hard faults by process) refutes that too for the second stream-in: its pages are the title's own ReadFile, and its long frames are the end scene's card work (62-140 ms a frame against 53-55) with the port's preparing under the stream-in beside it (62-126 ms: 3-10 times as much copied, 28-55 ms for 37-119 MB) leaving the card idle behind it 10-50 ms; only the first stream-in's excess (1.3 GB of 4.2 GB) is Memory Compression's. In the second stream-in the write watch alone is 56-102 ms of 143-174 ms frames. The stream-ins decide the whole-run median; the steady stretch runs at 16-19 fps. The driver keeps the cache whatever the port asks (run 20), and it should: its pages are the compiled shaders in use. Giving memory back does not reach the stream-ins either (run 21: 1.1 GB of the windows' PC sides onto the card at VICTORY_WINDOWS_CARD_PCT=90, the driver's cache grows into the room - 4.7 against 3.0 GB in RAM - and the stream-ins read as much; dead at 90). The same for the end scene in the current build (run 30): 3.46 GB on hard faults in 48 s, and in every run of the day 3.1-3.9 GB in the cutscene's first storm and 2.4-3.6 GB in the end scene's; not the cache's pages (run 31), so there are none to hold, and the title's own files (run 32), so nothing to hold either. Closing the browser and Discord changes nothing: the process grows into whatever is free (run 18: lowest free 106 MB with 18.1 GB free at launch). Tried and memory-neutral: the 1 MiB window grid with both holder switches. The stream-ins' slow seconds (runs 22-24, 2026-12-01): neither room for the driver's cache, nor a long rest between protection changes, moves them; in 3 of about 44 stream-in seconds the port's own remapping of title memory is made slow (hundreds of changes of 0.5-0.8 ms a frame, 84-196 ms a frame) and the write watch's askings only wait for it - what slows the kernel's calls there is not named. The whole-run median is decided by three light stream-in lines at 75-80 ms where the card's work (60-68 ms) and the CPU path (preparing 26-52 + rest 23-53 ms) are both over the 66.7 ms of 15 fps. Timelines of those lines (run 25, 2026-12-01): the card is not throttled, the steady stretch is the card's, and a stream-in frame is the card's, our submitting thread's or stalled with the card empty; the worst stall is the port's own - the pool of buffers for views off their copy's elements runs dry between the map's sweeps, every new copy then makes a buffer under one mutex (549.6 ms of thread time in the cutscene's first second), and the sweep holds its lock 28-56 ms. Run 26 (texaside-ab-exact-1201, in-run A/B) tested both behind switches: with VICTORY_EXACT_TRICKLE=1 (the sweep in slices of 64 copies from a cursor, the idle ones' buffers to the pool as it goes) the port's stream-in storms are gone in its phases - buffer-making 0.0-0.1 ms a frame against 44-305 beside it, the sweep's lock time 0.2-0.8 against holds of 8.7-78 ms - and VICTORY_EXACT_BATCH=1 (up to 16 buffers under one wait) has nothing to do once the trickle feeds the pool, and nothing to give where the pool is dry (run 29: a dry pool's cost is making each buffer, 1.1-1.5 ms under paging, not the wait after it); the phase means favour the trickle (84.1 ms against 93.8) but only two phases paired cleanly; run 27 (texaside-ab-trickle-1201, the trickle alone in a two-phase A/B) paired two again, but its per-second fits (and run 26's) put the port's storm thread time on the frame's tail - 0.1-0.2 ms of the second's median and 0.3-0.5 of its p95 per ms of it - so the trickle is worth about 18 ms a frame and 10 points of long frames in stream-in 2's storm seconds and nothing on the median; run 28 (texaside-trickle-on-1201, the trickle on for a whole run) confirmed it - 14 % over 100 ms and a p95 of the second medians 93 ms against 15 % and 99.6 never on, the storms gone wherever the map has idle copies - and it is pinned in scripts/play.ps1 by the user's word (2026-12-01); the storms remain only where the pool is dry (the cutscene's first seconds) |
| Faces | mouths and expressions move (translator 1008); black faces at some angles, a mask-like waxy skin, and other visual bugs remain (below) |
Where a frame went on the 2026-11-29 cutscene (~88 ms): two walls. The card did about 71 ms of work a frame (every
run summary says so there, card work) against the 67 ms budget for 15 fps, and the submitting thread's own
chain was about 84 ms (most of it preparing the title's work, ~55-65 ms: bringing copies of console memory up to date,
the write watch, copies on the card, copying back what shaders wrote). What has been ruled out as the card's
limit, each by a run: pixels (half the render scale: +0.5 fps), the title's waits between commands (all left
out: no gain), and joining indirect executions (none can join). The card's time is the commands themselves,
and some of it is reading the title's memory over PCIe: copies of 128 KiB and up now live on the card
(VICTORY_CARD_BUFFERS_MIN_KB=128), worth 11 ms of card work and ~17 ms of the frame; and the prop cull's
6.33 ms was measured to be the bus (with its 174 MB window in the card's memory it falls below 1.3 ms).
On the cutscene of 2026-12-01 the card does 51-54 ms of work a frame (under the 67 ms budget) and the frame
is 69-85 ms: the wall is the CPU's side, as before. execute_indirect is timed by part now (diagnostics build,
the light stretch, a frame over all recording threads, 1,550-1,775 calls): finding the pipeline and the
arguments 2-3 ms, their copies 0.4-0.7, batches 6.6-9.8, clamps 0, binding 68-99, the record itself
3.9-13.5. Of the descriptor tables bound in a frame (121-188 ms over all threads) those made afresh are
81-150 ms (1,850-2,150 tables, 18,000-20,000 slots) and entries read directly 24-32 ms: making tables was the next
thing to cut until runs 43 and 44 measured its ceiling - 3-6 ms of a quiet frame at most (below). Run 35 placed it
(counters inside the bind): the tables made afresh are constant-buffer
tables (the host wants constant buffers 256-byte aligned, the console 16, so a table holding one is made afresh
whole; 1.33-1.44 constant buffers in each), a view is made in 2.9 us quiet and 10 in a storm, and the port makes
about as many views a frame as the title creates (7,062 against 6,978 asks quiet; 17,263 against 18,418 in a
storm), so keeping views across binds has little to give. Larger than any step of the binds is the heaps'
records pass - every slot the title wrote is made under a lock of 16,384 and the texture queue's one mutex,
78.8 ms of a quiet frame and 100-371 ms of a storm's (run 36: of its 43-59 ms a quiet frame the lock is a third, the noting a half, the making a fifth, the rest a tenth; VICTORY_RECORDS_PASS_TABLED, leaving to the texture
pass the textures of slots a made-afresh table used just then, never had a slot to act on - the title's heap is a ring, a written slot comes
back after ~80 frames).
Run 37: half of every table made afresh is slots no entry names and no pick selects (28-54 ms of thread time a quiet frame) - and
the title's shaders read them: nulled, the scene loses its lighting, so they stay, and the 20-45 thread-ms they take are not the
frame's (±2 ms in the quiet phases). The texture pass lever, pinned for its gain on the 11-29 cutscene, measures neutral
on this one (in-run A/B, 4 s phases: on minus off +0.3 ms mean, +1.0 ms median, 8 of 16 phases faster), so
the pin stays and it is not what moves this scene.
Run 40's captured frames (the first run with pictures: VICTORY_CAPTURE was set by every run and never read until
20:18) show the picture whole with them kept - the splash, the menu, the loading screens and the lit scene. The pass's
"rest" that run 36 printed was the whole pass (the line subtracted counters it had already taken; fixed), and the pass
runs aside: the submitting lane waits 0.04-2.6 ms a frame for its round, so its thread time is the storms' cost, not the
quiet frame's.
Runs 43 and 44 measure the path's ceiling from the other side, with the picture right: a 40 us spin at every table bind
(80-145 thread-ms added a frame on the recording threads) moved the quiet frame +4 ms (63.4 -> 67.4 mean over nine
phases), while 8.2 ms spun on the submitting lane moved it +5.6 (5 of 5 like-draw pairs slower on). The binds' thread time
reaches the quiet frame about 3-5 parts in 100 against the lane's 56-68: the whole descriptor-tables path is worth
4-8 ms of a quiet frame at most (3-6 of them the tables made afresh; the heavy phases about a tenth of their thread
time), and what the frame takes at about 0.7 ms a ms is on the lane: the buffers' copies (24 ms a frame), the copies in
the card's memory (14), the write watch (12), the copying back (12).
Next (docs/AGENT_PROMPT.md, "Current task"): the frame's wall is the CPU's chain, not the card (measured
2026-11-30 with VICTORY_TIMELINE, 15 traced frames: the card running submissions is 2.8 ms of a ~108 ms
chain; the card is fed late, 64-75% busy). The first lever on that chain is in and pinned
(VICTORY_TEXTURE_PASS_ASIDE): the frame's texture pass ran on a recording thread inside a list call, 15-18 ms
a frame, and sorted 3,192 slots a frame of which 24 are uploaded; it now sorts on a thread of its own and the
recorder walks only those 24 - in-run A/B: a gain in every same-stretch pair (98.1 -> 81.3, 85.6 -> 79.0,
76.8 -> 74.4 ms), the close wait 0.0 ms. Next on the chain: execute_indirect's binding (timed 2026-12-01,
above), the oversubscription, and the refreshes on the chain. Before that, the card's own
work: the prop cull's 6.33 ms a frame is measured to be the card
reading its 174 MB window over the bus. VICTORY_WINDOW_PIECES tested which of its traffic carries that, and
the piece-lever family is closed: its first form (every command of the window bracketed) measured slower, the
reworked form (the cull's commands, written views) measured the writes carry nothing (366-590 ns an
invocation, as without), and the read ranges are never on the window to piece: the title places views at
ring positions inside its big heap, and the port gives those a copy of their own bytes in a PC-memory buffer.
So the cost is the cull's reads of its 174 MB window. The mechanism is found (2026-11-30): the window sits in
a heap the port opens on the title's own memory, and the runtime forces such a heap to be cross-adapter
shared; measured three ways, the cull costs 6.33 ms in place, under 1.3 ms in the card's memory, and under
1.5 ms in a plain PC-memory buffer that is not shared (VICTORY_PORT_BIG_SHARED, a diagnostic switch, off) -
the sharing is what makes the card's reads slow, not the pages or the PCIe distance. Neither fast
placement is affordable as it stands: the card copy costs the frame 32 ms, the PC-memory copy 216 ms in
timing mode. The 32 ms are accounted for: 45 of the title's dispatch shaders are given the whole heap as one
flat view to write through, so a copy on the card must hash all of it every frame to find the few kilobytes
that changed. No safe way to narrow that is known, so the heap stays where the title put it. Next: what is
left on the card by our own GPU timing
(VICTORY_GPU_TIMING=1: each command's time on the card). NVIDIA Nsight Graphics is not used: its captures
crashed the game, and the one trace it saved was of frames with most passes still being built. Measured and
kept along the way: batched clamps, the release build, buffer views brought up to date once, helper-thread
priority, thread counts by CPU; tried and dropped, each with its numbers: docs/STATUS.md.
Nothing here holds a faster PC back on purpose, with three settings to know:
- Scaled by the machine already: the threads that translate list calls (two thirds of the logical cores, 4-16), the pools that land and spread work (by core count), pipeline workers, the card memory budget and its reserves (percentages of the card's budget), how long released objects wait (by installed RAM), texture copies kept on the card (by the card's memory).
- Choices, not limits (set in
scripts/play.ps1, each with-Moreto change):VICTORY_OUTPUT=1920x1080(the output;3840x2160for 4K),VICTORY_FFX_SCALE=0.667(FSR 3's render scale;1for native), andVICTORY_FG_TARGET=30with frame generation: about 30 frames shown a second with the real frames never held (a present generates a frame only where that rate is short of one). A faster PC generates fewer (from 30 real a second up, none);-More @{VICTORY_FG_TARGET='60'}aims higher,VICTORY_FG_TARGET='0'generates at every present,VICTORY_SHOWN_CAP='60'holds real frames to a rate as well. - Tuned on this PC and worth trying elsewhere:
VICTORY_LEAVE_OUT(two passes left out),VICTORY_WINDOW_REACH_KB(off here for RAM;1024fixes vehicle panels where RAM allows).
Progress, measurements and plans: docs/STATUS.md. The other forks' pull requests reviewed for this PC: docs/pr-review-2026-11-26.md.
Reported by the user in play (2026-11-30, the first boat mission, release build), all of them predating that day's frame-rate work: none of them was caused by the texture-pass lever or the card-buffer pin. They are the next picture work, after frame rate; leads for each are in docs/STATUS.md ("Visual bugs").
| What | Where | |
|---|---|---|
| 1 | Lighting is wrong in many places | gameplay |
| 2 | Faces turn black at some angles | cutscenes and gameplay |
| 3 | Textures pop in late | gameplay, while streaming |
| 4 | Shadows and vegetation flicker in and out | gameplay |
| 5 | Face skin looks waxy / mask-like, off-tone and glossy, on some characters | some sessions |
| 6 | The ocean looks like snow, or carries far too much white foam | the boat mission's water |
You need Windows 10/11 x64 (tested on Windows 11 21H2), a CPU with AVX2, a Direct3D 12 GPU with shader model 6.6 and mesh shaders, Rust (the toolchain is pinned), the MSVC build tools, and your own dump of the title.
git clone https://github.com/HypeLobbiesHD/ViceLite
cd ViceLite
copy victory.example.toml victory.toml # then set your paths, outside this folderThen one of two ways to play:
| build | script | what it is for | |
|---|---|---|---|
| release | cargo build --locked --release -p victory |
scripts\play-release.ps1 -Exe <your copy's executable> |
playing: no diagnostics compiled in (smoother: 17% of frames under 50 ms against 9-10%), frame generation on, real frames not held and frames generated only up to 30 shown a second (-More @{VICTORY_FG_TARGET='0'}: a frame at every present; -NoFrameGen for real frames only), FSR 3 at quality scale, F3: the stats overlay, every measured default |
| debug | cargo build --locked --profile diag -p victory --features diagnostics |
scripts\play-debug.ps1 -Exe <your copy's executable> |
measuring and fixing: timers and counters in the log, VICTORY_AB, frame generation off unless -FrameGen, F8: capture the frames you pick (with their draws traced); every number in docs/STATUS.md is of this build |
Both run scripts\play.ps1, which holds the settings (-Build diag|release picks the build when it
is called itself) and takes the same options (-More @{...}, -Console series-s, -SkipRayPasses,
...). The two builds share the pipeline library: pipelines one has built the other uses.
play.ps1 also puts Microsoft's D3D12 Agility SDK runtime next to victory.exe
(D3D12Core.dll, from the Microsoft.Direct3D.D3D12 NuGet package, version
1.620.2, unpacked to VICTORY_AGILITY_DIR; it is never in this repository). On
older Windows 11 builds it is what lets title memory be read in place.
-NoAgility uses the runtime in Windows instead.
Memory allocator. The build uses Windows' own heap. cargo build ... --features mimalloc
builds with mimalloc (MIT, fetched by Cargo from
crates.io and compiled in) instead; measured on the RTX 3060 PC it gave the same frame rate and
0.7 GB more memory, so it stays optional.
AMD's FSR 3 upscaler (recommended, optional). By default the game draws two thirds of the
width and height (1280x720, quality scale) and AMD's PC FidelityFX DLL upscales them to 1920x1080:
faster than the full scene and sharper than the game's own upscaler. Half scale
(-More @{VICTORY_FFX_SCALE='0.5'}, 960x540) is about 2 fps faster in light scenes, and softer. The DLL is AMD's (amd_fidelityfx_upscaler_dx12.dll, signed, 57.7 MB, from
AMD's FidelityFX SDK v2.4.0 on GitHub) and is never in this repository. If play.ps1 does not
find it (in VICTORY_FIDELITYFX_DIR, [paths].fidelityfx_dir, or %LOCALAPPDATA%\victory\fidelityfx)
it asks whether to download it, checks its size and AMD's signature, and remembers a "no"
(fsr-declined.txt in that folder; delete it to be asked again). Without it the game's own
upscaling runs at its own scale.
Frame generation (experimental, opt-in): scripts\play.ps1 -FrameGen. On top of the FSR 3
upscaler, AMD's FidelityFX frame generation adds frames between the real ones, as many as that rate is
short of 30 shown a second (VICTORY_FG_TARGET=30: at 15 real a second every present gets one, at 20
every second, at 25 one in five, from 30 real up none; the real frames are never held)
(Slaktarn700/SlaktarnVI's port, wired into this fork; the pacing is this fork's). It needs AMD's signed
amd_fidelityfx_framegeneration_dx12.dll (29.7 MB, same SDK release); play.ps1 offers to fetch it
into a folder of its own (VICTORY_FRAMEGEN_DIR, [paths].framegen_dir, or
%LOCALAPPDATA%\victory\fidelityfx-fg), never touching the upscaler's. The window title then shows
the real rate and the shown one. It costs some card time, and it may smear on fast motion: if it
does, play without -FrameGen.
scripts\play.ps1 -Safe leaves out the newest, faster ways; try it first when
something is wrong. -RayTracing turns the title's ray-traced indirect light on.
For PC FSR 4.1.2 (from avatarmanz/DexNom; not tested on the RTX 3060 yet), set [paths].fidelityfx_dir in victory.toml or
VICTORY_FIDELITYFX_DIR to the folder containing AMD's signed
amd_fidelityfx_upscaler_dx12.dll. Use the DirectX 12 upscaler in
Kits/FidelityFX/signedbin. AMD FSR SDK 2.4.0
scripts\play.ps1 -Exe <path> -Fsr4K quality selects 2560×1440 input for
the retail 1.0.2.1 Series X 4K SDR profile. balanced selects 2258×1270
and performance selects 1920×1080. All three output 3840×2160. With
victory run directly, set VICTORY_FSR_4K to the preset name.
The log reports the provider at context creation and the actual input and
output sizes at the first successful temporal dispatch. The title profile
and PC FidelityFX bridge were ported from DexNom/VIctory.
On a hybrid-graphics PC, the runtime and offline pipeline checks prefer a
high-performance adapter with Shader Model 6.6. The runtime logs its adapter
name, PCI vendor and device IDs, and dedicated VRAM. Set
VICTORY_D3D12_ADAPTER to a zero-based DXGI index or part of the adapter's
name to select it explicitly. With the launcher, pass
-More @{VICTORY_D3D12_ADAPTER='NVIDIA'}.
Before the first run, ahead of time (both can be stopped and go on later):
target\diag\victory.exe shaders <the shader archives> # every shader translated, minutes
target\diag\victory.exe warm --used # pipelines earlier runs drew with, for a new driver or buildThe first run after a new build of the shader translator is slow and partly black, and that is
expected. When the translator changes (its TRANSLATOR_VERSION in crates/victory-shader/src/lib.rs
goes up, as with the NaN guard at 1007), every shader's translation is new, so every graphics
pipeline made from it is new too. warm fills only the graphics driver's own disk cache, not the
layer's pipeline library (<cache>\pipelines\host-pipelines-agility.bin), which is what lets a run
start without building pipelines; that library fills while the game runs. So the first run builds
pipelines as the game asks for them (hundreds waiting at a time, their draws left out meanwhile: a
black or broken picture at 1-2 fps) and saves them as it goes. On this PC it takes 3-4 full
runs before every pipeline is built; until then cutscenes go black in stretches and the frame
rate is not the build's. Let each run go a few minutes (a cutscene is fine) and judge the picture or
the frame rate only after that. How to tell it is done: the frame line (every 5 s) ends
dropped N without a host pipeline (0 being made); then a run is a measurement. The other line,
dropped N/frame without a host pipeline: ..., keeps about 400 a frame in every warm run: ray-tracing
passes left out on purpose, not pipelines still being built.
The same happens after changing a switch that is part of the pipelines, with no new build:
VICTORY_ANISO and VICTORY_MIP_BIAS (the samplers fixed in a pipeline's layout change, so every
such pipeline is new) and the like. The library keeps every version, so going back to earlier
settings costs nothing; the first 3-4 runs with a new combination are warm-up runs.
What a run is, and the benchmark. A run is one unattended start of the game from the menus into the opening cutscene, made the same way each time:
scripts\autotest.ps1 -Exe <dump>\game_scarlett_master.exe -Name <name> -Console series-s -SceneLines 40 -Keys '15:Enter,20:Enter,25:Enter,30:Enter,35:Enter,40:Enter,45:Enter,50:Enter,55:Enter'It starts the game with play.ps1's defaults (plus any -More @{...} being tested), presses Enter
every 5 s from 15 s to 55 s to get through the menus, and ends itself after 40 frame-rate lines (one
every ~5 s) of a scene with 500 or more draws a frame: about 200 s of the cutscene's heavy part,
4.5-5 minutes in all. Nothing else heavy should be running (a browser playing video took 15-30% of
the CPU and moved the numbers). The benchmark is the median ms a frame (and its fps) over those
40 scene lines, the scenes line of the summary; with it, the share of frames under 50 ms
(target), the worst frame (spread) and the lowest free RAM (memory). The cutscene does not
play the same stretch in every run (the key presses land differently), and since 2026-12-01 almost every
run plays a different cutscene: runs do not compare with each other, so a change is judged by an in-run
A/B (VICTORY_AB=<seconds>,<switch>: phases with the switch on and off, each compared with its
neighbours; 4 s phases give more pairs than 15) where it can be, or by more than one run where it
cannot. Frame generation stays off in benchmark runs: the target is real frames (15 a second or more
shows 30 with it).
The stats overlay (F3). A HUD in the upper left corner with what the usual overlay tools show,
drawn by the port itself: the rate on the screen in large digits (with frame generation: every frame
shown; the real rate beside it), a frame-time graph, the GPU with its load and - on an NVIDIA card,
from the driver's own sensors - clock, temperature, power against its limit and fan, video memory, the
CPU with a bar per core, and memory twice: the VICE LITE row the game's own commit charge, the RAM row the
PC's physical memory and its commit charge (CMT, which counts the page file too). VICTORY_PANEL=1 starts
with it shown; F3 shows and hides it while the game window is in front, in both builds. With frame generation the box is drawn
into the frame generator's UI layer too, so it sits sharp and unmoved on the generated frames. A
screenshot of the game carries it; a screen capture of the whole desktop does not see the generated
frames (they are shown by a different swap chain).
Capturing frames at a key (F8, debug build). Where you see something wrong - a HUD element
dragging, a flicker - press F8: the next 6 frames are saved as PNG (half size) with their full
draw traces (frame-<n>-ops.txt) under <the program's folder>\captures\<date-time>\, and the log
names the folder. VICTORY_CAPTURE=<folder> puts them elsewhere, VICTORY_CAPTURE_BURST=<n>
changes how many. Start it from scripts\play-debug.ps1: no timer and no automatic keys - the game runs
until you close it. (The cutscene benchmark ends before any HUD shows, so HUD artifacts need a played
session like this.)
Measuring a run. scripts\autotest.ps1 runs the game unattended and writes
<data>\runs\<name>-<time>\summary.txt (scripts\runsummary.ps1 makes it from any run's
log.txt; a diagnostics build is needed). Besides the frame rate over time it ranks where the
heavy scenes' frames go, biggest first (each part of preparing the title's work, the wait for the
card, the copy-back, the rest), says what earlier work was waited for, how many refreshes copied
nothing, how busy the card was and how much work the card does a frame (card work: what a change
to what the card does has to shrink), how many frames were under 50 ms (the steady-20 target) and how
often free RAM was under 1 GB.
Commands, debugging switches and upstream's own description:
docs/README-fxceless.md. Every VICTORY_... switch is
described in a comment where it is read.
Controllers. The game reads pads through XInput (crates/victory-hle/src/modules/gameinput.rs):
an Xbox One / Series pad (USB, Bluetooth or the wireless adapter) works as it is; plug it in before
or during play. A PS5 DualSense (or PS4 pad) is not an XInput device, so the game does not see it
on its own: run DSX (DualSenseX) or DS4Windows set to emulate an Xbox 360 controller, and the game
sees that. The keyboard drives a stand-in pad meanwhile (W/A/S/D and I/J/K/L sticks, Enter, Esc, arrows;
FALLBACK_BUTTONS in that file). Mouse look is not in this fork.
NVIDIA-specific, in this fork: 32-lane waves where a shader allows it, descriptor heaps sized to the driver's 1,000,000 views, title buffers placed in video memory sized for 10-12 GB cards, a pipeline library per D3D12 runtime, and the Agility SDK. Taken from the forks below:
In short; the reasons and the measurements are in docs/findings.md.
- List calls are written down, not carried out, on the title's threads
(
VICTORY_THIN): eight threads of ours translate them. - Submissions are prepared by a thread of ours and joined
(
VICTORY_ASYNC_SUBMIT,VICTORY_JOIN_PARTS), with what can be spread over threads spread: refreshes, compares (AVX2), descriptor records, landings. - What shaders wrote comes back beside the write guards, by the dwords that
changed, on a thread of its own (
VICTORY_RELAY,VICTORY_LAND). - Buffer fills that need bytes still on the card are done on the card
(
VICTORY_CARD_STEPS) instead of waiting for it. - The title's writes are caught more cheaply: one view opened at a fault, blocks that rest, places in the title's code that look before they write.
- Textures go up on a copy queue of their own and a slot shows one only after its upload ran, which also ended a device loss that came every 15 minutes or so.
- Boats float: textures that shaders write and the title's CPU reads go back to title memory (from fxceless and Geckomacabre, on by default here).
- Draws whose parameters the card reads from title memory are checked in batches, not one by
one between two full waits each (
VICTORY_PORT_CONSTANTS_ORDER_ALONE=0, the default): 8.5-8.9 -> 10.5-10.9 fps median on the RTX 3060. It can make objects come and go (palms in the boat mission's cutscene did, in an earlier test): if vegetation or objects pop in and out, compare with-More @{VICTORY_PORT_CONSTANTS_ORDER_ALONE='1'}. - A fill that a copy at its place in an earlier list writes into no longer stops the whole
submission (
VICTORY_PLACED_ORDER, Vice-Tay's default): it is cut behind that list. 7.2 -> 8.9 fps median on the RTX 3060. - Trees, palms and lamp-lit rooms no longer flicker (avatarmanz,
VICTORY_PORT_CONSTANTS_ORDER), and title textures are uploaded right before the list that samples them. - The frame's texture pass runs on a thread of its own (
VICTORY_TEXTURE_PASS_ASIDE, pinned): the pass sorted 3,192 descriptor-slot views a frame of which 24 are uploaded, on a recording thread inside a list call - 15-18 ms a frame on the frame's chain. It now sorts on its own thread and the recording thread walks only the ones that need an upload, at the list's close. In-run A/B: a gain in every same-stretch pair (98.1 -> 81.3, 85.6 -> 79.0, 76.8 -> 74.4 ms a frame). On the cutscene of 2026-12-01 it measures neutral (+0.3 ms mean, 8 of 16 phases faster), so it is kept for the first cutscene's gain and moves nothing on the second. - Frame generation fills up to a rate instead of doubling (
VICTORY_FG_TARGET, 30 with-FrameGen): a present generates a frame only when the screen would fall a frame behind that rate, so the real frames are never held and 30 are shown from 15 real a second up (under 15, every present generates). Measured on the RTX 3060: the proxy made exactly the frames asked of it in every report, with 19-37% of the presents generating nothing. - Frame record and replay with per-pass times and shader variants compared turn by turn (docs/replay.md).
This is a tree of other people's work with more on top. The history is kept, and commits taken from elsewhere name the commit and its author.
- VIctory by Marvisak and its contributors: the loader, the runtime services, the Direct3D 12 back end and the shader recompiler.
- avatarmanz/VIctory-7900XTX: the fork this one is based on (renderer patches, the unattended test harness).
- fxceless/victory-fork: the fork avatarmanz's started from, and the people whose pull requests it carries.
- readmet3xt-lab/foxhound: soft and lazy views of the title's pages and page-mapping copies by runs (ported with their author kept).
- trustno1-coder/VIctory-NVIDIA: pull requests ported here (texture refreshes under one mapping read, by its contributors; the recheck that ended confetti faces).
- DexNom/VIctory: ray tracing fixes, cube gradients, sparse textures.
- Belobug/VIctory-Belobug-AMD: the ambient light idea, pipeline workers, and work by romainhedouin.
- Slaktarn700/SlaktarnVI: AMD frame generation
(
framegen.rs, ported by hand). - LGlong1/VIctory-lean-fsr4k: which settings draw faces black, bisected on an RX 6750 GRE.
- FQY55kai/ZJOU-VICTORY.
- myokex/victory-amd: the guard over every view of a page (with Spexivus, joroyt and tightfall), and Joshua Odom's reads into title memory.
- Geckomacabre and cxy0072019-sketch: the texture read-back.
- XCL (GPL-2.0-only) was read for how the same title behaves under another layer; no code of it is here.
- This fork's changes were made with Claude Code.
GPL-3.0-or-later, as VIctory. See LICENSE; the one file that is not covered is named in docs/asset-policy.md.