Where the time goes

A profile of 2026-11-01 (before the GPU mirror and the merge of the Ounce branch) measured about 23 us of GPU thread time for each draw, with about 600 draws in a frame:

GameLargest parts of the GPU thread
A Switch game, open worldstage_set 22%, tex_resolve 11%, buf_get 10%, the publish of linear targets 6%
A Switch game, city streetlibc copies 31%, gmem_read 16%, vk_shader_hash at each dispatch 8%

An Ounce game races at 11 to 13 frames a second on an RTX 2080 at the console's resolution. A static recompiler of that game (MIT) spends about 3.3 us for each draw on its replay thread, and races in 31 to 33 ms a frame at 720p on an integrated Radeon 660M. Its design is close to ours: the SDK replaced by host code, and NVN taken at the API and played back into Vulkan. The difference is in what each draw costs. The items below take its methods where they fit our design, with ideas of our own.


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