Commit Graph
1466 Commits
Author SHA1 Message Date
krofty 2cffd2dfba fix(gpu): fence asynchronous timestamp slot reuse
(cherry picked from commit bc282695e539f09d881c61edd69a1552d410f8fb)
2026-11-27 17:51:23 -08:00
Diego Casares c1d81790a3 Shaders: take a mask's lane bit by console lane in halves mode
A console wave64 compute program that runs as two host waves of 32
("halves") numbers its lanes through console_thread (thread_id does).
console_lane and lane_bit still read the host lane index unless
exchange is set. A 64-bit mask read as a number, such as a select on
an SGPR pair, then gave lanes 32-63 the bits of the low dword: their
host lane is 0-31, so the test `lane < 32` always picked the low dword.

Use the console lane in both places when halves is set, as exchange
already does.

(cherry picked from commit 245cb85145bfd083e3df6769adf68dbdbb670340)
2026-11-27 17:51:23 -08:00
Diego Casares 202d2853a9 fix(loader): prepare no longer overflows on RVAs past 4 GiB
prepare() added a relocation's page RVA to its in-page offset, and the
TLS callback field's RVA to the directory's RVA, with plain `+`. In a
malformed image either sum can pass u32::MAX: a debug build panics, and
a release build wraps to a wrong RVA. Skip a relocation target that has
no RVA, and treat a TLS field with no RVA as having no relocation to
clear.

(cherry picked from commit 95b990d39a07685b77a5f89492bb705d62d23bbc)
2026-11-27 17:51:23 -08:00
Diego Casares 4902d45680 hle: pending_with completes the call it began, not the block's
pending_with ran its work on a thread that completed the call by its block
address. A title that cancels the call and begins another on the same block
(zeroed, as a new block is) had the old work finish the new call. The thread
also read the shared state through a raw pointer that cleanup had already
freed when the cancel ended the call, so a result returned after a cancel
was a use-after-free.

The thread now holds an Arc of the state and the call it began with, and
completes that call directly. A call a cancel ended is left alone.

Adds a regression test for the stale completion and a test for the
successful path.

(cherry picked from commit d3fb9dc0df8133003b2777944cfef613f6546bff)
2026-11-27 17:51:23 -08:00
illuminatedfellow 108a897113 XMem: physical page numbers freed are given out again before they pass the title's 21 bits
Page numbers only ever grew, and the title keeps them as 21-bit
`number >> 4`: past ~124 GiB of allocations over a run, a number came
back truncated, unknown to us or aliasing a live page. Numbers are still
given in order while they fit; then the lowest run of freed ones is used,
and an allocation with no such run fails (count 0) instead of handing out
a number the title cannot keep.

Port of avatarmanz/VIctory-7900XTX#316 (issue #233 there).

(cherry picked from commit 0db908bf11b861dcafc69eca9ef78c9e53b41ff1)
2026-11-27 17:51:23 -08:00
JRamos1993 3f054e4677 fix(gpu): present to the title's window, not a pseudoconsole's 0x0 window
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)
2026-11-27 17:51:23 -08:00
CuteBooty 74d6f2408b fix(gpu): pin the texture a placed view aliases while the copy uses it
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)
2026-11-27 17:51:23 -08:00
DiosET3RN0 8e9f11d618 Up-copy check: what is known of copies that are gone is let go
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)
2026-11-27 17:29:37 -08:00
victory-contributor ed81cb9ee0 play: keep VICTORY_HOME and VICTORY_ADAPTER through prepare (#472)
`prepare` clears every VICTORY_ variable not in KEPT before putting the
play settings in. VICTORY_HOME and VICTORY_ADAPTER were not in KEPT, but
both are read again after the clearing:

- Config::load in run resolves the cache and save folders, so with
  VICTORY_HOME set they still went to %LOCALAPPDATA%\victory (#472).
- The F1 menu's restart and the warm-up restart inherit this process's
  environment, so the next start read victory-settings.txt from
  %LOCALAPPDATA% instead of VICTORY_HOME, and its saved choices seemed lost.
- hardware_adapter reads VICTORY_ADAPTER when the host device is made, so
  a named card was passed over for the one with the most memory.

Adds both to KEPT, with a test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 9f05995e1752dcd5a4e2698c0ea54d523df83940)
2026-11-27 17:29:37 -08:00
shawn 9fed8976af Frame meter: log the frame times' spread (median, p95, p99, longest, frames over 50/100 ms)
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)
2026-11-27 17:29:37 -08:00
Maraco91 cda2be6245 HLE: a module name that fits clears the last error
`GetModuleFileName`'s contract sets the last error on truncation and clears
it when the whole name fits; `copy_truncated` only ever set it. A title that
tells a truncated name from a whole one by the last error (its own check,
after a buffer it grew until the call fit) read a stale error and treated a
whole name as truncated.

