Every buffer the CPU maps and the card reads counts against DXGI's
non-local budget, which Windows caps at half the RAM, not against free RAM.
On 16 and 24 GB PCs it ran out with gigabytes free, every such buffer was
refused from then on, down to 256 bytes, and the run ended when a host
command list could not close (0x8007000E; #156, #206).
The once-a-second sweep now reads that budget: pressure from 85 % (off
under 75 %), critical from 95 %, the same levels the RAM sample sets, so
spares, staging and texture prefetch shrink before the cap is reached.
The limit and its ending are VIctory-NVIDIA's issue 1520 (trustno1-coder),
whose fix scaled its own L0 caches down on PCs under 24 GiB.
The driver keeps static samplers in a table in the order a process first
makes them, and a compiled pipeline holds their places in it; its disk
cache finds a pipeline again only where those places match. Pipelines are
made by several threads in the title's order, so the places changed from
run to run and the driver compiled again at every start. Every distinct
sampler is now listed in pipelines/static-samplers.txt and made in that
order when the device is made, and before each pipeline's root signature.
Ported from trustno1-coder/VIctory-NVIDIA (pipeline/samplers.rs), without
its pipeline-library and warm-fingerprint hooks.
VICTORY_KEYS presses keys at set seconds, focus or not, but a script that
wants Enter pressed until the world draws cannot know those seconds: the
start screen takes Enter after a time that depends on the cache and the
disk, and a press that comes late lands in the world. With this a script
has Enter pressed every few seconds and makes the file when it sees the
world draw (the window's title has the draws a frame); from then on no
scripted key is pressed. The file is looked for only while a key of the
script is due.
Under Proton on a Wayland desktop this is what lets a measuring run start
with nobody at the keyboard: a key sent from outside reaches the title
only while its window has the focus.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Read Sony HID reports alongside XInput and map the sticks, triggers and
buttons to GameInput. Discover controllers in the background and keep
their device IDs stable across polls.
Send low- and high-frequency rumble over USB and Bluetooth. Cover both
report formats and rumble packets in tests, with a hardware check for a
connected controller.
(cherry picked from commit 9fded1b254)
The launchers' 71b6330:1 is Grand Theft Auto VI's watchdog tick in one
build (image hash b99f876b74d4a77f...); in any other title or build that
address is other data and a write twice a second there corrupts it.
An entry `<hash>@<rva>:<byte>` now only writes into the title whose image
hash starts with <hash>; entries without one write as before. The
launchers set b99f876b74d4a77f@71b6330:1. `off` writes nothing.
The title's watchdog thread (title+0x2215a60) checks once a second that the
main loop's tick (title+0x71b6338) moved, and after 30 checks without it
ends the title on purpose: it decodes a message and writes to address 0 at
+0x23cf683 ("write 0x0: nothing mapped there", the crash in #39). While the
first frames wait for their compute pipelines (2a1965f) the loop can stall
past 30 s. The watchdog starts its count over on every pass while bit 0 of
title+0x71b6330 is set.
VICTORY_POKE (run.rs) was only built with `diagnostics`; it is now in every
build (it does nothing unless set), and Play-VIctory*.cmd set
VICTORY_POKE=71b6330:1 unless it is set already.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>