The first room renders right: byte-copied descriptor records are mirrored, views off their copy's elements get their own bytes, card room for the first world frame, levels on demand run on the card

- Descriptor records the title copies into its heap as bytes are mirrored
  before each submission (pull request #305 by Flyander, after upstream
  VIctory 86a5ed6), with a per-slot fingerprint so only records that
  changed are mirrored, the page read through the kernel, a switch
  (VICTORY_HEAP_SYNC=0) and a counter: about 40,000 records a frame on the
  test machine.
- A buffer view off its copy's elements gets a copy of its own bytes
  (after upstream 86a5ed6; VICTORY_VIEW_OWN_COPY=0: refused as before).
- Room on the card for the world's first-frame bursts: buffer copies
  (VICTORY_CARD_ROOM_FOR_BUFFERS, now on) and render targets
  (VICTORY_CARD_ROOM_FOR_TARGETS_MB, 3,072); a copy turned down gives its
  room up and is logged; the texture pass asks again every 32 MiB. 98
  buffer copies made (945 MB) where earlier runs made 1; 25 MB compared
  on the processor a frame where it was 550 to 710.
- Levels on demand: the fixes of pull request #747 by AscilCH. First run
  on a card (RTX 4070, VICTORY_LEVELS_ON_DEMAND=1): no device loss, 3.1 GB
  not allocated for levels the title does not hold. Still off by default.
- The guarded blocks under storage writes into physical pages are opened
  by default (VICTORY_PAGE_WRITES=0: counted only).
- Shaders: a program is translated with first-half interpolation pairs
  only if it was refused for one (with it on for every program 8,551
  working pixel programs came out changed); parked lane-mask pairs,
  f64 conversions and sums, lane permutations: 14 more programs translate.
- Counted, not fixed: an indirect compute pass asks for about 77,500
  groups in x and is cut to 65,535.

One five-minute game run of these changes on the test machine: no device
loss, no failed request. This merged tree was built; its test suites
were not run.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
fxcelessandClaude Fable 5.2 committed 2026-11-25 01:46:49 -05:00
1 parent 847a0af35e
commit 6afd80f252
13 files changed
+1188 -58

No files matched your search

+27
View File
@@ -46,6 +46,33 @@ Tested on one machine: Windows 11, Intel i7-14700KF, NVIDIA RTX 4070 12 GB,
### Newest (2026-11-25, later the same day)
**Update, the same night: the first room now renders right on the test
machine** (walls, textures, people, lamps), at 190 to 450 ms a frame (2 to 5
frames a second): the picture work has caught up, the frame rate has not.
What did it, on top of the list below:
- Descriptor records the title copies into its heap as plain bytes are
mirrored before every submission (pull request #305 by Flyander, after
upstream VIctory 86a5ed6). Measured here: about 40,000 records a frame
that no call had announced; their host slots were empty or stale.
- A buffer view that does not start on an element of its buffer's host
copy gets a copy of its own bytes instead of being refused (after
upstream 86a5ed6): 3 to 6 such views a frame.
- Room on the card is kept for the render targets and buffer copies a
world makes in its first frame: 98 buffer copies are made (945 MB) where
the runs before made 1, and the processor no longer compares 550 to
710 MB a frame looking for shader writes (25 MB now).
- Levels on demand ran on the card for the first time
(`VICTORY_LEVELS_ON_DEMAND=1`, still off by default; with the fixes of
pull request #747 by AscilCH): 3.1 GB of the card not allocated for
texture levels the title does not hold, no device loss.
- Guarded blocks under storage writes are opened by default; 14 more
shader programs translate; a program is translated with first-half
interpolation pairs only if it was refused for one (with that on for
every program, 8,551 working pixel programs came out changed).
- Known and counted, not fixed yet: an indirect compute pass asks for
about 77,500 thread groups in x where one dispatch runs 65,535 (the
rest is cut off).
Memory sync between the title's memory and the copies on the card:
- **A write through one view of a physical page is seen by the copies taken
through its other views** (`VICTORY_VIEW_GUARD=0` turns it off). The title