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 8dd30ab472
commit a26859fc5f
13 files changed
+1188 -58

No files matched your search

+11 -1
View File
@@ -1698,7 +1698,12 @@ impl State {
// makes room again: so the slots are still looked at (the pass
// returned here, and a slot whose texture had been streamed out
// kept its host copy for as long as the card was full).
let room = crate::resource::room();
let mut room = crate::resource::room();
// Bytes uploaded by this pass since the card was last asked
// whether it has room: asked again every 32 MiB (a pass may upload
// 192 MB and more, and one asking a pass let the queue run some
// 400 MB past its line while the world loaded: run 193).
let mut since_asked = 0u64;
if !room {
HEAP_TEXTURES_FULL.fetch_add(1, Ordering::Relaxed);
once!("textures picked by index: the card has no room for more; they wait");
@@ -1962,6 +1967,11 @@ impl State {
};
crate::texture::unstage(resource);
SPENT.fetch_add(bytes, Ordering::Relaxed);
since_asked += bytes;
if room && since_asked >= 32 << 20 {
since_asked = 0;
room = crate::resource::room();
}
HEAP_TEXTURE_BYTES.fetch_add(bytes, Ordering::Relaxed);
HEAP_TEXTURES.fetch_add(1, Ordering::Relaxed);
match memory {