unspill marks the scalar codes a program uses in a table of 128, but an
instruction's effects can name a code up to 255 (a VOP3 compare whose
sdst field holds a constant's code, e.g. 0xD4C5A8D7), which panicked
with an index out of bounds instead of a translation error. The table
now covers every code, as stores and other beside it already do.
Found by fuzzing the translator (mutated test programs and random words
through ir::build, structure, resources, io and lowering). Port of
avatarmanz/VIctory-7900XTX#325; the new test panics on this main
(index 215, len 128) and passes with the change.
(cherry picked from commit d30f8bee17096cab6a6de3f5f37244211dcaa861)
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)
A pipeline that gets no host pipeline in the warm's child (left out by the
run's switches, like the ~1,000 CS_RaytracingResolve without
VICTORY_BVH_BUILDER=1, or refused) was still written to warm-done.txt. A
later warm with the structure builder on then skipped them for good, and
every ray-traced run compiled them in play: ~670 pipelines "being made" in
the first minutes, and NVIDIA's background compile kept frames waiting for
seconds (RTX 4090: frames of 3-10 s while the D3D background threads
compiled). Only those with a host pipeline are done now; the others are
asked again by the next warm (refusals cost no compile).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 4f2be389a4da33ae7d5e384389c7b428a2a75db6)
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)
A week of measurements on a 12 GB NVIDIA card at Series X: where the frame goes (383-410 ms, the 226-326 ms settle for a fill of upload memory against a 174 MB view), five changes that shortened work the frame does not wait on (shadow masks, pipeline groups, striped locks, DLSS, the title's own upscaler), two faults found (a Streamline folder without sl.dlss.dll, a MiB count that wrapped), and the one lever left (two frames in flight).
(cherry picked from commit 6fe8a31041a35c803e7f129f2693201431448956)
The fix in .4 and .5 did not take effect (see the v2026.11.27.6 release
notes), so a D3D12 folder of another version than 1.614 failed with
0x887E0003 until .6.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit d768748b2e268f63fe25348038b92c3f35cd141e)
- 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]>
Windows reads victory.exe's D3D12SDKVersion export when d3d12.dll is loaded.
As a static import, it was loaded before main, so match_d3d12_core's value
never took effect and v2026.11.27.4 and .5 always asked for 614 (0x887E0003
on Windows 10 and Windows 11 22H2/23H2 without a D3D12 folder, issue #271,
and with a 1.618/1.620 folder). A copy of .5 whose export starts at 9999
fails the shader-model check here even though main sets 4 first; with
/DELAYLOAD:d3d12.dll it passes.
Without a folder, ask for Windows' own runtime's version (the D3D12SDKVersion
System32's D3D12Core.dll exports, at most 614) instead of 4: once 4 was
really read, Windows turned off later features and muted runs held 14 fps
with a white window.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Since v2026.11.27.2 the exe asked for Agility SDK 614 everywhere. Where
Windows' own runtime is older (Windows 10, Windows 11 22H2 build 22623) and
no D3D12\D3D12Core.dll is beside the exe, Windows looked for 1.614 there and
refused Direct3D 12 (0x887E0003). The shader-model check that offers the
download failed the same way, so on Windows 10 the offer never appeared.
Now the version is the folder's file version, or 4 (Windows' own runtime)
without one. After `victory play` fetches the file, the same process reads it
again before Direct3D 12 is first loaded.
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]>
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]>
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]>
The title sends the sound of speakers in the world (TVs, phone calls) through
the audio DSP alone, and its reverb sends through it too. The DSP's outputs
were zeros, so those were silent and reverb was dry (fxceless/victory-fork#1470).
The impulse responses the title passes to XDspActivate are blocks of 2048
floats: the unscaled 2048-point FFT of a 2048-sample window of the response,
window k covering samples (k-1)*1024..(k+1)*1024, bins 0-1023 interleaved
re/im, then a schedule block that starts with 0xFFFFACE1. Every block of the
title's responses matches its neighbours under that reading. An input block
zero-padded to 2048 samples times window k gives that block's part of the
output k blocks later, in the second half of the inverse FFT.
All the streams the title opened in a session with TVs, a phone call and
reverb were mono convolutions of 1024-frame blocks; those are computed now.
Stereo and 512-frame convolutions and the other transforms still give zeros.
VICTORY_DSP_CONVOLVE=0 turns it off; VICTORY_DSP_GAIN scales it (default 2:
the hardware's scaling is not known, and 1/2048 alone sounded quiet).
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)
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]>