Skip to content

chore(benchmark): paths at 900 to 10,000, shapes as nodes and as an atlas on both engines - #30

Merged
riteshshukla04 merged 2 commits into
bench/skia-3.10-per-shape-animationfrom
bench/m14-paths-shapes-breakdown
Nov 11, 2026
Merged

riteshshukla04 merged 2 commits into
bench/skia-3.10-per-shape-animationfrom
bench/m14-paths-shapes-breakdown

Conversation

@riteshshukla04

@riteshshukla04 riteshshukla04 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Stacked on #28 (William's scenes, runner and S25 Edge results are kept as they are).

  • The default matrix runs paths900, paths2500, paths5000 and paths (10,000), so a table shows where each engine falls off.
  • shapes still pits each engine's fastest static path (tgfx nodes, skia ShapeBlob). Two new rows hold the technique equal:
    • shapes-nodes: 20,000 <Rect>/<Circle> nodes on both.
    • shapes-atlas: one atlas on both. tgfx rasterizes a circle and a rect once and draws 20,000 tinted quads in one <Vertices>; skia's ShapeBlob does the same internally.
  • Results on a Samsung SM-E146B (Exynos 1330, Mali-G68, 90 Hz), two runs per combo: apps/benchmark/bench/results-2026-11-11-samsung-90hz-skia310.md.
scene tgfx surface skia surface tgfx texture skia texture
shapes (tgfx nodes, skia ShapeBlob) 61.3 89.4 56.4 89.1
shapes-nodes 62.3 26.1 54.6 25.4
shapes-atlas 90.0 89.4 88.1 89.1
paths, 900 90.3 27.2 88.4 26.6
paths, 2,500 82.6 27.1 72.5 26.3
paths, 5,000 43.8 17.8 41.4 17.6
paths, 10,000 8.8 10.3 4.8 10.1
text, 6,000 73.0 32.4 65.4 30.3

On this phone skia is GPU-bound on paths from 900 on. tgfx leads up to 5,000 paths, then falls below skia at 10,000: the path geometry outgrows the canvas's GPU cache and is rebuilt every frame. #31 fixes that.

…reakdown

Two runs per combo on both view kinds. skia is GPU-bound on paths from 900
on; tgfx leads up to 5,000 paths and falls below skia at 10,000. With the
technique held equal, tgfx draws 2.2-2.4x skia on 20k nodes and both sit at
the ceiling on one atlas.
@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-native-tgfx Ready Ready Preview Nov 10, 2026 9:27pm UTC

Request Review

@riteshshukla04
riteshshukla04 added this pull request to stack #33 November 10, 2026 21:47
@riteshshukla04
riteshshukla04 merged commit 0d18191 into main Nov 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant