Ported one of the samples from TurtleArt over to the Cairo-based test. OMG it is slow. TurtleArt is bitmap-based, so once it's drawn something it's just blitting up the bitmap next time and then continuing to render. The Cairo renderer is doing the whole rendering process every frame. Some of these samples are rendering radial gradients using massive overdraw (draw 720 lines roughly centred on a point with a wide pen).
Could likely optimise the operation by rendering to a backing buffer and only blitting onto the screen (keeping the Cairo context across rendering passes, basically the same as TA is doing).
Pingbacks are closed.