Measure first

  1. Profile the GPU thread in an Ounce game's race and in a Switch game's street on the current branch, with cycles:u and frame pointer call graphs. Look at buf_get and vk_buf_*, cb_get, tex_resolve, stage_set, vk_shader_hash and sm86_hash, and vk_mirror_harvest.
  2. Count the hits and misses of the memos of tex_resolve and cb_get, and the descriptor sets that stage_set builds against the sets it finds in its cache.
  3. Compare frame rates at the same internal resolution as other projects (the resolution setting).

The order below is a first guess. The profile sets the real order.


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