Commit Graph
633 Commits
Author SHA1 Message Date
readmet3xt-labandClaude Opus 5.5 f149e26fea Name pipelines left out on purpose instead of "being made"
The diagnostics breakdown counted every draw or dispatch of a pipeline
left out on purpose (make::left_out: CS_RaytracingResolve without the
ray-tracing structure builder, CS_ScreenProbes_ActivateRays) as "being
made": such a pipeline is never queued, so its host pipeline is never
made. In gameplay that was some 630 indirect dispatches a frame
("dropped 632.0/frame without a host pipeline: being made") while the
queue was empty in every frame ("0 being made"): the ray-tracing
resolves, one indirect dispatch per material (329 distinct resolve
programs bound in run 155824, their first binds in the second the
first indirect signature was dropped). No world draw is among them.

- make::missing names the reason ("left out on purpose: ...").
- The frame line counts them per frame, direct and indirect together
  ("N of all these left out on purpose: ray-tracing passes without the
  structure builder"), in release builds too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 17:14:53 +05:30
readmet3xt-labandClaude Opus 5.5 9a791323ba 1440p output for the Series X retail image (from DexNom's fork)
VICTORY_NATIVE_1440P=1 (scene 2560x1440) or VICTORY_RENDER_1080P=1
(scene 1920x1080 scaled up by the title) patch the retail image's SDR
display mode, scanout reservation, temporal scene scale and Settings
viewport load before it is mapped, each checked against the stock
bytes; the patched image is cached apart from the stock one. The
frontend's legacy 4K projection gets its viewport on the 1440p target.
Ported from DexNom/VIctory (GPL-3.0-or-later), native 1440p part only.

Series X on an RTX 4070 SUPER, the opening's cutscene: median frame
77 -> 67 ms, 95th percentile 506 -> 401 ms (bench x-nowait vs
x1440-vol, with the volumetric light also on).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 15:46:08 +05:30
readmet3xt-labandClaude Opus 5.5 eeb17cca70 Volumetric light on 32-lane hosts: widen its two tiled programs
CS_TransmissionVolumetrics_Tiled and _Tiled_LocalLights (GTA VI 1.0.2.1)
are wave64 programs in groups of 64 with an LDS read and write in one
lane-branch region: no form but the widened one translates them for a
32-lane host, so on NVIDIA their dispatches were dropped and there was
no volumetric light or fog. They join the two kernels the widened form
is already chosen for by digest. On an RTX 4070 SUPER: the pack's
untranslatable wave64 programs 26 -> 24, the opening and its first
gameplay area run with the volumetric light and no device loss.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 15:46:08 +05:30
readmet3xt-labandClaude Opus 5.5 cb191f38e4 Log views in another format than their typed host texture
Each pair (kind of view, texture format, view format) is said once, with
the host's casting support: shader and unordered access views that
`fits` gives the texture's own format, and render target views made in
another format than their typed host copy. On an RTX 4070 SUPER both
CastingFullyTypedFormatSupported and RelaxedFormatCastingSupported hold,
and the opening of GTA VI makes one such pair (a UNORM render target
view of an sRGB texture): not the cause of its posterised shading.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 15:37:04 +05:30
readmet3xt-labandClaude Fable 5.2 22035389e6 Card copies of title buffers and windows sized from the VRAM budget
On cards with a budget of 12 GiB or less the copies of title buffers in
the card's memory were capped at 512 MB, and windows outside buffers had
no card room unless asked for. On an RTX 4070 SUPER (budget 11,229 MB)
the rest, 5.7 GB, was read by shaders over the bus: the opening's six
heaviest compute passes took 20-42 ms each and gameplay ran at 3 fps.
The cap is now 18% of the budget (512-2048 MB) and windows get 9% of it
(at most 1024 MB) from 8 GiB budgets on: those passes take 0.2-0.4 ms
and the release build runs gameplay at 21-25 fps.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-26 14:57:18 +05:30
readmet3xt-labandClaude Fable 5.2 2f0fbe147a Frame interval and refresh overrides, live key input for test drives
VICTORY_FRAME_INTERVAL_US paces frames at another interval than the
title asks (it asks 33.333 ms); VICTORY_DISPLAY_REFRESH adds a refresh
rate above 60 Hz to the display mode list. VICTORY_KEYS_FILE lets a
driver script press the stand-in pad's buttons while the title runs.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-26 14:57:18 +05:30
codec_d 545f89019e Publish the pareto-residency Windows build and portable launcher 2026-11-25 22:33:14 -08:00
codec_d efeef1d65b Back off refused GPU pool growth and defer uploads under low commit 2026-11-25 16:07:37 -08:00
codec_d 933b382635 Scope bindless refreshes to their heap and bound speculative staging 2026-11-25 15:50:47 -08:00
codec_d 3bcc96f9bb Port NVIDIA Wave32 lowering, smooth movie-plane uploads, XMA audio fixes, and 32GB RAM residency budgets 2026-11-25 15:31:19 -08:00
codec_d 45e90f4de8 Fix Series S two-plane black screen by reading RetailPlane at 72-byte stride 2026-11-25 14:55:26 -08:00
codec_d f5847e6248 Merge VIctory-7900XTX (0a43566) with RTX 5090 fidelity & 32 GB RAM optimizations: two-plane compose, fallback heaps, TablePlan, residency guard, 256 MiB DirectStorage, and WaitOnAddress fence wakes 2026-11-25 14:43:52 -08:00
localandClaude Opus 5.5 aebe5a0622 README: where it is cloned from
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 16:14:34 -06:00
localandClaude Opus 5.5 1028eef2c8 README, findings and a start script of this fork; fxceless' README kept in docs; the translator's file may be 640 KiB
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 16:13:05 -06:00
local 7e945ed582 Merge commit '449830f6' into local/next 2026-11-25 15:57:35 -06:00
local 5aba66bced Merge branch 'day/shaders' into local/next 2026-11-25 15:57:28 -06:00
localandClaude Opus 5.5 ee481c02fb Heaps' records copied as bytes: pages read, compared and sorted out on several threads, empty slots that show nothing left alone; pages of places read by steps on the card asked about once
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:57:28 -06:00
localandClaude Opus 5.5 3931fbbbad Scalar buffer loads four dwords a call (VICTORY_SHADER_OPT=127; off): fxceless c36971b2's shader part
What 53abe45a ("wip wide") brought in: opt bit 64, smem's loads through
raw_dwords, its test and switch test as they are there (the global loads of
this tree were wide already). Yard capture, turn by turn: 18.47 -> 18.45 ms
(12 loops) and 18.23 -> 18.16 (5): nothing, so not on. With the bit off the
code written is that of before.

Not run yet: scalar_buffer_loads_read_the_same_dwords_one_call_or_four and
the gpu tests on the second merge of local/next (2be0515c); the diagnostics
build of 393e74fb finished.

Belobug ae75a66a is this tree's own opt.rs (both from the fork at ba8697aa)
without its first-lane pass; 7263339c is a trace: nothing to take.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:57:05 -06:00
localandClaude Opus 5.5 49f9aa034d The frame line says how many indirect records ran empty for want of their list's budget, and the largest cost; VICTORY_INDIRECT_REST=0: a record that does not fit takes nothing from the ones after it
Belobug (76387c2d) found draws flickering because the records past a list's
budget were not the same ones from frame to frame. Whether ours are refused
is not known: the count says it (atomics only when there is something to
say). Off by default; the records' order and costs stay what they were.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:46:34 -06:00
localandClaude Opus 5.5 5e2394c2f4 The same render targets are not set again (after ZJOU acf478b8, author local); VICTORY_BIND_CACHE=0 sets them every time
Theirs compares the handles, which a title may write other views behind;
here the views themselves (resource, host texture, description) are compared.
A call with the same ones saves a host view per target and the driver's call.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:44:14 -06:00
localandClaude Opus 5.5 a869d90e3a A root constant buffer not 256-byte aligned is copied into scratch memory once for the draws of a list that bind it (from Belobug 84ea9c12, romainhedouin)
Until the list next writes title memory, as for refreshes: up to 64 KiB of
fill less for every repeat. How often this title binds one was not measured.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:43:00 -06:00
localandClaude Opus 5.5 14692d11ff A pipeline a list binds again is not kept and named again (from Belobug 92d353f8, romainhedouin)
Two queries for an interface, three locks and a name looked up at every
change of pipeline; now one lookup by address.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:42:59 -06:00
localandClaude Opus 5.5 c8ede50886 A range shaders write is declared once until the list next writes title memory (from Belobug dd799aad, romainhedouin); VICTORY_DECLARE_ONCE=0 for the old way
Dispatches declare the same few ranges again and again: 4,003 to 5,550
steps a frame of fork-b1-fast, each a flush of its copy's pending refreshes
and two locks on the thread that submits (the snapshots alone 1.7 to 2.0 ms
a frame). The ranges and their order stay what they were.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:42:04 -06:00
local 2547124475 Merge branch 'day/faults' into local/next 2026-11-25 15:35:09 -06:00
localandClaude Opus 5.5 e3fa9c60c0 Title buffers' copies down to any size in the card's memory (VICTORY_CARD_BUFFERS_MIN_KB), the card's hashes over the buffer's own bytes (both after fxceless c36971b2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:35:09 -06:00
localandClaude Opus 5.5 52ee4a18a1 Merge local/next into day/shaders
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:33:43 -06:00
local bedc855635 wip wide 2026-11-25 15:33:42 -06:00
localandClaude Opus 5.5 af3c946271 Merge local/next into day/shaders; pipeline workers are all woken
Queue: passes over the screen first (local/next), then what draws asked
for, the early ones, and those known to take long by a quarter of the
workers. start() woke one worker, which could be one of the two that take
passes over the screen alone: the pipeline then waited for the next push.
All are woken now. victory warm goes through the pipelines no run drew with
in no order, 40 a process. victory translate: VICTORY_HOST_RDNA=1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:32:48 -06:00
localandClaude Opus 5.5 df787d4d3d Views mapped beside guarded ones: all views of the page are opened together, under the lock
A page shown at several addresses, and one more view of it being mapped: the
views that were to be opened were looked for before the lock was taken, so one
made clean in between stayed clean with a writable view beside it (a write of
the title's through that one was not told until its block's next told write),
and they were opened one range after another, so for some microseconds one was
writable while others were still known by their bits (told one asking late).
Both are older than the faults' work; VICTORY_OPEN_ONE_VIEW made the first
common. Also: what is known by its bits is not where bytes were just put in
beside the guard (VICTORY_COPY_BESIDE, VICTORY_STORE_BESIDE).

The test of writes through other views failed in 6 of 200 runs, then 4 of 380
with the first mended, 0 of 603 (four tests each) with both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:31:36 -06:00
localandClaude Opus 5.5 41d9b5b9b0 Textures shaders write that the title reads on the CPU are copied back into title memory (from fxceless f5c03f3b, pull request 999: Geckomacabre 895c0b8f, 04df4350); on by default
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:31:36 -06:00
localandClaude Opus 5.5 0f1607c82a The pages shaders' writes were put into are noted without a lock
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:31:33 -06:00
local e7f4650235 Merge branch 'local/next' into day/faults 2026-11-25 15:31:33 -06:00
localandClaude Opus 5.5 80d95bcd41 Copies in the card's memory: the changed runs sorted once and stably, piece runs joined while built; steps on the card: slots made on several threads
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:29:08 -06:00
localandClaude Opus 5.5 d8acf26bf8 Views mapped beside guarded ones: all views of the page are opened together, under the lock
A page shown at several addresses, and one more view of it being mapped: the
views that were to be opened were looked for before the lock was taken, so one
made clean in between stayed clean with a writable view beside it (a write of
the title's through that one was not told until its block's next told write),
and they were opened one range after another, so for some microseconds one was
writable while others were still known by their bits (told one asking late).
Both are older than the faults' work; VICTORY_OPEN_ONE_VIEW made the first
common. Also: what is known by its bits is not where bytes were just put in
beside the guard (VICTORY_COPY_BESIDE, VICTORY_STORE_BESIDE).

The test of writes through other views failed in 6 of 200 runs, then 4 of 380
with the first mended, 0 of 603 (four tests each) with both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:24:11 -06:00
localandClaude Opus 5.5 bd7be01b3b Pipelines known to take long are made beside the others, by a quarter of the workers (VICTORY_PIPELINE_SLOW=0: in the order created)
Run shaders-1, the first with a changed translator (fresh shader and
pipeline caches): 3,020 pipelines started at creation, all 16 workers in
programs of seconds to tens of seconds each while the title loaded (97 made in 20 s),
then the quick ones at 100-190 a second, too late: 0.5-1.6 s a frame and up
to 2,900 draws a frame dropped from 60 to 150 s. A pipeline that took a
second is now noted (slow-pipelines.txt; `victory warm` notes them too) and
waits in a list of its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 14:35:11 -06:00
localandClaude Opus 5.5 a69eb0cacb Title bytes under flights' writes compared with AVX2 on threads of their own, the pairs sent up made on them; helpers that work ahead are not kept on the fast cores
VICTORY_UNDER_WIDE=0, VICTORY_UNDER_THREADS (6), VICTORY_FAST_CORES=3 (as before: all of them), VICTORY_WIDE_SPIN=<us> (0: off).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 14:23:12 -06:00
local fa4f6c33e6 Revert "Replay: buffers in heaps opened from memory are made again (without the cross-adapter flag)"
This reverts commit a50c7fdeb5.
2026-11-25 14:01:37 -06:00
local b5410ccd82 Merge day/light 2026-11-25 14:01:37 -06:00
localandClaude Opus 5.5 a36d7dec8c Sets of heap slots are bits, the heaps' records have threads of their own, what is mirrored of them is counted
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 14:01:36 -06:00
localandClaude Opus 5.5 db2308a32c Structure builder: the wait for sizes is off (VICTORY_BVH_SIZES_WAIT=1 turns it on): it mended nothing and costs some 20 ms a frame (light-15)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 14:01:14 -06:00
localandClaude Opus 5.5 7fdcfd885b Test of parts taken: other tests' notes at the address
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 13:46:47 -06:00
local 6c9b078296 Merge branch 'local/next' into day/faults 2026-11-25 13:45:09 -06:00
localandClaude Opus 5.5 90c59251c3 Look-first stubs for moves and vector stores (VICTORY_WRITE_SITES); descriptors copied onto themselves are not written (VICTORY_SAME_RECORDS=0: they are); of tracked pages the parts written are taken (VICTORY_TAKE_PARTS=0: pages); waits for the trackers' locks and the heap sync's parts counted
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 13:45:09 -06:00
local 3321b7e346 Merge day/textures 2026-11-25 13:44:40 -06:00
localandClaude Opus 5.5 f3e166db72 The panel is drawn by the diagnostics build only
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 13:44:39 -06:00
localandClaude Opus 5.5 2f22f6e2c2 The title's pipelines written down (VICTORY_PIPELINE_BOOK=1, off) and made ahead of a run, each batch in a process of its own (victory warm)
Every pipeline the title creates goes to known-pipelines.bin beside the
pipeline library, its containers to known-shaders.bin (in the cache folder;
they are the title's code). `victory warm` makes their host pipelines in
idle-priority processes of 200 each and lets them go: the driver's cache on
disk keeps them. Those earlier runs drew with come first; what is done is
noted by translator and driver (warm-done.txt); a pipeline that ends or
hangs its process is named in warm-bad.txt and skipped. VICTORY_EARLY_ALL
does this in the running title and ended it inside the driver.

Not measured yet: how long, and how much the driver's cache grows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 13:32:18 -06:00
localandClaude Opus 5.5 eaef3651c6 Frame replay: --shaders takes passes of ours too, by their own hash
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 13:32:18 -06:00
localandClaude Opus 5.5 03fbb23b27 The compare of card copies loads eight places at once (the same hashes)
Yard capture, 423 passes a frame, turn by turn: 1.93 -> 1.69 ms (4 loops;
four at once 1.70, sixteen 1.71).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 13:32:18 -06:00
localandClaude Opus 5.5 fe20cd8dbd VICTORY_MAP_THREADS=auto is asked for, not the default: 16 threads map no more pages than one in the dorm, and a frame takes longer
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 13:31:25 -06:00
local 8c69173bf0 Merge day/shaders 2026-11-25 13:29:56 -06:00