News for hackers. Stuff that matters.
Re:Layer Trees vs. Flat Drawing: Graphics Performance Across... by ryanpetrich on Friday May 24, 2013 @07:45PM (#5765818)
Yes, one should always set shouldRasterize on CAGradientLayers (or at least those that aren't in a parent that has shouldRasterize)
Re:Layer Trees vs. Flat Drawing: Graphics Performance Across... by Zev on Friday May 24, 2013 @09:13PM (#5766014)
Saying "Always rasterize" isn't necessarily the solution, either. Its actually pretty bad advice to follow all the time ;)

I suspect (but can't confirm without the source code to the demo) that shouldRasterize would actually hurt performance in one of the two cases in the article. Specifically, I imagine that it would make the score for adding and removing views from screen even worse than it already is.

Yes, it renders into a bitmap, and reduces CPU usage, once you've paid the upfront rendering cost. But, it doesn't rasterize opacity, and, will use up a ton of memory (because it doesn't result in stretchable images).