Files
hyperframes/packages/native-renderer
Miguel Ángel a29b1f5fb9 perf(native-renderer): add skia paint benchmark at 1080p with 20 elements
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.
2026-04-25 15:07:31 -04:00
..