Iain Stanford
Iain Stanford

Reputation: 707

What's the performance difference between an SKPath draw and individual line draws?

Technically I'm using SkiaSharp but this is a general Skia query.

Let's say I have hundreds of points and I'm drawing straight lines or arcs between them.

I could either iterate over each one doing individual draw calls for basic line or arc draws.

Or I could iterate over each one building an SKPath and then drawing that in one draw function call.

Is there any performance difference between the two? Is one more favourable over the other?

Additional - I'll be reusing the SkPath with a reset call before each frame, and this will be firing off every render loop.

Upvotes: 0

Views: 157

Answers (0)

Related Questions