No emulator that we know sets up the draws of one frame on more than one thread (a review of Ryujinx, Eden and the yuzu family, Cemu, Dolphin, Citra, RPCS3 and PCSX2):
Ryujinx.Graphics.GAL/Multithreading/ThreadedRenderer.cs, MIT upstream): the GPU thread sets up the draws.
A backend thread makes the Vulkan calls from a ring of fixed-size commands. A resource gets a handle at once and its
object later ("handle first, resource later"). A wake-up goes only at a ring's change from empty.vk_scheduler.cpp, GPL-3.0-or-later and GPL-2.0-or-later): the GPU thread sets up the draws and records
lambdas into command chunks. One worker runs the chunks in order. PrepareDraw locks the buffer and texture caches
against the CPU threads, not for setup on more than one thread. ASTC decodes and pipeline compiles go to workers.So the design below has no prior art. Two ideas apply: deferred commands in order (yuzu's chunks, our record ring), and
generation stamps to check work done out of order (as vk_submit_number() already does in a draw's setup).
Made from docs/dev/parallel-draw-batches.md at 69237645142c. GPL-3.0-or-later.