Ported from DexNom/VIctory 3c7d845b, GPL-3.0.

(cherry picked from commit b998af5432fb5af2b66c2db504d386a3656bf095)
2026-11-27 17:29:36 -08:00
fxceless 4f5ae578c8 GPU: a panicking pipeline build is refused and its worker carries on
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)
2026-11-27 17:29:36 -08:00
DexNom e205498c64 GPU: a background fence wait reports what went wrong instead of carrying on
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)
2026-11-27 17:29:36 -08:00
Sinan Mutlu 78e99b92c4 GPU: a parallel compare's first cut saturates at its span's start
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)
2026-11-27 17:29:36 -08:00
Luiz Gustavo Benicio Neves ee69dc0e1d Config: refuse a data_dir equal to or inside the cache_dir (#38, #42)
The cache may be deleted at any time; saves and settings kept inside it
would go with it. `is_within` compares resolved whole components, so a
sibling such as `cache-old` is still accepted, and a cache inside the
data folder remains allowed.

Ported from uiliannn/VItoriaBr 30d9ba1 (pull requests #38 and #42).

(cherry picked from commit 0f52dbd892f2e9af7a84e0edc9bec635ec42dc32)
2026-11-27 17:29:36 -08:00
Cannnabis aa7dd70250 warm-up: no restart unless the mark went down
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)
2026-11-27 17:29:36 -08:00
Noelmo Melo de4c8af474 Clarify DLSS frame generation availability
(cherry picked from commit d9d629672a8b3b8a0ab8cf6b6a2bb4aff525a155)
2026-11-27 17:29:35 -08:00
illuminatedfellow c12c4959a5 Tidy-ups: replay event, timeline after end, VICTORY_WATCH, validator status
- 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)
2026-11-27 17:29:35 -08:00
uiliannn 0dd34bdbe6 Formats: map console texture formats 189-191
The console's 189 and 191 are 4 bytes a texel (their DXGI equivalents are
block-compressed-colour and a 32-bit format), 190 one byte: they now get
layouts like the rest of their DXGI family instead of no layout at all.

Ported from uiliannn/VItoriaBr 0d1c4e0.

(cherry picked from commit 9fd09c35f28b91a8db82b499b8999990f1cd4035)
2026-11-27 17:29:35 -08:00
ZBZD-p 5732b3df3c translate: skip known non-shader asset packs in precompile
(cherry picked from commit 8e3a1f4cf99f06cb3425eb82c42026458cbcfed5)
2026-11-27 17:29:35 -08:00
fromrivertothesea 761de52baf preload: --jobs / VICTORY_PRELOAD_JOBS to leave the rest of the PC free
The preload passed no thread count to any of its three steps, so it took
every core to translate and two thirds of them to make pipelines, with no
way to play or work beside it. `victory preload --jobs N` (or the switch
VICTORY_PRELOAD_JOBS=N, which the launcher's -More and the F1 menu's
restart carry) now gives each step N threads or processes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FsQtBz4aDhUTip3jBagKEX
(cherry picked from commit 3692a28bd7e561abd133495873543150f389aad8)
2026-11-27 17:29:35 -08:00
fromrivertothesea 4e533e79ee Shaders: VICTORY_WAVE_WHY=1 tells a translation's LDS past the host's 32 KiB
A console program may use up to 64 KiB of LDS a group; a D3D12 group has 32 KiB.
When the program's own LDS and the dwords the translation adds past it (the
halves' exchange, wave_base's counter, the console waves' meetings) do not fit,
the refusal said only "LDS for the console waves' meetings past the host's 32 KiB",
and other forms said nothing until the driver refused the pipeline.

