What's the most performant way to render paths in Skia (gpu), right now Skia is 84% of my frame time on Windows, and even more in webgl.
Trying to narrow it down in Vtune, it seems like a lot of time is spent inside of triangulation related functions.
Right now I'm drawing everything "immediate mode" by calling stuff like paint.setColor() and path.quadTo() a whole lot, about 250 drawPath() calls per frame. But everything I draw with Skia is preloaded from an swf and isn't dynamic, outside matrix transforms. Is there a way to cache triangulation and paths operation in some kind of "SkShape" class?
I see SkPicture, but that's just a command recorder right? So that won't help. Is it viable to create thousands of SkCanvas's and draw 250 of them per frame onto the "main canvas"?