iosiphonecore-graphicsquartz-2d

Quartz2D good way to Draw point or line on touch?


I'm trying to develop an app that requires drawing based on user touch. I'm using Quartz2D and CoreGraphics for drawing, now I'm wondering what's a good way to manage the points that i'm drawing? Currently I'm adding each touchMoved point to an array and setNeedsDisplay them on every move. This lags the system very fast. So Therefore I'm wondering if anyone know a good way to draw smoothly with user touch for a good amount of time? Thanks!


Solution

  • Touch events are fired very frequently. since quartz2d is slow your system will saturate.

    several options

    This are just pointers, there might be a better option for you case ^^