Commit Graph
1423 Commits
Author SHA1 Message Date
trustno1-coderandClaude Opus 5.5 df2daafeb1 Launch fixes: VILauncher Agility hash, FSR 3 frame gen needs DLSS, Windows 10 runtime; ask for logs
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]>
2026-11-27 13:31:15 -08:00
trustno1-coderandClaude Opus 5.5 0f0ada1909 Load d3d12.dll on first use so the D3D12SDKVersion set in main is the one Windows reads
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]>
2026-11-27 12:53:32 -08:00
trustno1-coderandClaude Opus 5.5 f3534e6b09 Without a D3D12 folder, ask for Windows' own Direct3D 12 (0x887E0003 on Windows 10 and older Windows 11)
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]>
2026-11-27 12:21:55 -08:00
trustno1-coderandClaude Opus 5.5 e69e39c55b Crash fixes: upload room reserved at the start, D3D12 folder of any version, VICTORY_HOME
- 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]>
2026-11-27 12:07:42 -08:00
trustno1-coder c5f7528bbf Merge PR #88: no arena storm when the low range is full; reserve the arenas' room at the start 2026-11-27 11:45:55 -08:00
trustno1-coder be2e203c76 Merge PR #77: audio DSP mono convolutions (phone calls, TVs, reverb) 2026-11-27 11:45:26 -08:00
trustno1-coder 502f54ce84 Merge PR #58: placed views ignore padding words (views leak, confetti on faces) 2026-11-27 11:45:07 -08:00
trustno1-coderandClaude Opus 5.5 0cef07e9d7 MFG Unlocker as an F1 option: downloaded and loaded at start when on
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]>
2026-11-27 10:59:16 -08:00
trustno1-codeandClaude Opus 5.5 10862a6d87 Windows 10 runtime, F1 preload fix, AMD FSR download, warm-up restart, MFG Unlocker notice
- 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]>
2026-11-27 10:43:30 -08:00
trustno1-coderandClaude Opus 5.5 ca9c75cd6d README: how to report a problem, with the play log and the crash log
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]>
2026-11-27 10:12:44 -08:00
YorivelandClaude Opus 5.5 30b979ee48 Memory by address: no arena storm when the low range is full; reserve its room at the start
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]>
2026-11-27 19:50:17 +02:00
trustno1-coderandClaude Opus 5.5 29d8dbf7d9 AMD FSR 3 frame generation for cards without DLSS frame generation; start notice; F1 preload
- 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]>
2026-11-27 09:06:36 -08:00
Yve eca45ac2fd Audio DSP: compute mono convolutions, so TVs, phone calls and reverb are heard
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).
2026-11-27 17:50:39 +01:00
regiumlepidiandClaude Opus 5.5 8bff6c21b9 Test: placed views keep the resource description's padding words as zero
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 16:26:18 +01:00
Claude 144aca0faa descriptor: placed views leave out the view words their kind does not use
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)
2026-11-27 16:26:18 +01:00
Claude 89fd93613c descriptor: keep at most a million table entries of views no resource releases
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)
2026-11-27 16:26:18 +01:00
Claude 4eead678b3 descriptor: placed views ignore the padding words of the resource description
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)
2026-11-27 16:26:18 +01:00
trustno1-coder d12eb1b23d Merge pull request #30 from regiumlepidi/pr-thread-ticket
Shaders: console threads of 2-D groups on NVIDIA from a group counter (port of Vice-Tay c125c0c, #1243)
2026-11-27 05:40:38 -08:00
trustno1-coder 959dcaf609 Merge pull request #31 from wike1701/fix/play-framegen-policy-and-hags
fix(scripts): bypass PowerShell execution policy in PLAY_FRAMEGEN.cmd and fix Windows 11 HAGS check
2026-11-27 03:00:46 -08:00
trustno1-coder 06dce657a4 Merge pull request #32 from wike1701/fix/suppress-mouse-in-f1-menu
fix(hle): suppress mouse motion and buttons while the F1 settings menu is open
2026-11-27 03:00:23 -08:00
wike1701 86a3976007 fix(hle): suppress mouse motion and buttons while the F1 settings menu is open
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).
2026-11-27 11:53:18 +01:00
wike1701 0a542c06ff fix(scripts): bypass PowerShell execution policy in PLAY_FRAMEGEN.cmd and fix Windows 11 HAGS check
- 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.
2026-11-27 11:46:45 +01:00
regiumlepidiandClaude Opus 5.5 2dc3df1c72 Test: the console threads of a 32 x 2 group are each given once (from Vice-Tay c125c0c)
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]>
2026-11-27 11:22:23 +01:00
regiumlepidiandClaude Opus 5.5 854f57ff7a Shaders: console lanes in groups of several host waves take their threads from a group counter (port of Vice-Tay c125c0c, fxceless #1243)
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]>
2026-11-27 11:22:23 +01:00
trustno1-coderandClaude Opus 5.5 9341f4316f PLAY_FRAMEGEN.bat is PLAY_FRAMEGEN.cmd: the repository's file policy allows .cmd, not .bat
#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]>
2026-11-27 01:52:13 -08:00
trustno1-coder 3f60eeee0b Merge pull request #29 from Ahyildiz/fix/ambient-probe-garbage
Ambient: drop violet probe garbage before the raise (purple blotch on lit paper)
2026-11-27 01:45:58 -08:00
trustno1-coder dc6dc87098 Merge pull request #28 from wike1701/fix/dynamic-slot-heap-identity
GPU: release dynamic descriptor slots only to the host heap that allocated them
2026-11-27 01:45:53 -08:00
trustno1-coder 7c04c61735 Merge pull request #24 from CuteBooty/fix/raw-view-clamp
fix(gpu): raw buffer views stay inside their buffer (VICTORY_RAW_VIEW_CLAMP)
2026-11-27 01:32:00 -08:00
trustno1-coder b98279b65e Merge pull request #22 from Indy2l/perf/helper-priority
perf(cores): run the submitting thread's helpers at its priority
2026-11-27 01:31:55 -08:00
trustno1-coder 1a94d3ad55 Merge pull request #26 from CuteBooty/feat/skip-bink
feat(hle): skip the title's Bink movies on request (VICTORY_SKIP_BINK, off by default)
2026-11-27 01:31:50 -08:00
trustno1-coder 40219cee70 Merge pull request #23 from CuteBooty/fix/bc7-rotation
fix(formats): BC7 rotation only in modes 4 and 5 (BCPack)
2026-11-27 01:31:46 -08:00
AhyildizandClaude Opus 5.5 826ba150c8 Ambient: drop violet probe garbage before the raise (purple blotch on lit paper)
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]>
2026-11-27 12:28:57 +03:00
wike1701 47747d6236 GPU: release dynamic descriptor slots only to the host heap that allocated them
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.
2026-11-27 10:04:21 +01:00
Indy2landClaude Opus 5.5 80c70b719f perf(cores): run the submitting thread's helpers at its priority
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]>
2026-11-27 09:44:12 +01:00
trustno1-coder 18a8dc2640 Merge pull request #21 from yualk/fix/embedded-dxbc-extent
fix(cli): hash only the embedded DXBC container
2026-11-27 00:25:18 -08:00
Yusuf Al-Khawaldeh b1369afb40 fix(cli): hash only the embedded DXBC container
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.
2026-11-27 03:15:56 -05:00
CuteBootyandClaude Fable 5.2 e31f474068 feat(hle): skip the title's Bink movies on request (VICTORY_SKIP_BINK, off by default)
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]>
2026-11-27 00:56:49 -07:00
CuteBootyandClaude Fable 5.2 aec85efb10 fix(gpu): raw buffer views stay inside their buffer (VICTORY_RAW_VIEW_CLAMP, on; =0 restores)
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]>
2026-11-27 00:56:48 -07:00
fxcelessandClaude Fable 5.2 6726920a80 fix(formats): BC7 rotation only in modes 4 and 5 (BCPack)
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]>
2026-11-27 00:49:16 -07:00
trustno1-coder c437b0594b Merge pull request #20 from Blitzball996/feat/dualsense
Feat/dualsense
2026-11-26 23:00:31 -08:00
Blitzball996 ad76e50520 Local: extreme Series X mode (6), frame generation 4x on RTX 50 (GTA6_FRAMEGEN_X overrides) 2026-11-27 14:47:16 +08:00
Blitzball996 9018b2c383 Local: one-click launcher (save backup, DLSS fetch, frame generation, tuned worker pools, extreme mode) 2026-11-27 14:43:53 +08:00
Blitzball996 025abd3dc8 Input: PS5 pads (DualSense, DualSense Edge) read from HID, over USB or Bluetooth
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
2026-11-27 14:43:53 +08:00
trustno1-coderandClaude Opus 5.5 06afe633e6 Window and input from #17: asked for, off by default, in the F1 menu
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]>
2026-11-26 21:53:38 -08:00
trustno1-coder c8212dfe92 Merge pull request #17 from superboynick: window and input (fullscreen, English IME, mouse capture) 2026-11-26 21:49:45 -08:00
trustno1-coderandClaude Fable 5.2 48ad7859fb victory play: the program alone, beside the title, is all there is to start
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]>
2026-11-26 21:28:35 -08:00
trustno1-coderandClaude Fable 5.2 1010e02314 README: how to run it, at the top (what you need, four commands, F1 and F3)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-26 21:02:15 -08:00
trustno1-coder a0fb040c96 Update README.md 2026-11-26 20:51:35 -08:00
trustno1-coderandClaude Fable 5.2 35c156087e Open water without dark blocks; the F3 stats panel in every build
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]>
2026-11-26 20:39:26 -08:00
superboynick 4a0c8ea373 Window and input: fullscreen, English input method, and a mouse capture that leaves the pointer alone
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.
2026-11-27 12:12:12 +08:00