News for hackers. Stuff that matters.
Re:Layer Trees vs. Flat Drawing: Graphics Performance Across... by monkey_slap on Friday May 24, 2013 @02:22PM (#5764491)
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?

There are no comments on this comment yet.