|
|
|
|
|
by ryanpetrich
5613 days ago
|
|
"The iPhone and iPad have to work a lot harder to display JPEGs than they do to display the equivalent PNGs" That is a myth. It is the pixel format of the CGImage that matters, not the compression format of the source file. 32bpp premultiplied CGImages are the only format that the GPU will render natively as the contents of a CALayer. Since all JPEGs decode to 24bpp and most PNGs are saved as 32bpp, it's easy to see why this would be confused. Simply copying to a 32bpp CGImage is enough to make drawing quick again. Coincidentally, this blog post also scrolls poorly on the iPad. |
|