With VICTORY_WAVE_WHY=1, a WAVE64-LDS line now gives the total, the program's own
dwords and what the translation added, e.g. for
vfx_triangleClip:CS_CollectTriangles_Meshlets (#6b82bc7d22016cb5):

  WAVE64-LDS 8369 dwords of the host's 8192: the program's own 8192, the translation's 177 ...

Output only; no translation changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FsQtBz4aDhUTip3jBagKEX
(cherry picked from commit c4b034ab4e09573e0188b4c77c87b277938c9f7b)
2026-11-27 17:29:35 -08:00
illuminatedfellow a12e0ae254 ir::build: a scalar code past the registers is not an index past unspill's table
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)
2026-11-27 17:29:35 -08:00
flav 261078d78c Fix native D3D12 runtime version assertion on Windows 10
(cherry picked from commit 45c4ded79a9e2892d9669617bb028523fb78d6a5)
2026-11-27 17:29:34 -08:00
yeedgrthfgv 5986a64dd7 F1 menu: switches for THIN, JOIN PARTS and ASYNC SUBMIT (heads missing with THIN on an RTX 5080)
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)
2026-11-27 17:29:34 -08:00
Yorivel 5ed66db74f victory warm: pipelines left out or refused are not written down as done
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)
2026-11-27 17:29:34 -08:00
Cannnabis 17c07bd8eb book: the address a device loss names can be any u64
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)
2026-11-27 17:29:34 -08:00
krofty 0745a5de72 fix(shader): retain scalar bounds with vector loads
(cherry picked from commit 1a34acb301c406ace0aa86610342e3fcb8679825)
2026-11-27 17:29:34 -08:00
Gilles d937776989 fix: pass a null pointer on an empty blob for proton compatibility
(cherry picked from commit dad5e48913cb63a34dac6d56c284c04c186eeacf)
2026-11-27 17:29:34 -08:00
AwkGrep256 36fd13df5e Docs: demonstrate typed native DLSS frame generation
(cherry picked from commit 949377b785daacb6aefac12e6af79396934d57b9)
2026-11-27 17:29:33 -08:00
AwkGrep256 27d2d73382 Docs: show how native frame generation would reuse Streamline
(cherry picked from commit d17b6859415cc4cab55bc592837d8e9437776194)
2026-11-27 17:29:33 -08:00
AwkGrep256 6d3ac70873 Docs: propose native Graphics controls alongside F1
(cherry picked from commit e85ad98c83108ab64080e98f973b6967000e1453)
2026-11-27 17:29:33 -08:00
superboynick 7abed99c7c docs: what was learned on an RTX 5070 Ti Laptop, and five things that did not move the frame
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)
2026-11-27 17:29:33 -08:00
robzombie91 73ce91d16d Docs: building on Linux and first runs under Proton
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit 409592a2ca7b5418972855267b0ac6a84a23845e)
2026-11-27 17:29:33 -08:00
mattiolocoding 1db4ceac3a docs: record DLSS comparison under synchronous recording
(cherry picked from commit 1b892af9437ca2320e3ff0da0f7d3a9d5da6d465)
2026-11-27 17:29:33 -08:00
mattiolocoding 7448ece334 docs: capture eight-gigabyte rendering comparisons
(cherry picked from commit 4a7b9620e7f3121264b46b3a2908689ee1d8a6dd)
2026-11-27 17:29:33 -08:00
mattiolocoding 19cc6f0c21 docs: record post-reboot load and separate rendering limits
(cherry picked from commit 4b9e6c30212a454415bb1e5ecfcdbd7a654ddb02)
2026-11-27 17:29:33 -08:00
mattiolocoding f8eab8b01f docs: diagnose Windows memory exhaustion during world loading
(cherry picked from commit b3ec90a65719b545d654d7ce3cc2a143a10e4502)
2026-11-27 17:29:33 -08:00
Mericas77 805c77f65c README: the D3D12 folder version fix is in v2026.11.27.6, not .4
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)
2026-11-27 17:29:33 -08:00
mikan123proandClaude Opus 5.5 a4d05e7fd0 Credits: mikan123pro tested save sharing with their save (discussion #520)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 16:58:02 -08:00
DueTonightandClaude Opus 5.5 9a7cd87aa3 Credits: DueTonight tested save sharing with their save (discussion #520)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 16:58:02 -08:00
c1cbdc9d11 Save sharing in the F1 menu, restarts keep their options, DLSS fixes, monitor's card
- 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]>
2026-11-27 16:58:02 -08:00
trustno1-coderandClaude Opus 5.5 64d4931b3d Water light on, PS4 pads, F1 menu saves at once, long-session memory, memory switches
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]>
2026-11-27 15:03:27 -08:00
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