Files
metal2vulkan/crates
Anees Iqbal ba0641e4fe Keep a draw rebound's slot rebinds lists with its bind state, past its settle and encoder
7226 on the M3 read 2b2d3bf8d4 at 19.83 allocations a draw in debug and 8.00 in
release, against 19.21 and 7.38 before cut 4 (0f28b4b79e): the same +0.62 in
both, about 3.7 a pass of the frame's six draws. The lists lived in SettledHere,
which goes as its encoder ends (LiveBind::end_encoder forgets the settles), so
each pass's first draw rebound made them again. They now live in LiveBind beside
the settle (and in each set-aside state, swapped with it in select), so the
spare state the next encoder starts from carries their room; SettledHere keeps
only whether its plan's rebinds were made in them. took_place_of goes.

Verified: cargo fmt only locally; build, clippy and allocation numbers are potluck
jobs.

(cherry picked from commit 5e02b2812036f9af2fee8a8cd99603cabc1d06b1)
2026-11-07 23:25:48 -08:00
..