Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Choppy Animation and Scrolling Performance on "New iPad" (Retina iPad 3)

I've been working on an iPad app that has gone through fairly extensive testing on the iPad 2. I recently obtained a "New iPad" (iPad 3), and the app feels significantly slower. Animations / scolling behaviors that were silky smooth in the iPad 2 now feel extremely stuttery on the new iPad.

I do a lot of the standard UI performance tips: using shadowPaths, drawing UITableViewCells using CoreGraphics, rasterizing views that don't change often / don't need to animate.

Are there any pitfalls I should watch be watching out for in transitioning my app to the iPad 3?

Update

I swore that I tried this before but removing rounded corners from my UIViews views ended up speeding the app significantly. clipToBounds also seems to be a significant performance hit (although strangely... setting a view's layer's maskToBounds seems to be okay, which makes no sense to me). Some combination of this and other tweaks seems to have resolved the issue.

Once I do a second visual pass over the app, I'll figure out a way to reimplement rounded corners in a more performant way.

like image 650
David Li Avatar asked Mar 30 '12 18:03

David Li


1 Answers

4x the pixels, only 2x the fill rate. The maths says it all.

like image 81
Mindbrix Avatar answered Oct 13 '22 01:10

Mindbrix