Hacker News new | ask | show | jobs
by monkey_slap 4768 days ago
Ya setting shouldRasterize = YES would be bassackwards for animating CAShapeLayer. I actually found animating the path attribute incredibly easy and performant with CAKeyframeAnimations.

Another note with -drawRect and animations, I messed around with CADisplayLink and -drawRect to make animations. Beware of doing this, it was a performance hog. It was a simple animation in a large rect, and by the time I had optimized the drawing area, I could have finished the entire project.

I wonder, would CAShapeLayer become more of a resource hog with more points in the path (or more complex arcs), or does it happen with the overall size of the path?