Two forms

Form A: lookups serial, encoding on workers (the Ryujinx and Eden split)

The renderer thread does each batch's lookups (phase 1): the memos, the surface table, the texture and buffer caches, the pipeline, the staging copies. Workers do phase 2: the hashes, the descriptor writes, the binds and dynamic state, the push constants and the record into a list of their own.

Phase 2 is about the images and sets (86 ns), the binds and record (255 ns) and part of the constants: about 25% of a draw. That is the ceiling of form A, the same share that the per-draw pipeline overlapped. Not recommended as the target. It is the safe first step of form B.

Form B: whole batches on workers

A worker sets up whole draws: the resolve, the lookups and the encoding. The renderer thread forms the batches, keeps their order, and does what a worker must not do. This form can remove the bottleneck. It needs caches that more than one thread can use.


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