mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 13:27:13 +00:00
Criterion benchmark with a realistic 1080p scene: 20 overlapping card containers with text children, rounded corners, partial opacity, and overflow clipping. Two bench functions: - paint_1080p_20_elements: clear + recursive paint - paint_and_encode_jpeg_1080p: clear + paint + JPEG encode Baseline numbers (Apple Silicon, raster CPU backend): paint only: ~177 ms paint + JPEG encode: ~184 ms The high paint time is dominated by FontMgr::new() being called per text element per frame (20x per iteration). Font/typeface caching in the paint path is the obvious next optimization target.