Recommendation: a smaller step first

The two-stage pipeline gives about 20% at best, and it needs a copy of each draw's state, Stage 1 outside vk_lock, one owner for the texture memos, four new stamps, and per-thread statistics. A smaller split, with only the fragment key and the texture resolve on a second thread, gains at most about 1 ms and needs most of the same work: not recommended.

The better first step moves the binds, the dynamic state and the push constants (about 15% of a draw, render.c 7710 to 8085) to the recording thread, which is busy about 2.4 ms a present:

Expected gain: about 1.2 to 1.6 ms of the renderer's 10.8 ms a present, about 11% to 15% fps, with low risk. The recording thread goes from about 2.4 to about 4 ms a present, still well under the frame.


Made from docs/dev/parallel-draw-prep.md at 69237645142c. GPL-3.0-or-later.