Files
VIctory/crates
T
MarvisandClaude Opus 5.5 42ea09f769 GPU: what a view needs is made before its slot's lock is taken
What was wrong: making a heap slot's view held the heap's slot lock
throughout, including making the texture it views (on first use) or the
host copy of the buffer memory it views: title threads binding views for
draws and writing views waited on that lock (119 of 307 samples of title
threads in our code, run evict5).

What changed: a slot whose view is unchanged is answered under the lock
as before. One to make again releases the lock, makes what the view needs
without it, takes it again and, if the slot still holds the record it
prepared for, makes the view (cheap now); if the title wrote another
record there meanwhile, that record is made instead.

Evidence: tests `descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_wait`
(a thread binds a view while another slot's texture is made, bounded
wait) and `a_slot_rewritten_while_its_view_is_prepared_views_the_new_record`
(the title writes another record into the slot during the prepare; the
slot views the new record's texture); the crate's tests three times with
8 threads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42ea09f769 · 2026-11-25 10:25:12 +01:00
History
..