Files
6gbvram---16gb-ram/crates
readmet3xt-labandClaude Opus 5.5 abf1020d25 Texture pass: tells the queue a batch at a time, takes what it knows of a slot with the slots due
The pass over textures picked by index took the queue's lock once or twice
for every slot it took: to ask what is known of the slot (a texture uploaded
whole, waiting for a look again) and to tell what came of it. In 5 s of a
cutscene it took 90,000-250,000 slots, and its "telling the queue" was
143-400 ms, about all of it waiting for the lock (152-355 ms by the pass;
coolfox-20261126-233017 18:02:18-18:02:23).

- What it found of a slot (done, uploaded in part, uploaded whole and looked
  at again, nothing to upload now, held for room) is told 16 slots at a time
  under one take of the lock (`HostHeap::texture_slots_told`), the rest when
  the pass ends, on every way out. A slot's entry is told of a few slots'
  work later, as it would be if the pass's thread were held up for that
  long; what is told of a write the queue no longer holds is dropped as
  before (`TextureQueue::same`).
- What the queue knows of a slot waiting for a look again is read while the
  slots due are taken, in the same take of the lock
  (`HostHeap::texture_slots_due_known`), and used if the queue's marks
  (b5b7806) say it still holds the write handed out; else it is asked as
  before.

Behaviour-neutral: the queue ends as it would with each slot told at its
turn (test), only some microseconds later. On by default;
`VICTORY_QUEUE_BATCH=0` tells and asks each slot at its turn, as before.
The lock line (18ff932) counts the lock taken by the pass apart.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 01:03:43 +05:30
..