A race of an Ounce game on the desktop (RX 9070 XT, RADV), 2026-11-25. The race is GPU-bound: the GPU's work spans
about 10.2 ms of a 12.4 ms frame, and the renderer thread is idle about a third of the time. Of that span, about 2.6
ms is the runtime's own copies and moves. The takes (copy_layers) are the largest part, 0.65 ms a frame and about
154 image copies.
A count of each take by its shape, a present:
| A take of | Takes | Bytes |
|---|---|---|
| a target into one layer of an array (shadow cascades, 128x128x5 arrays) | 44 | 121 MB |
| a target into a level past the first (downsample chains, a level a target) | 86 | 2.3 MB |
| a target into level 0 of a texture of several levels | 5 | 6.4 MB |
| a storage image into a level or a layer | 19 | 1.6 MB |
Every take was of the same format and at the same scale. No take was of a whole texture: a texture of one level over
a target already samples the target's own image (tex_from_tic), or a crop of it. A texture of several levels, or of
several layers, never does. It loads from memory, and then takes each target over it, in each frame that draws them.
A Switch game's intro (an engine of another vendor) made no takes. The design must cost such a game nothing.
The gain is bounded: the takes are about 6% of the GPU's frame here. The design also removes the loads from memory that come before the takes, and the target writes that a texture of several levels makes the runtime publish.
Made from docs/dev/one-image.md at 69237645142c. GPL-3.0-or-later.