Commit Graph
509 Commits
Author SHA1 Message Date
localandClaude Opus 5.5 4e77a8795b A list makes a view its tables hold once and copies its descriptor (VICTORY_LIST_VIEWS=0: for every table); a draw's tables are gone through without memory of the heap
The recording job the frame waits for last (24 of 65 ms, timeline waits-2) is
2,500 indirect dispatches, each with a table of its own that differs in a
constant buffer. VICTORY_AB can turn VICTORY_MAP_THREADS (8 or 1) too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 09:03:29 -06:00
localandClaude Opus 5.5 a1bdba4cf9 Recording: a lock a descriptor slot, a thread's own answers about buffers, tables left as they are when nothing changed
Timeline waits-1 (dorm, 78 ms): the title's render thread stands 20 to 30 ms
a frame at one recording job and the rest at others; recording is the
critical path, and our list calls are 95 % of it. Profile waits-1, the five
recording threads: 21 % contended locks, 11 % HostHeap::keep, 17 % readable,
7 % the look-up of buffers, 8 % clocks and counters of ours.

VICTORY_QUICK_FIND=0 and VICTORY_READY_ONCE=0 go back; counters of the
diagnostics by thread, a coarse clock for what is noted per texture and slot.
VICTORY_AB=<s>,<switches> turns switches on and off while the title runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 08:14:21 -06:00
local 336f613986 A timeline of a few frames, with the chain each present came out of (VICTORY_TIMELINE)
Diagnostics only. VICTORY_TIMELINE=<file> records three frames (or
VICTORY_TIMELINE_FRAMES) after VICTORY_TIMELINE_AT seconds and writes a
Chrome trace and a text summary: spans of our work, the waits and wake-ups
of the title's threads (its imports) and of ours (our import table), long
kernel calls on the address space, and when each submission ran on the card.
The summary walks back from each present through who waited on whom.
Nothing is wrapped without the variable.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 008de5f9ffcef132079b1af8b7f4f1c22235cee9)
2026-11-25 07:46:13 -06:00
local ba837eeff9 Merge branch 'night/cpu' into local/next 2026-11-25 07:21:55 -06:00
localandClaude Opus 5.5 a0b4909dfb Objects let go and lists that ran are kept about two frames longer (VICTORY_BURY_LAG=0: not)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 07:21:55 -06:00
localandClaude Opus 5.5 9e30a46122 Scripted keys can be held from one time to another
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 07:19:34 -06:00
local b77262b5ae Merge branch 'night/crash' into local/next 2026-11-25 07:09:38 -06:00
localandClaude Opus 5.5 ef556e4218 The crash report names direct mesh dispatches; buffers and groups stay inside what there is
- The lists' notes for a lost device hold direct mesh dispatches too (pipeline,
  groups, user data): run n06c stopped among them.
- A mesh dispatch of more than 65,535 groups is cut to that (more is undefined
  on the host; said once). Vertex and index buffer views end with the copy they
  show.
- indirect::tests::loads_far_outside_views (a measurement): raw, typed,
  constant buffer and texture loads at the ends of 32 bits, uniform and per
  lane, samples at coordinates, levels and gradients that are no numbers: all
  198 ways end inside their views on the RX 7900 XTX.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 07:09:17 -06:00
