One line of the texture pool's state: the blocks and how full they are (in quarters), the bytes free now and in how many ranges, the largest of those, the pieces that rest, the live textures by the size of their piece, and what the small ones would hold at multiples of 4 KiB (VICTORY_POOL_SMALL).
Nothing about how pieces are cut changes. Without the switch a texture costs two counters when it is made and when it goes; with it, one more GetResourceAllocationInfo for each texture made.
What it showed on an RTX 4070 Laptop (8 GiB), Series S profile, five minutes into a run with VICTORY_POOL_SMALL=0: 57 blocks (3,648 MB) for 2,387 MB of textures, 1,260 MB of them free in 1,655 ranges, 25 blocks less than half full and none empty; 13,363 of 15,836 textures in pieces of 64 KiB, and 13,748 that would hold 222 MB at multiples of 4 KiB where they held 907 MB. With VICTORY_POOL_SMALL=1 the next run of six minutes held 20,000 to 38,000 textures in 40 to 45 blocks, with no device loss.
Tests: the census over a pool (free, resting, how full), and the size classes.
(cherry picked from commit eb8e7075cf51e15d29ba841493544abb5292fbbc)
`ResourceMinLODClamp` is measured from mip 0 of the resource, not from the
view's first level, so moving a view's start must not shift it. The test
now samples the same resident level through the adjusted and the original
view instead of expecting the adjusted one to read level 1.
Ported from fxceless/victory-fork 41f9857 (fork pull request #1210).
(cherry picked from commit 4bdf2b31f95f099091aa192791685ff2ba0c14ce)
The lists a split submission runs at once are not detached, so nothing
returned their fresh tables' dynamic slots before the title reset them:
a long run lost descriptor slots it never got back. `submit_cut` already
does this after the same `execute`, for the same reason.
Ported from fxceless/victory-fork af23c65 (fork pull request #1320).
(cherry picked from commit 7eb4441181f06a4d5d466cf7fc242c1427462d32)
title_window() took the first visible top-level window of the process.
Started under a pseudoconsole (Windows Terminal, or a parent that has
one), the process also owns a visible PseudoConsoleWindow of 0x0 pixels;
when that one was above the title's window in z-order, the swap chain was
made for it and the title's window stayed white.
The title's window is now the one our window procedure hook marked
(victory.wndproc); without one, the first visible window with a client
area. The choice is a pure function with unit tests.
(cherry picked from commit 6cd5231aedd2e2636a1cd2b849c8ce3000369a36)
alias_of returned the bare pointer of the aliased texture after
TARGETS_AT's lock was gone, and texture::alias then used it; the title can
drop its last reference in between (use-after-free, or a copy from the next
texture at the same address). alias_of now takes a reference under the lock
(object::add_ref_alive) and returns a Held guard that the two copying
callers (draw.rs readable, external.rs prepare_input) keep until the alias
copy is recorded; a texture already being released is not returned.
This tree has three lookup-only callers (draw.rs bake sources,
texture/ahead.rs, resource.rs host-copy levels). They now call is_aliased,
the same lookup without a pin, so none of them takes and drops a reference
(and so none can end up freeing the texture inside its own work). No
switch: a lifetime fix with no other behaviour change. The original test
comes along (diagnostics builds with a host GPU only).
Original author: CwWwWwW (fxceless/victory-fork pull request #1336,
f8fab6fb). Ported by hand from CuteBooty/victory-8gb; Held and
add_ref_alive follow fxceless/victory-fork d4a528ba, which this tree does
not have.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit 6665ad8bd2147e58aed9362e41718aa385643102)
KNOWN (VICTORY_UPCOPY_CHECK) kept an entry per copy ever declared or
fetched. The look at rest now keeps only the ids still in
carded_copies(), before anything in it that can fail. A copy's id is
never given to another copy, and nothing declares or fetches while the
look runs (the submission lock is held).
Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit 2e7e626eeb51a0482f29fec2fb16aa75259b849b)
The frame-rate line is an average and hides stutter: 30 fps can be even 33 ms
frames or 20 and 80 ms ones. One line each time the frame-rate line is made, in
every build, under its own target (victory_gpu::frame_times), so that
VICTORY_LOG='warn,victory_gpu::frame_times=info' keeps it alone. It found a
hitch every 1.5 s on an RTX 5070 Ti (median 30.7 ms, p99 60, worst ~100) that
the frame-rate line did not show.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 5f3c0a42a6e2dc734d75a4d7a3a0ef95e9df6e3e)
A panic inside `HostPipeline::new` (a translator gap, an unexpected shader
form) unwound out of `make`, leaving `made` empty for ever: every draw or
dispatch waiting on that pipeline waited to its budget in every frame, and
the worker thread that hit it was gone.
The build now runs under `catch_unwind`; a panic is logged and recorded as
"no host pipeline" like a failed translation, so the queue entry completes
and its waiters wake.
Ported from fxceless/victory-fork 46da5eec (pull request #1353), GPL-3.0-or-later.
(cherry picked from commit 52331a3b95ab28d21820cc187bfe8e8842062090)
Two helper threads wait on the host fence with `SetEventOnCompletion` and
`WaitForSingleObject`. Both ignored a failed call: the late helper then went
straight to the landing step with nothing run, settling flights off a value
the card never reached, and the relay slept 1 ms and tried again. A removed
device was worse than either: `GetCompletedValue` answers `u64::MAX`, which
compares greater than every target, so every wait and every landing check
passed at once while the card had run nothing.
`wait_host_fence` checks the completion call, the wait's result and the
fence value, and fails with a named context; `fence_reached` treats
`u64::MAX` as "never reached". The relay's device-removal read is checked
too, before it lands anything.
Ported from DexNom/VIctory d036cea (pull request #1366), GPL-3.0.
(cherry picked from commit 671e25f9850abca01266bab096fed096b7fd0606)
The per-thread cut was `at - (start + at) % PIECE`. When the span does not
begin on a piece boundary the subtraction runs below the span's start and
wraps in a release build; the first thread then scanned nothing (or a huge
range), so differences in the first piece were never found and those bytes
were never copied back into title memory.
`scan_boundary` subtracts the offset into the piece from the span and
saturates at `from`; the test walks unaligned starts and asserts the cuts
stay ordered and on piece boundaries.
From kelvaroq native/patches/0009-shadow-compare.patch (GPL-3.0-or-later);
the same fix as fxceless/victory-fork 81d54b0 (fork pull request #1407).
(cherry picked from commit 30279c13dd81686d8a8cce7d329c10098fe043bd)
The mark's write result was discarded and the game restarted whatever
it was. The launcher arms a new warm-up whenever no mark exists, so
one write failure (a denied folder, a full disk, antivirus) had every
start play its 20 seconds and start again, for ever. The write now
decides: no mark, no restart, and the run goes on at its slow pace
with a note in the menu.
(cherry picked from commit 5cf201a877b1f4a5ff45b124d9fdc621ad2fb51b)
- Replay: a Worker closes its fence event when dropped (one leaked per
256 MiB upload batch in diagnostics builds).
- Timeline: put_of and stack write nothing once recording has ended, so
events that straddle end() no longer land in the next recording.
- VICTORY_WATCH: rva + 4 is checked, as VICTORY_CRASH_SAVE's ranges are
(a huge RVA in the list wrapped instead of being dropped).
- Validator: a failed GetStatus is an error, not a pass, and an error blob
with a null pointer reads as empty instead of building a slice from null.
Port of avatarmanz/VIctory-7900XTX#319 (its issue #227).
(cherry picked from commit 8db88ce6fe40cdd03bc9f9b66fb5d31c92bd246d)
With the launcher's THIN=1 and JOIN_PARTS=8, Lucia and other people had no
head on an RTX 5080 (Ryzen 5 9600X, 32 GB); with both unset the heads draw
and frames were faster there (14 a second with them, 21 to 28 without).
Frame generation needs the line of submissions: with THIN off,
VICTORY_ASYNC_SUBMIT=1 gives it (generated frames shown, heads still drawn).
The launcher's defaults are unchanged.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit 985b3f70ab90fca7aa5601a9fb4eb89ed9a84a99)
neighbours() added one to it directly, so u64::MAX panicked in a debug
build and wrapped past the range start in a release one: the loss
report aborted instead of naming what was near. The module's lower
bounds already saturate; the upper one does now too, and the book test
asks for the top address.
(cherry picked from commit 18632ec2b639a04c83e5bd74449e12bf28731e93)
- F1 EXPORT SAVE writes the save as one zip into the game folder's Saves
folder; IMPORT SAVE lists the zips there to pick from. An import is put
in place at the next start, and the save there before is zipped first
("backup before import ..."). Zips made by hand are taken too: with a
folder around the save, or starting inside the saves folder. The game's
own settings (SettingsProfileSettings) are never exported or imported:
the player keeps theirs.
- A restart from the F1 menu keeps the options the game was started with
(#197).
- DLSS picked in the F1 menu fetches NVIDIA's files at the next start,
even after an earlier "no", and the menu says so (#514).
- When the driver refuses nearly every DLSS upscaling, DLSS and frame
generation are turned off for the run.
- FSR 3 frame generation is made ready only with DLSS upscaling on: the
title's own FidelityFX check stopped the game otherwise (#331, #459).
- RTX Ada, Blackwell and RTX PRO workstation cards count as cards with
DLSS frame generation.
- On a PC with two cards the game plays on the card the monitor is on, and
the preload's pipelines are kept per card.
- The warm-up restart comes after 10 seconds.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: DueTonight <[email protected]>
Co-authored-by: mikan123pro <[email protected]>
Rendering and memory (GPL-3.0 code ported in; credits in the source):
- Water: 64-lane compute programs on 32-lane waves keep each wave
together through loops and set up shared memory from the first
thread, so the water's tiled light no longer leaves dark blocks. It
runs by default now (VICTORY_WATER_LIGHT=0 leaves it out; an empty
value, an earlier version's saved OFF, runs it). Also cloud tiles and
the screen probes' ray activation.
- Placed views: their padding cleared as before; folding a buffer
view's first element into its address is VICTORY_PLACED_FOLD=1, off:
with it on, clothing and caps swapped to other variants for single
frames in the boat cutscene.
- Texture sweep: textures whose copy was let go leave the looks until
used again. Static samplers made first, in one order. Small buffers
made ahead of the first 3D frame.
- play mode: VICTORY_TEXSPK_PASS_MS=8, VICTORY_PASSES_HOT=1,
VICTORY_HELPER_PRIORITY=1.
- Memory switches, all off: VICTORY_SLOT_EVICT, VICTORY_ALLOCATOR_TRIM,
VICTORY_BUDGET_PACK (and VICTORY_LIST_POOL_IDLE_S).
Input: DualShock 4 (0x05C4, 0x09CC, 0x0BA0 adapter) read over HID, USB
and Bluetooth, beside the DualSense; PlayStation pads rumble, and stop
when the game ends (issue #352).
F1 menu: every change is saved at once; it saves to
victory-settings.txt in VICTORY_HOME or %LOCALAPPDATA%\victory however
the game was started (no more "NO SETTINGS FILE").
Warm-up start: its 30 s count from the first frame of 100 draws or
more, not from the start: waiting at the title screen restarted it too
early and the next run still sat at 14 fps.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
get-d3d12.ps1 listed the nupkg's SHA-256 before D3D12Core.dll's. VILauncher
takes the first hash after a line naming D3D12Core.dll as the DLL's, so
"Fix and verify" looked for a DLL with the package's hash and refused every
Agility package. The DLL's hash now comes first.
FSR 3 frame generation with DLSS upscaling off leaves the title on its own
FidelityFX upscaler and it breaks at victory-image+0x2219650 5-11 s in, on
either console (issues #272, #308, #331). FSR 3 frame generation now needs
DLSS upscaling; the F1 notice says so and why it is off.
With v2026.11.27.6 Windows 10 got a device, but its own Direct3D 12 refuses
the root signatures the translated shaders need (descriptor heaps indexed
directly), and the title closed a second after its first frame (issue
#290: Windows 10 21H2 LTSC, RTX 4060, shader model 6.8 from System32's
runtime). check_shader_model offered the Agility SDK only below 6.6. On
Windows 10 (build below 22000, from RtlGetVersion; VICTORY_WINDOWS_BUILD
stands in for it) without a D3D12 folder, it is now offered whatever the
shader model; declined or failed, the game still starts, with a warning.
needs-logs.yml asks for the play log and crash log on a new issue that has
no attached file and no pasted log lines.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- 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]>
With the structure builder on (VICTORY_BVH_BUILDER=1), memory::ready asks
for another arena at every build dispatch while the spares are low. Once
upload::reserve could find no 64 MiB gap in [4 GiB, 2^37), nothing
remembered it: every one of thousands of dispatches a frame searched the
address range again under the MEMORY lock (the recording threads ~70 % in
the kernel under VirtualAlloc2), frames took 7 to 32 s, and the title's
own hang watchdog (the store to 0 at +0x23cf683) ended the run.
- Memory::another: after a failure, none is tried again before the next
frame; the reason is logged (no room, or its copy could not be made),
and a reservation whose copy could not be made is given back.
- upload::reserve_early, at host creation: 50 reservations of 64 MiB in
the low range, with write watch, when the builder is on
(VICTORY_LOW_EARLY_MB, 3200; 0 off). An arena commits one of them before
looking for room. Separate pieces, not one 3.2 GB reservation: as one,
the submissions' write-watch askings walked across all arenas in single
runs, about 2 ms a frame more.
RTX 4090, prison area, ray tracing on, frame generation off:
- before: stuck at 19 arenas, ~280-650 pages a frame read as zeros,
watchdog crash 1-3 minutes in;
- after: 28 arenas, ~18 pages a frame once settled, no watchdog crash,
22-28 fps (30 cap) after the first minute.
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]>
Run vt-shapes logged which words tell placed-view shapes apart. Past the resource description's padding (words 1 and 13), the view description's padding word 3 (shader resource views: the union starts on 8 bytes) took 131,392 values and word 9 (the union's unused tail) 36,413 in a million shapes: the title leaves them unwritten, so the same view was a new shape each time. Those words are now zero for each dimension (D3D12_BUFFER_SRV, D3D12_TEX2D_SRV and the like say which words of the union are used); an unknown dimension keeps every word.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit ce914907fbbe4eada57cf430e0da54ae48b4be47)
Once the shapes of placed views are full (4,194,304 after half an hour of play), every placed view the title writes became a table entry kept for the run: 34.9 million entries and 16.7 GB after 70 minutes on Series S, with the frame rate halved as memory went past physical RAM. Such entries now sit in a queue, oldest first; past VICTORY_OWNERLESS_VIEWS (default 1,048,576; 0 keeps all) the oldest is freed under a new generation, so a descriptor still naming it reads as stale, as one naming a released resource's view does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit d3626d257d19ac0d00440ea5efd061a0006521d0)
The title may leave words 1 and 13 of the 56-byte resource description it passes to device methods 0x230/0x238 unwritten, so the same view came in with different bytes there and every one was a new shape: the 2^22 shapes were full after half an hour, after which each placed view was a table entry kept for the run (34.9 million, 16.7 GB after 70 minutes on Series S). Only the named fields are copied now; the padding is zero.
From JMAN730/project-flamingo b1e0cd1d (merged there through PR #620), with its test.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit f07e54a2bf2a6d925a7c535c2b5ee24d07b5872c)
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]>
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]>
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]>
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]>
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]>
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]>
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]>
Run final-3 (2026-11-27 02:03): the reflections stand-in still never ran; the new line named the miss program
06bb6e728c7c99bf with its depth (0,1000) and most textures unresolved ("-"): those are views of textures the
title placed in its memory (View::Placed), which the lookup took for nothing. They are resolved through
placed_texture now, as the draw path does. The stencil check of 296ae68 read word 5 of the view description as
the plane; the union of D3D12_SHADER_RESOURCE_VIEW_DESC starts at word 4, so word 5 is the levels and the plane is
word 6: every one-level 2D view counted as a stencil plane (final-3 logged the diffuse stand-in's depth place
(0,464) as one, and the reflections' cube maps). Fixed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The helper that read capture haze2 found the diffuse stand-in's depth place (0,464), after the
_ReflectiveCaustics variant 34fb51b8a0312e82, naming the stencil plane of the scene depth #6481: the estimate then
put every point far away with its normal to the camera (a likely part of the flat floors). A view of a stencil
plane (formats X32_TYPELESS_G8X24_UINT, X24_TYPELESS_G8_UINT, or a 2D view of plane 1) is not taken as depth any
more: another depth view of the program's tables of the image's size is (logged once).
For the reflections stand-in, which runs final-1 and final-2 show running in one 10-s window only ("other
tables" ~50 times a second): once per miss program whose rays' image or depth is not found, an info line lists
what its tables hold (kind, place, size, format, stencil), so the next run names them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>