- 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]>
Host::keys already suppresses keyboard input when victory_gpu::SETTINGS_MENU_OPEN is set, but Host::mouse did not. With VICTORY_MOUSE_CAPTURE=1, moving or clicking the mouse while the F1 menu was open still rotated the in-game camera and sent clicks to the game.
Keep calling captured_mouse_delta() so the cursor reference stays current, discard the delta and clear button bits while SETTINGS_MENU_OPEN is true, and keep the virtual mouse connected at its preserved position so closing F1 produces no camera jump or disconnect/reconnect churn.
Tested with cargo test -p victory-hle --lib modules::gameinput (17 passed, 0 failed) and cargo xtask policy (280 files ok).
- Pass -ExecutionPolicy Bypass when PLAY_FRAMEGEN.cmd invokes scripts/play-gta6-framegen.ps1 so double-clicking works on default Windows PowerShell settings (Restricted).
- Treat an absent HwSchMode registry value on Windows 11 (build >= 22000) as default-enabled instead of printing a false 'HAGS: off' warning; HwSchMode=1 is still reported as off.
On an RTX 5070 Ti the old rounding writes 32 of 64 dwords; with the group
counter all 64, each once.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
NVIDIA fills 2-D compute groups from 16 x 2 tiles, so rounding a host wave's
first flat id down to the wave size gives two waves of a 32 x 2 group the
same base. Such programs now take their console threads from an LDS counter
(wave_base), as wave64-in-halves programs already did; lanes are placed by
their rank among the active lanes. VICTORY_THREAD_TICKET=0 restores the old
rounding (part of the shader cache key).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
#20's menu launcher failed xtask's policy (policy::tests::repository_passes_policy).
The same file under the extension the policy allows; cmd.exe runs it the same way.
Its own usage lines and the script's header name it anew.
Checked: xtask policy tests pass (6).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The probes' resolve can leave magenta/violet leftovers from other memory in
the light image. The raise pass caps what it keeps by luminance only, which
weights blue at 0.07, so a blue-heavy leftover passes the cap and shows as a
saturated purple-blue glow on bright surfaces (a sheet of music on the wall
in the prison cell cutscene, Series S, DLSS off, RTX 5080).
VIctory-Belobug-AMD drops magenta leftovers here (ambient.rs, "Filter
magenta garbage probes"); that line is ported, plus one for the bluer kind
(blue over 2.5x green and over red) that the first leaves as a faint violet.
Sky light (green above 0.4x blue) and sunsets (low blue) are not touched.
Checked with VICTORY_CAPTURE frames of the same cutscene: the glow is gone
in two runs; frame time unchanged (~35 ms median, 25-27 fps). Turning off
VICTORY_AMBIENT_SPECULAR, VICTORY_AMBIENT_AIR or all VICTORY_AMBIENT*
does not remove it (it is the title's leftover, unbounded with the raise off).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Port of fxceless/victory-fork#1324 (commit 52ac4ec, GPL-3.0).
HostHeap::release previously matched only the title heap's pointer address. When a title releases a shader-visible heap before lists referencing it are reset, and a new heap is allocated at the same address, resetting the older list freed dynamic slots belonging to the new heap. On NVIDIA (where VICTORY_DYNAMIC_SLOTS=524288 is active), two live command lists could then overwrite each other's descriptors.
Each HostHeap now gets a monotonic identity (NEXT_ID) recorded alongside dynamic slot ranges in draw::State::dynamic and checked in HostHeap::release.
Tested with VICTORY_D3D12_WARP=1 cargo test -p victory-gpu --lib --features diagnostics descriptor:: (50 passed, 0 failed), including dynamic_slots_are_given_back_only_to_the_heap_that_took_them.
The submitting thread runs above normal, but the threads it waits for
(the wide pool, the landing pools, heap records, the heap pass beside
the lists) ran at normal priority, level with the title's threads and
the list translators. On a six-core CPU they were often not running
while it waited. VICTORY_HELPER_PRIORITY (on unless 0, VICTORY_AB can
flip it) raises them to above normal.
A/B in one run on an i5-12400F with an RTX 3060 (run10, Series S at
540p, off / on): 8.6 / 9.6 fps, refreshes 23.1 / 17.6 ms a frame,
waiting for heap records 6.2 / 2.5 ms, card idle behind the submitting
thread 24.7 / 13.2 ms.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Validate and use the declared DXBC byte extent when scanning an embedded shader. Keep the borrowed slice and offset, and leave packed inputs unchanged.
Tested on Windows with the focused embedded-container regression and a synthetic CLI run.
VICTORY_SKIP_BINK=1 skips the movies that play once (logos, the intro);
=all skips the looping ones too. Unset, nothing changes: no import is
rebound. The title's own Bink DLL still opens each movie; the exports a
player loop calls on an open movie (BinkWait, BinkDoFrame*, BinkNextFrame,
BinkGoto, BinkShouldSkip, BinkClose) are bound to wrappers that put a
skipped movie on its last frame, so the title's own end-of-movie check ends
it at once.
Wiring for this tree (run.rs): SkipMovies wraps WithTitleDlls at startup,
so the executable's and its DLLs' imports go through it, with the
FidelityFX Interpose on top (it only looks at its own DLL and is unchanged);
and it wraps the resolver LateDlls binds DLLs the title loads later with.
Original author: C-GDev (fxceless/victory-fork pull request 613, 75fe122c;
the idea is from XCL pull request #1053, the code was written anew for
VIctory's loader). Ported by hand from CuteBooty/victory-8gb.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
raw_at / raw_uav_at: a range past the buffer's end is shortened to the
whole dwords that fit; an unaligned start, or one with no whole dword left,
becomes a null view. The meter line counts the cuts (past end, shortened,
sub-dword, unaligned) for SRVs and UAVs. On by default;
VICTORY_RAW_VIEW_CLAMP=0 gives the old descriptors.
Original author: lichenlang89 (fxceless/victory-fork pull request 1266,
dd5e8c9e). Ported by hand from CuteBooty/victory-8gb, same code and tests;
the counters go into this tree's meter line in host.rs.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
BCPack blocks of modes 0-3, 6 and 7 with nonzero control bits 4:3 swapped
channel precisions and dropped the p-bit; only modes 4 and 5 have a BC7
rotation field. Always on (no switch), with a test.
Original author: fxceless (fxceless/victory-fork main 06702fe8, after
upstream VIctory pull request #3111). Carried in CuteBooty/victory-8gb;
applied here without conflicts.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
XInput is read first; HID pads take the slots XInput leaves free (VICTORY_DUALSENSE: 0 off, 1 both, unset auto). dualsense.rs is taken unchanged; Host reads XInput in xinput() and keeps the HID owner of each slot; victory-hle gets Win32_Devices_DeviceAndDriverInstallation and Win32_Devices_HumanInterfaceDevice. The mouse capture (#17) and F1 menu paths are unchanged.
Source: LooperSalty/AnyXboxX third_party/victory crates/victory-hle/src/modules/gameinput/dualsense.rs
Fullscreen, the English keyboard and the mouse capture now run only when
asked for (VICTORY_FULLSCREEN=1, VICTORY_MOUSE_CAPTURE=1,
VICTORY_IME_ENGLISH=1), so a start that sets nothing keeps the window and
input as before. The F1 menu has the three of them (FULLSCREEN (NO BORDER),
MOUSE CAPTURE, ENGLISH KEYBOARD); a change applies at the next start.
Checked: victory-hle, victory and the menu tests, with the three unset and
with all three set to 1.
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]>
Three switches, each on by default, each 0 restoring the behaviour before it: VICTORY_FULLSCREEN (borderless, VICTORY_FULLSCREEN_RES for another size), VICTORY_IME_ENGLISH (the window's input context to en-US), and VICTORY_MOUSE_CAPTURE (clip to the client area and hide the pointer, release on focus loss).
Capture also fixes a mistake in the mouse device merged as #9: it warped the pointer back to the centre after every sample, which pins the absolute position the title reads and makes the camera look frozen. Warping is now VICTORY_MOUSE_WARP, off by default; with it on the delta is taken from the centre.
Measured on an RTX 5070 Ti Laptop (12 GB): window 0,0-1920,1080 with a client area of the same size and GetClipCursor returning it. cargo build --release and --profile diag pass, cargo test -p victory-hle: 162 passed, 2 ignored.
Written with an AI assistant.
This fork's files are now foxhound's with this fork's additions on top. What main held before (CGBJ's renderer with DLSS through the DLSS SDK, the first F1 menu) stays reachable as this merge's second parent.
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]>
The default of scripts\play-nvidia.ps1 changes: the game renders its own
720p and DLSS takes it to 1080p (Series S), in place of the half render
scale and the title's upscaler. -Resolution still reaches the older path.
- Renderer: codec-d/cool_fox f4b48ad (GPL-3.0) with this fork's NVIDIA
fixes on top (residency.rs, stretch.rs, the ffx upscale dispatch).
- DLSS for the title's upscale, from avatarmanz/VIctory-7900XTX pull
request 203 (feature `dlss`, VICTORY_UPSCALE=dlss), with
VICTORY_DLSS_PRESET and a live sharpness setting.
- F1 settings menu in the game (host/menu.rs): saved to
victory-settings.txt, applied by the launcher at the next start,
"save and restart" from the menu. F3: the panel, now with the
generated frame rate beside the real one.
- DLSS frame generation through NVIDIA Streamline (streamline.rs, fg.rs),
2x to 6x, the amount changed while playing. Constants and the depth and
motion vector tags are handed over at each present.
- VICTORY_FPS_CAP: the title's own 30 frames a second can be lifted
(60, 120, none), live from the menu.
- Real ray tracing as an option (-RayTracing, VICTORY_BVH_BUILDER=1): on
this renderer the structure builder runs on NVIDIA. Frame generation is
left off with it: the two together run at about 0.1 fps, cause not found.
- VICTORY_HEAP_RECHECK_EVERY: textures picked by index looked at again
for the whole run (a test against the posterized look).
- Get-NVIDIA-DLSS.cmd / scripts\get-nvidia-sdks.ps1: fetch the few NVIDIA
files DLSS and frame generation need (about 70 MB) from NVIDIA's GitHub
into nvidia-sdk\ (git-ignored). They are NVIDIA's, under NVIDIA's
licences, and are not part of this repository. Without them the picture
is stretched and there is no frame generation.
- scripts\build-nvidia.ps1; the launcher builds the layer when it is not
built, and again with DLSS once those files are there.
Measured on an RTX 5070 (Series S, DLSS, opening rooms): about 15-17 fps
without ray tracing, 13-15 with it, before generated frames. What is known
to be wrong is in the README's new section.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
texture_at's filler-twins tracking (PLACED_RAW, PLACED_TWINS, and the
per-call block in texture_at that takes PLACED_RAW's own mutex and scans
previously-seen raw descriptions at the same address) exists solely to
feed placed_filler_twins(), whose only caller is copystat::log_memory --
itself compiled only with feature = "diagnostics". A build without that
feature paid for the second mutex, the BTreeSet, and an O(seen-so-far)
scan on every placed-texture lookup (hit or miss) with no consumer for
the result.
Gates PLACED_RAW, PLACED_TWINS, placed_filler_twins(), the `raw` binding,
and the tracking block itself behind feature = "diagnostics". The
functional cache (PLACED_TEXTURES) and its key (`key`, built from
VICTORY_PLACED_FILLER the same way as before) are untouched -- this
candidate never reads or writes PLACED_TEXTURES.
Independently reviewed before implementing (see
research/reviews/OPTIMIZATION_CANDIDATE_B_REVIEW.md): re-ran the
existing experiments/optimization-validation/filler.rs equivalence
tests myself (6/6 pass, both configs), confirmed the eliminated block
has no path into the functional cache, confirmed no equivalent change
exists upstream (checked ZJOU 477c395a directly -- it gates only the
getter, not the producer -- and did a fresh PR search).
Verified after implementing: cargo test --workspace --locked (27 result
lines) and cargo test -p victory-gpu --features diagnostics --lib (381
tests) are byte-for-byte identical in pass/fail/ignored counts between
this branch and an unpatched origin/main worktree. cargo clippy, both
CI invocations (with and without --all-features), produce an identical
error set to the same unpatched worktree (a pre-existing, unrelated
victory-formats issue blocks the workspace-wide command in both).
Does not implement candidate A (incremental VIEWS census) or the shapes
segmentation candidate, per instruction. No game files used, no push,
no PR.
Co-Authored-By: Claude Sonnet 5 <[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]>
Play session 2026-11-27 (open water, the stand-in running every frame once its tables were found): dark ragged
patches lay on the water around a boat, following it. The alpha layer's rays are of transparent surfaces
(glass, foam, wakes), but the depth the stand-in reads is the opaque one behind them: on water, the bottom. The
normal and the reflected direction made of it are wrong and the estimate dark. The alpha layer is now left as
the title has it (sky light), as water already was; VICTORY_AMBIENT_SPECULAR_ALPHA=1 puts it back for interiors.
Counted with water on the 10-s line.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run final-4 (2026-11-27 02:11): with placed views resolved the miss program's tables were found, but the stand-in
was still left out ("another image", format 26): the depth taken failed the size check. The depth must now be
twice the rays' image each way (1706x960 for 853x480) and 32-bit, at the usual place or found among the tables.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run port1-2: nothing was arranged and the heap was still scattered. The
title reserves it with kind 0x42000 (reserve, 0x40000), without the
64 KiB page bits, so it was not taken for a placeholder and was never
recorded. Any 32-bit reservation without commit is recorded now; the
test reserves the way the title does. A warning says once why pages
mapped there are left where they are.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 9c23e8dd40cac6fb4a2aa8c804587e7c2e2a5853)
Run port1-1: the title maps the five pieces of its 185 MB heap in another
order than their addresses, so the heap was views of one section in a
scattered order ("not one stretch of a section: Scattered") and nothing
was placed. With VICTORY_PORT_CONSTANTS=1 xmem now gives the page numbers
mapped into a 32-bit graphics reservation the slices at their offset in
it, when the reservation is all one section and both slices are fresh
(never mapped or written: no commit bit), which the title cannot observe.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 4b82f6c259d7a693e0e30eaaafc4c5a54b77d9e8)
The title's routine at image+0x1e86440 reserves 185 MB of graphics memory
below 4 GiB, splits it into five pieces, takes all their physical pages
in one XMemAllocatePhysicalPages and maps them in order: one stretch of
one section. Its 174 MB buffer at 0x34e10000 (the ring of constants, and
what the skinning passes write through one view of all of it) had a host
copy in the card's memory, ~17 MB a frame sent up in ~600 pieces, shader
writes fetched back and compared, and ~6,000 constant fills a frame.
With the switch the stretch is mapped once more at an address of ours and
opened as a host heap there (OpenExistingHeapFromAddress1); title buffers
and windows in it are buffers placed in that heap, the existing in-place
form of a host copy: nothing tracked, sent up, fetched back or compared.
The title's own views stay free to change; when it maps other pages
there the region is forgotten. A line on the frame-rate report counts
the CPU fills and buffer copies of ours that still read or write it.
Replay (play-1125-0127, heap in the PC's memory): the title's own work
+~3 ms on the card; the 30 ms added there are our compare passes, which
do not run over memory in place.
Ported from Belobug/VIctory-Belobug-AMD 86dc109 (author: local); conflict with heap_marks in host.rs kept both.
Co-Authored-By: Claude Opus 5.5 <[email protected]>