ScarletNX / ScarletNX documentation / Parallel draw batches (design, not built) · ← previous · next →
Risks
- The size:
render.c is about 8,300 lines of code written for one thread, with its state in globals, and the
callees in surface.c, texture.c, buffer.c and pipeline.c rely on vk_lock. Step 3 alone touches most of it.
- Locks on the hit path, or cache lines shared by the workers, can take what the threads give, as the per-draw
pipeline showed. Each shared cache needs a measurement under two workers.
- A dependency that the check misses gives a wrong frame, not a crash: a stale texture over a target, a missing
barrier. The check mode must compare each batch with a serial setup.
- A small CPU: the workers compete with the game's threads. The setting must choose by measurement, as
gpu_split=2
does.
← previous · next →