localandClaude Opus 5.5 96f2f32e84 The threads a frame waits for are kept on the fast cores (VICTORY_FAST_CORES=0: not; 1: without the helpers)
cpu_sets and keep_on_fast_cores are fxceless/victory-fork's (framelog.rs,
commit 0b0074e0). Asked for by: submit, relay, late-wait, heap-sync, aside;
and the helpers of the wide copies (refreshes, fills, snapshots) and of the
landings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:53:52 -06:00
local 793d8b09ae Merge branch 'night/card' into local/next 2026-11-25 06:53:23 -06:00
localandClaude Opus 5.5 67471988dc A book of who has and had the card's memory; a check of every view slot
With device-removed data on, every buffer, texture and texture block stands in
a book with its address (a texture's is the base in its first descriptor) and
stays with the time it went. A device loss prints who has and had the faulting
address, newest first, and every slot of the view heap whose descriptor
reaches it, with what our books say of the slot. VICTORY_BOOK=0: not kept.

VICTORY_SLOT_CHECK=1 walks the view heap (2^22 slots, 3.8 s a round) and says
which slots name memory that is gone. Run crash-5 (opening, -Walk, 260 s): 1.7
million descriptors a round, 105,352 things alive, 27,342 gone, none of the
slots named anything gone or unknown in any round.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:53:10 -06:00
localandClaude Opus 5.5 13ffc2833d Wait instructions over the end of eight bytes are replaced too; clzero loops become plain stores (VICTORY_PATCH_CLZERO=0: emulated)
Run cpu-5: 25,000 exceptions a second at five clzero loops of one function
of the title, against 1,400-7,000 at the one monitorx/mwaitx pair (28,000
at the monitorx alone with only the mwaitx replaced, run cpu-6).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:48:29 -06:00
localandClaude Opus 5.5 040aa272c2 VICTORY_CARD_AWAKE: menus keep the card awake too (comment)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:26:36 -06:00
localandClaude Opus 5.5 55babd1acf Merge night/cpu: processor work, wait instructions patched, submit thread (off)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:21:22 -06:00
local 35d4815d37 Merge branch 'night/light' into local/next 2026-11-25 06:21:08 -06:00
localandClaude Opus 5.5 d2a8f03b6d Title memory by address: what streaming brings is taken when the list is submitted, not when it is recorded
Dumps of runs light-8 and light-9: of structures of the same size some are unpacked right and some not, more of them in frames that stream much. The title's queue waits for its streaming, so a packed structure's bytes may come after the dispatch that unpacks it is recorded. Not run in the game yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:20:48 -06:00
localandClaude Opus 5.5 51d3f4da00 A texture is not copied onto itself; the process opts out of the efficiency mode (victory-fork a2537066)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:19:18 -06:00
localandClaude Opus 5.5 28fbbfdcbc Title memory by address: every list brings up every copy, whoever made it
An arena another list made while this one was being recorded was brought up by that list's submission alone: structures unpacked from zeros, then written over by the arena's first upload. In run light-8 half of the 470 structures unpacked in the frame with the most (1381) were wrong, 5-15 % in frames with few. A title buffer the builder stores in sends up only the dwords the title changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:09:43 -06:00
local 5de948cb49 Merge branch 'night/textures' into local/next 2026-11-25 05:57:28 -06:00
local a0ec11232e Merge branch 'night/crash' into local/next 2026-11-25 05:50:28 -06:00
local be085e5385 Merge commit 'f61ecf3b' into night/light
# Conflicts:
#	crates/victory-gpu/src/shadow.rs
2026-11-25 05:50:06 -06:00
localandClaude Opus 5.5 c51ca571ee Title memory by address: the dump names what was built and unpacked; a small buffer's results once a list
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:48:04 -06:00
localandClaude Opus 5.5 19be44dd6f Merge local/next (f61ecf3b) into night/cpu
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:44:51 -06:00
localandClaude Opus 5.5 2eb7d0c079 Raw twins of views off dwords are moved there too, not null
4.6 twins a frame of run crash-3 were null because they begin off a dword (16
bit values at an odd one); the typed view they stand for begins there as well.
Measured (raw_loads_past_views): a raw view moved on by 8 bytes gives the
bytes from there and ends where it should, uniform and per lane.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:44:04 -06:00
localandClaude Opus 5.5 4dd571044d Merge local/next into night/textures
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:43:37 -06:00
localandClaude Opus 5.5 59bccacaf9 The first copy into a texture the title fills goes over zeros
VICTORY_COPY_OVER_TITLE=title: over what title memory holds; =0: over whatever the block of the pool held.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:43:37 -06:00
localandClaude Opus 5.5 b8b30d1cf9 Submissions are prepared and sent by a thread of ours (VICTORY_ASYNC_SUBMIT=1, off)
The idea is fxceless/victory-fork's, commit f85101b6. Here one line holds
what all queues were given, presents too, in the order of the calls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:38:51 -06:00
localandClaude Opus 5.5 2132366127 AMD's wait instructions are replaced in place at their first fault (VICTORY_PATCH_WAITS=0: emulated each time)
monitorx and mwaitx raised an illegal instruction exception at every pass of
the title's wait loops. Diagnostics builds log the faulting console
instructions a second by kind and place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:38:51 -06:00
local f61ecf3b7f Merge branch 'night/card' into local/next 2026-11-25 05:38:11 -06:00
localandClaude Opus 5.5 8d6b1a6c76 Batched clamp: an unfilled mesh record is all zeros, as the clamp of one leaves it
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:38:11 -06:00
localandClaude Opus 5.5 2c982ee5a5 Landing goes beside the guards while mappings change; rectangles read without that lock
Pieces went through the title's address, guards opened, whenever the runtime was mapping pages, which is most of the time since they
are mapped in groups (28 of 1,620 pieces a frame beside the guards in run textures-4, 640 before): 5,000 blocks opened and 7,000
guarded a frame. VICTORY_LAND_ANYTIME=0: as before. The vertices of rectangle lists are read through the kernel at submission, not
under the lock the mapping holds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:32:52 -06:00
localandClaude Opus 5.5 e1561288e7 Title memory by address: packed structures that are gone give their pages back; ranges only for views written
4 MiB for every constant that looked like an address took a third of the pages (run light-5). Which pages came for what is in the ten-second line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:29:50 -06:00
localandClaude Opus 5.5 2dfba4dbd8 Texture uploads wait for no mapping, ask no guards and hash cheaply; the sweep looks at a part; bakes pass once for what is new
A bake's uploads waited for the lock the runtime holds while it remaps, and a staging buffer a draw kept waited at every later
refresh (29 to 239 ms a frame, all threads, run n04): gone, a read through the kernel gets every page. A staging buffer made for
one upload asks neither the write watch nor the guards (VICTORY_TEXTURE_ONCE=0: as before). blake3 makes way for a 128-bit digest
(0.035 against 0.2 ms a megabyte). While textures are kept for minutes the sweep looks at 8,192 a time (VICTORY_TEXTURE_SWEEP=whole).
The pass before a bake is made again only for something new.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:14:38 -06:00
localandClaude Opus 5.5 c95cf7ed37 Merge local/next into night/cpu
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:09:04 -06:00
local 917e1a7103 Merge branch 'night/crash' into local/next 2026-11-25 05:00:34 -06:00
localandClaude Opus 5.5 a9c2e9911d Draw records of 2^23 vertices or more and unfilled mesh records run empty
After victory-fork f85101b6, whose window checker found 90 records of 2^24 vertices in one list; ours
also run mesh records over 65,535 groups (all ones) empty instead of as 65,535 groups.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:00:34 -06:00
localandClaude Opus 5.5 1420b07a64 Every buffer read as raw bytes through the heap is read at its raw twin
Runs n03 and n04 lost the device in the main pass. The pixel program
3711fdad456538a1, bound in both stopped lists, reads entry 35 of its big table
as raw bytes per lane, and that slot is a structured view of 8 byte elements
that begins at 8 mod 16 (capture play-1125-0127, all 766 draws): no raw view
begins there, so it stayed structured, and a raw load through it has no end on
AMD. So not only picked buffers: tables' buffers too, in title slots and in
the dynamic slots, which have twins now as well (a constant buffer of a fresh
table has a raw one of its bytes).

Measured with it: constant buffer loads, uniform and per lane, end with a
constant buffer's view. Loads by title address end with the raw view of the
copy, or read the null view for a page without one. VICTORY_RAW_VIEWS=0: as
before. Every shader is translated again (5 min).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 05:00:17 -06:00
localandClaude Opus 5.5 96bfd0ebec Stores by address are bounded: title buffers take the builder's only where it was given them to write
A directory entry says whether stores by address reach its page (translator and host). Faults take at most 128 pages a frame and 8,192 in all; every slot of the copies' run holds a null view until its copy is there; a page is looked at once a frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 04:53:33 -06:00
localandClaude Opus 5.5 73fcfa8735 Merge branch 'local/next' into night/card
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 04:47:24 -06:00
localandClaude Opus 5.5 2ded49e8da Card memory the CPU maps: scratch switch gone, what the others measured; a test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 04:47:23 -06:00
localandClaude Opus 5.5 2c79c5b7fe Merge local/next (b69eab84) into night/cpu
xmem.rs is local/next's: its side-by-side mapping (VICTORY_MAP...) takes the place of 4180818's runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 04:45:58 -06:00
localandClaude Opus 5.5 41808180e6 The title's page mappings are mapped in runs, and not again where they are (VICTORY_MAP_RUNS=0: page by page)
13 % of the title's main thread while walking (profile cpu-1: two kernel calls for each 64 KiB page).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 04:45:39 -06:00
localandClaude Opus 5.5 f6db4793ff The heaps' records are also looked at between submissions (VICTORY_HEAP_SYNC_EARLY=0: not)
Every 4 ms while submissions come, on the thread for it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 04:45:38 -06:00
localandClaude Opus 5.5 dc2a3ad49e Copies that shaders write are brought up to date together ahead of a submission's steps (VICTORY_REFRESH_AHEAD=0: one by one)
580 a frame, 3.4 to 6.5 ms of the submitting thread.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 04:45:38 -06:00
localandClaude Opus 5.5 3ead56e175 Refreshes copy and send the 4 KiB parts of a page that were written (VICTORY_PAGE_PARTS=0: the 64 KiB page); the early asking is off
Where the kernel or a landing names them; what is checked stays a page. VICTORY_ASK_EARLY=<ms> turns the early asking on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 04:45:37 -06:00
local b69eab8489 Merge branch 'night/stream' into local/next 2026-11-25 04:44:19 -06:00
local ea375caa52 Merge branch 'local/next' into night/light
# Conflicts:
#	crates/victory-shader/src/emit/mod.rs
2026-11-25 04:43:44 -06:00
localandClaude Opus 5.5 565f4a5603 Pages are mapped side by side: eight threads stand in the host's queue instead of one
Mapping and unmapping a view wait for what every protection change of a
view takes too (about 100,000 a second, the guards'): 0.2-4 ms a page, all
on the one thread the title loads with. Scatter maps and the GPU's
page-mapping copies go in groups of up to 64 pages, noted before and after
on the caller's thread, the system calls on up to eight
(VICTORY_MAP_THREADS=1: one after the other, as before).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 04:31:31 -06:00
localandClaude Opus 5.5 0d065d3521 The title's idle and lowest threads run below normal: loading no longer waits for idle processors
VICTORY_TITLE_PRIORITIES=0: as the title sets them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 04:31:31 -06:00
local 78389b5552 Merge branch 'night/crash' into local/next 2026-11-25 04:27:45 -06:00