mardi 4 août 2015

Drawing large set of circles on canvas, fast way

I'm working on a live wallpaper for Android, this involves drawing a lot of circular shapes with the canvas.drawCircle() method. So there is an algorithm that computes the radius of every circle, its color etc. and for each circle I use drawCircle() to draw it. Problem is, it's painfully slow. Question is, any suggestion on how to improve my code? Maybe doing some kind of bulk drawing in one single step instead of calling drawCircle() many times? OpenGL could help?

Thanks a lot

Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire