- upload.rs: 32 pieces of 64 MiB at the top of [4 GiB, 2^37) are reserved first
thing in main, before the process's allocations can fill that window. On
players' PCs it was full by the first ray-traced frame, the first upload
failed and the title threw "D3D12 XDXR Error: Failed to allocate upload
buffer". Past the pool: the window as before, a failed search not repeated
for a second (with PR #88's per-frame limit in memory.rs), then the heap
instead of null.
- main.rs: D3D12SDKVersion follows the version of D3D12\D3D12Core.dll beside
the exe (a repack's 1.618 or 1.620 gave 0x887E0003 against our 614).
- VICTORY_HOME: one folder for settings, saves, caches, logs and downloads
(a full C: drive, issue 135).
- README: both.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
F1, MFG UNLOCKER (MOD, RTX 20/30), off by default. When it is on, the
launcher fetches MFG Unlocker v1.7.2 from its author's GitHub release
into %LOCALAPPDATA%\victory\mfg-unlocker. The zip and MFGUnlocker.dll
are both checked against the SHA-256 the author published
(scripts\get-mfg-unlocker.ps1). victory.exe then loads the DLL under
its own name before the device is made or Streamline is loaded, so
nothing is renamed or put beside the game.
- RTX 20 and 30 cards with DLSS on are asked once at the first start
(default No), unless the choice was made or a mod DLL is already
beside victory.exe.
- `victory get-mfg` fetches it by hand.
- The menu explains the item while it is picked.
- The log records the load.
- README updated.
The download and the mod itself are not tested here (RTX 50 only). The
load path was tested with a Windows DLL in its place: loaded before
Streamline, game ran normally.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Windows 10: every pipeline was refused (E_INVALIDARG) and the game closed within seconds, because
Windows 10's own Direct3D 12 stops at shader model 6.5 and the translated shaders are 6.6.
victory.exe now exports D3D12SDKVersion = 614 and D3D12SDKPath = .\D3D12\. Where the GPU runs
below 6.6, `play` offers Microsoft's D3D12Core.dll (Agility SDK 1.614.1, from nuget.org; pinned
SHA-256 and Microsoft signature checked) into D3D12 beside the exe, then checks again and stops
with a clear message if it still can't. `victory get-d3d12` does it by hand. The host logs its
shader model and runtime file. Windows 11 keeps using its own newer runtime.
- F1 > PRELOAD SHADERS: the restart passed the script launcher's -Preload to victory.exe, which
refused it, and the window closed at once. It now sets VICTORY_PRELOAD=1, which both launchers
read, and a failed restart keeps its window open.
- AMD FSR 3 files: offered for download where FSR 3 would be used (`victory get-fsr`,
Get-AMD-FSR.cmd, scripts\get-amd-fsr.ps1; pinned hashes, AMD signature).
- First start of a new victory.exe: it ran at a flat 14 fps for the whole session and normally from
the second start on. The first start now plays 20 s with a notice, marks that exe under
%LOCALAPPDATA%\victory\warmed and restarts by itself once (VICTORY_WARMUP_RESTART=0: not done).
- RTX 20/30 with DLSS frame generation running (MFG Unlocker as winmm.dll beside the exe): the
start notice says it is unlocked by a mod, and the log names DLLs beside victory.exe.
- README: the above.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Where each log is (%LOCALAPPDATA%\victory\logs for the play log, %LOCALAPPDATA%\VIctory\data\7952987A for crashes.log and temp\*.crash.log), at the top of the README.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- FSR 3 frame generation (AMD FidelityFX 2.x DLLs, never in the repository:
VICTORY_FIDELITYFX_DIR or a fidelityfx folder beside victory.exe), 2x at most,
with the HUD-less picture so the HUD is not doubled. Series X needs DLSS upscaling.
- F1 menu: FRAME GEN TYPE (auto, DLSS, FSR 3); PRELOAD SHADERS; unset rows read NOT SET;
save and restart opens its own console window.
- A notice at the start (30 s on the picture, and in the console): the GPU, which
frame generation runs, and why not (DLSS off, NVIDIA files missing, or the card).
- victory preload / --preload; warm keys its work to the program's path.
- Logs are named victory-nvidia-...; README: what each card supports, first.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Started with no command (a double click) or as `victory play [exe]`, the
program finds game_scarlett_master.exe beside itself and starts it with the
settings scripts\play-foxhound.ps1 gives it, built in (apps/victory/src/play.rs):
the same switch table, what the F1 menu saved over it, DLSS and frame
generation made ready where NVIDIA's files are, the frame rate cap, and
`--set NAME=VALUE` for anything else. Nothing is written beside the program
or into the title's folder: the menu's settings file, a log for every start
(play-<utc>-<pid>.log, the newest ten kept) and NVIDIA's files are under
%LOCALAPPDATA%\victory, where the caches and saves already are.
NVIDIA's DLSS and frame generation files stay NVIDIA's and are not part of
the program: a first start without them asks once whether to fetch them from
NVIDIA's GitHub, and `victory get-dlss` does it later (the fetcher script,
embedded, with a new -To).
victory-core logging: VICTORY_LOG_FILE adds a plain-text log file.
README: the quick start is the release's exe (download, put beside the
title, double click); building it yourself is kept below.
Checked on an RTX 5070: no title beside it (a clear error), a file of that
name (found, Streamline loaded), get-dlss (66.6 MB in 38 s, files identical
to the SDK's), two muted runs of the title from a folder of the program's own
(25-28 fps in the opening rooms, right picture, nothing written beside it),
and a start from the title's folder by the user.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Water: on hosts of 32-lane waves the water's two tiled light programs
(water_shading:CS_TransmissionVolumetrics_Tiled 5dc3b25986622949 and
_Tiled_LocalLights 6f225b641c5b0708) translate in the wave-wide form only,
and in that form leave whole tiles of open water dark (around boats, along
shores, under bridges) at about 15 ms of the card a frame. They are left out
there (pipeline/make.rs); VICTORY_WATER_LIGHT=1, or WATER LIGHT in the F1
menu, runs them as before. Runs on a copy of a save on the first boat ride,
RTX 5070, Series X 1440p DLSS Quality: 25 fps with the blocks before, 30 fps
without them after; the water is darker and bluer without that light.
fxceless/victory-fork's README of 2026-11-27 names the same two programs and
form.
Stats panel: host/panel.rs is built without the diagnostics feature too (the
recording time is counted in diagnostics builds only), has a frame generation
line, and is switched by F3 or by STATS PANEL (F3) in the menu, live. The FPS
line at the top is hidden while the panel shows.
README: both, and where the panel is.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
On readmet3xt-lab/foxhound 02fc18a, which becomes this fork's base.
- host/menu.rs: the F1 settings menu, in every build (it was in the
diagnostics build only): DLSS mode and model, frame generation, frame
rate cap, console profile, picture size, the light estimates and the
main speed switches. Saved to victory-settings.txt, applied by the
launcher at the next start; "save and restart" from the menu. The title
gets no keyboard while it is shown (gameinput.rs).
- host/font.rs: the dot letters, moved out of the diagnostics panel so
that the menu has them in every build.
- streamline.rs: VICTORY_FRAMEGEN_X=2..6, the frames shown for each one
rendered (no more than the state says this card generates); 0: ready
but off. The amount and off/on change while the title runs
(set_framegen, from the menu). Result 39, "warning: out of VRAM", is
taken as set: asked again at every present it showed no generated
frame at all (1,828 times in one run on a full 12 GB card).
- The frame rate at the top left of the picture while the menu is closed:
frames rendered a second, and with frame generation those shown
(VICTORY_FPS_LINE=0: not). The window's caption says both too.
- scripts/play-foxhound.ps1: applies what the menu saved; -FrameGenX;
-Fps defaults to 1000 (no cap: VICTORY_FRAME_INTERVAL_US=1000); frame
generation is made ready at every start with Streamline so that the
menu can switch it (-NoFrameGenReady: not), with a share of the card's
memory held back for it (VICTORY_TEXTURE_ROOM_PERCENT 80 on, 86 ready);
NVIDIA's files are looked for in nvidia-sdk\ here; builds the layer when
it is not built. scripts/play-nvidia.ps1 is the same launcher under
this fork's old name.
- Get-NVIDIA-DLSS.cmd / scripts/get-nvidia-sdks.ps1: fetch the eight
NVIDIA files that are loaded (about 70 MB) out of NVIDIA's Streamline
release into nvidia-sdk\ (git-ignored). They are NVIDIA's, under
NVIDIA's licences, and are not part of this repository.
- README for this fork; foxhound's own is kept as docs/README-foxhound.md.
Measured on an RTX 5070 (Series X, native 2560x1440, DLSS Quality,
opening rooms): mostly 26-30 frames a second rendered; in Streamline's
own check 2x, 4x and 6x show exactly 2, 4 and 6 frames for each one
rendered.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
README: what foxhound is (an NVIDIA RTX-tuned VIctory fork: DLSS Super Resolution and Frame Generation, Series X at
a native 2560x1440, no freezes at scene cuts), where it stands on the test PC, what is known to be wrong, what you
need, how to build it, set it up with your own copy of the title (victory.toml, NVIDIA Streamline, translating
shaders ahead), run it and warm its pipelines, the switches foxhound added, the docs, credits and license.
scripts/play-foxhound.ps1: the launcher with the tested settings; your executable is a parameter, DLSS is used
only when Streamline is found. scripts/fullscreen.ps1: makes the game's window borderless full screen.
The asset policy allows Python scripts (scripts/faultbook.py, our own fault-book reader).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A title that ends itself when its main loop has not ticked for a while
runs on through slower frames.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit 532cb7cdfee02e6139a683f79ee4c9b4a92828a4)
Getting started names Rust (pinned in rust-toolchain.toml) without saying
how to get it. Add rustup through winget or rustup.rs, that the pinned
toolchain then comes on the first cargo command, and the MSVC C++ build
tools the Windows target needs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 098a26aad5e3ef4655a9282f78cf713a2fc01a55)
Six diagnostic switches (VICTORY_D3D12_DEBUG, _GBV, _DRED, _WARP,
VICTORY_GPU_TIMING and VICTORY_DUMP_TARGETS) were on whenever their
variable existed, so VICTORY_D3D12_WARP=0 still selected the software
adapter. They now go through one helper that reads a value other than 0
as on and an unset variable or 0 as off; every other value keeps the
meaning it had. The README says so above its switch table.
(cherry picked from commit a4974e4c21c16e2305942e37a868647d42eefe37)
Descriptor records the title copies as bytes are mirrored before each
submission. Views off their copy's elements: our rule (raw views too, and
now typed views on 16 bytes), the fork's copies. Wave sums of halves: ours
(the fork's test passes with it). Sizes of descriptors nothing uses: ours,
then the fork's for 2D images. The fork's count of cut indirect groups is
left out: up to WIDEST groups run as asked here.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Descriptor records the title copies into its heap as bytes are mirrored
before each submission (pull request #305 by Flyander, after upstream
VIctory 86a5ed6), with a per-slot fingerprint so only records that
changed are mirrored, the page read through the kernel, a switch
(VICTORY_HEAP_SYNC=0) and a counter: about 40,000 records a frame on the
test machine.
- A buffer view off its copy's elements gets a copy of its own bytes
(after upstream 86a5ed6; VICTORY_VIEW_OWN_COPY=0: refused as before).
- Room on the card for the world's first-frame bursts: buffer copies
(VICTORY_CARD_ROOM_FOR_BUFFERS, now on) and render targets
(VICTORY_CARD_ROOM_FOR_TARGETS_MB, 3,072); a copy turned down gives its
room up and is logged; the texture pass asks again every 32 MiB. 98
buffer copies made (945 MB) where earlier runs made 1; 25 MB compared
on the processor a frame where it was 550 to 710.
- Levels on demand: the fixes of pull request #747 by AscilCH. First run
on a card (RTX 4070, VICTORY_LEVELS_ON_DEMAND=1): no device loss, 3.1 GB
not allocated for levels the title does not hold. Still off by default.
- The guarded blocks under storage writes into physical pages are opened
by default (VICTORY_PAGE_WRITES=0: counted only).
- Shaders: a program is translated with first-half interpolation pairs
only if it was refused for one (with it on for every program 8,551
working pixel programs came out changed); parked lane-mask pairs,
f64 conversions and sums, lane permutations: 14 more programs translate.
- Counted, not fixed: an indirect compute pass asks for about 77,500
groups in x and is cut to 65,535.
One five-minute game run of these changes on the test machine: no device
loss, no failed request. This merged tree was built; its test suites
were not run.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
The fork's guard over every view of a physical page is kept on our own block
bits, known holes, kernel writes and changing blocks; what both had, ours.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Memory sync:
- The guard over every view of a physical page (code by myokex, victory-amd
c6dc4d8, after pull request #115 by Spexivus, its correction by joroyt and
a part of VIctory #1122 by tightfall): the title shows one page at several
addresses and a copy was guarded at one only. 0.8 to 1.0 million writes
through another view in a five-minute run on the test machine.
VICTORY_VIEW_GUARD=0 turns it off.
- Kernel reads into title memory are read beside and copied in (Joshua Odom,
10ea38e).
- Writes of the storage layer into physical pages are counted where the
title has the pages mapped and can open the guards there
(VICTORY_PAGE_WRITES, off: counted only). Failed page-destination reads
are retried.
Card memory:
- Levels on demand, off unless VICTORY_LEVELS_ON_DEMAND=1: a texture the
title fills takes card memory for the levels the title holds; held levels
get memory only while the card has room and are asked for again. Its test
runs on the software adapter; not run on a card yet.
- Refused texture slots are held back so a pass reaches the slots behind
them; room can be kept for card copies of title buffers (off).
Tools: translate --warm all; the shader cache is keyed on the translator's
source; counters for copy-back races, page writes and the copies the
texture sweep never lets go; a walls trace.
Game runs of these changes on an RTX 4070: five five-minute runs without a
device loss or a failed request. This merged tree was built; its test
suites were run on the tree the changes come from (gpu 129, hle 97).
Co-Authored-By: Claude Fable 5.2 <[email protected]>
- Clean-up passes over each translated module (VICTORY_SHADER_OPT bits: dead
code, folding, reuse, branch facts, loads within a block, wave64 first-lane
exchange), part of the shader cache key. About 43 % fewer host instructions
over the pack; about 20 ms less GPU time per frame on the test machine.
- translate: a census of the emitted code.
- Checked with plain game runs of this tree on the test machine.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
The update moved the particle light-atlas compute programs to a form that
puts group barriers inside branches and loops; a dispatch of them stood on
the card until the device was reset. That form is now off unless
VICTORY_WAVE_WIDE=1, and the shader cache key includes the wave switches.
Checked with a plain run of this tree on the test machine.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
- Shader tests: a software adapter given as the default device is not taken
for a hardware device, so the tests that need a real card skip there.
- Diagnostics: the stencil plane of dumped depth-stencil targets and the
title's descriptions of its stencil views.
- README: the newest commits lose the GPU device shortly after start on the
test machine; the cause is not found yet.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
- 59 of the 64 trace programs and the irradiance-cache shading program
translate; 51 programs leave the approximate wave64 forms.
- The workspace passes the lint with warnings as errors in both feature sets;
a few style lints are let through in Cargo.toml for this fork.
- README status updated (relay and in-place memory results);
docs/fork-ray-tracing.md describes what the title does and what is built.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
World rendering, lighting, frame-rate and memory work for Grand Theft Auto VI
(Xbox Series X profile) on one Windows PC with an NVIDIA RTX 4070. The README
describes the state, the changes and the credits. Based on VIctory by Marvisak
and contributors (GPL-3.0-or-later); XCL by ivall and contributors was used as
a reference. No game files are included.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
With indirect execution the world's first frame asked for over 1,200
pipelines at once and took more than 30 s, so the title's own GPU
watchdog ended the run. Host pipelines are now made by worker threads: a
first use waits at most 0.5 s per title frame, and that pipeline's draws
are dropped until it is ready. The world presents frames again, and
indirect execution is the default (the switch is gone).
Pipelines are cached across runs:
- every host pipeline goes into a pipeline library saved under the cache
folder (named by a hash of the translated code, our root signature and
the state; a blob the device rejects starts an empty library);
- the pipelines drawn with are remembered and started during loading on
the next run.
One cold and one warm run: the last pipeline was ready 38 s after the
world's first frame cold, 1.4 s warm; the first world frame took 3.2 s
cold, 0.37 s warm.
Also:
- Copy-backs of shader-written ranges return only the bytes the GPU
changed; they used to overwrite what the title's CPU wrote meanwhile,
which crashed the title.
- Indirect dispatch records are bounded (group counts were not), and the
console's single-dispatch argument type runs as a dispatch.
- Per-shader counts of dropped draws in the diagnostics log; a switch
that submits and times each list alone.
Not working yet: the world shows no geometry, and runs end on a GPU page
fault after at most about 55 s.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Translated loops stop after 2^20 iterations per lane so that a loop
over not yet mirrored data (zeros) cannot run four billion times. A pass
where every lane reaches that limit still takes seconds, though: 2^20
iterations times a 4K screen's 8 million pixels is about 10^13 loop
bodies. The world's frames now take 1.5-3 s, and loops spinning to the
limit on data that reads as zeros are one candidate.
A diagnostics build now reads VICTORY_SHADER_LOOP_LIMIT (decimal or 0x
hex, at least 1). If a low value such as 4096 makes world frames much
faster, loops hitting the limit are what makes them slow. If not, they
are ruled out. The limit is part of the translation, so the shader cache
keys on it, and a run that overrides it logs a warning. Release builds
always use 2^20.
The host device was removed seconds into the world because a shader read
a descriptor of the wrong kind: empty slots held a null 2D texture view
where the shader expected a buffer, which gave a garbage heap index and
a read far past the view heap. Null descriptors now have the kind the
shader expects (raw buffer, constant buffer, or a texture of the title's
own dimension). The world then ran to a 240 s time limit with no removal.
Also:
- Host lists hold the textures, pipelines, root signatures and heaps they
name, and heap slots hold the resource they view (the title releases
objects before submitting lists that use them).
- The device-removed report places the fault against the host descriptor
heaps and names our own uploads; VICTORY_D3D12_GBV turns on GPU-based
validation, VICTORY_DUMP_TARGETS works.
- Indirect execution (draw, indexed draw, dispatch, mesh dispatch): the
world draws most of its geometry this way. Arguments are clamped and
charged to a per-list budget by a small compute pass first, so garbage
cannot hang the GPU. Off by default (VICTORY_INDIRECT=1): with it on
the title's own GPU watchdog ends the run about 30 s into the world.
- Shader-written ranges are copied back once per submission and only
where they differ; refreshes beside them copy only stale pages. The
frame-rate line counts copy-backs and dropped draws.
Not working yet: the world's picture is black (indirect draws off, and
hundreds of draws per frame have no translated shader).
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Says how far the title gets (menus at 30 fps, the world reached but not
rendering), what each subsystem does and still needs, and warns that the
world can reset the display driver on a real GPU. Adds how to run the
title, the translate command, and tables for the keyboard pad and the
debugging switches.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
The title now boots through every first-boot and menu screen at its own
30 fps, drawing with translated shaders, with input, sound, saves and
loading served; it reaches the world, where the host GPU path still
fails (see "Not working yet").
Loader and runtime
- Crash reports unwind properly, name C++ throws and host GPU failures,
carry the title's last debug lines and are appended to crashes.log.
- Thread notices on our own threads, reentrant late DLL loading, exit in
the console's order, relaunch on a launch-new-game request.
- Offline guard: the title cannot reach the network (sockets, name
lookups, WinHTTP, the media source resolver); by-name lookups and
loads follow the import rules.
- Every runtime area the title calls is served (networking hint,
packages, store, saves, display, UI, speech stubs, user, async pool).
Saves persist; an update is one rename and survives a kill at any step.
- DirectStorage reads for real: shared worker pool, priorities, zlib and
BCPack. BCPack is our own decoder; the format's constant tables ship in
crates/victory-formats/src/bcpack-tables.bin (the asset policy's one
exception, see docs/asset-policy.md).
- GameInput from XInput pads and the keyboard, with a keyboard stand-in
pad; console timers (1 ms) for the whole process.
- Audio: XMA2 decoding on the emulated contexts, Opus on the decoder
queues, the DSP interface as a stub; title memory placed below 2^40.
- Console texture layouts (sizes, tiling, detiling) and the layout
library's imports.
GPU
- Draws, mesh dispatches and compute dispatches run on the host with
shaders translated at first use and cached on disk; descriptor heaps,
views, root signatures, barriers and host texture states; rectangle
lists; comparison samplers.
- Title memory reaches the host through persistent mirrors that copy
only pages written since the last copy; shader-written buffers are
copied back.
- Presentation with frame pacing per event kind; framerate in the window
caption.
Shaders
- DXIL emission for vertex, pixel, compute and mesh programs from the
console's native code, with a differential test suite against the PC
compile. World set: mesh 8,191 of 8,506, vertex/pixel 10,617 of
12,346, compute 1,643 of 2,539; utility set complete.
Build
- Debugging aids (debug logs, frame capture, stack dumps, scripted keys,
the host debug layer, the software adapter) exist only with the
`diagnostics` feature; `[profile.diag]` keeps that build apart.
Not working yet
- In the world the host device is removed within seconds (descriptor
handling fixes are in, unproven by a surviving run) and frames present
black.
- 64-bit image atomics, merged geometry stages and the BVH builder's own
shaders do not translate; reverb is silent.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Rust workspace for VIctory: PE analysis, loader, HLE skeleton,
DXBC/DXIL parsing with a GFX10 decoder, conversion cache, CLI and
asset-policy enforcement.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>