Allocation and deallocation of GPU memory for VGPaths is expensive and should be avoided. For primitives whose segment data do not change, we can use vgModifyPathCoords to change the path.
Created attachment 70414 [details]
can you wait for bug 48516 please? It's maybe possible to optimize it more after the patch there.
Comment on attachment 70414 [details]
Bug 48516 has been solved. Pierre, can you update this patch?
(In reply to comment #3)
> (From update of attachment 70414 [details])
> Bug 48516 has been solved. Pierre, can you update this patch?
I believe Jakob had said that their latest OpenVG GraphicsContext code uses path caching / transforms when possible. He said they would be upstreaming that new code which would make this patch unnecessary. I had thought they would have updated the OpenVG code by now. They seemed to have abandoned their upstreaming efforts.