2026.08.24performance

Frames per second is a pipeline number, not a model number

Decode, resize and copy often cost more than the forward pass.

fig. 7: performance illustration

A model that runs in six milliseconds does not give you 160 frames per second. On the last three projects the network was responsible for between a quarter and a half of the time per frame.

Video decoding comes first. Software decoding of a 4K stream can saturate several cores on its own. Hardware decoding helps only if the frames stay on the device; copying each one back to system memory gives most of the gain away.

Resizing and colour conversion are next. Doing them on full-resolution frames on the CPU is a common hidden cost. Requesting a scaled output from the decoder, or moving the step to the accelerator, is usually the single largest win.

Then batching. A batch of eight is rarely eight times faster to wait for, and for interactive use the latency of filling the batch matters more than throughput.

Measure each stage separately with timestamps around it, over a few thousand frames, and report percentiles. The average hides the stalls that users actually notice.