Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CATiledLayer PDF Performance is Poor on iPad 3 Retina Display

I'm using rather straightforward code to display a zoomable PDF in a scrollview, and it has been working beautifully on the iPad 2 and the original iPad. But it's staggeringly slow on the iPad 3. I know I'm pushing more pixels, but the rendering performance is simply unacceptable.

In iOS 5.0 and later, the tileSize property is arbitrarily clamped at 1024, which means tiles appear half that size on the retina display. Has anyone found a way to overcome this limitation?

Otherwise, has anyone found a way to improve the speed of the CATiledLayer on the iPad 3?

like image 886
dkmp Avatar asked Mar 19 '12 23:03

dkmp


1 Answers

Have you tried setting shouldRasterize to YES on the layer?

like image 161
Ashley Mills Avatar answered Oct 18 '22 19:10

Ashley Mills