Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Silky Smooth (Part 1)

Silky Smooth (Part 1)

In this presentation I outline some common causes of poor scroll performance in iOS applications and some useful tips on measuring and comparing performance.

Sean Woodhouse

February 08, 2013
Tweet

More Decks by Sean Woodhouse

Other Decks in Technology

Transcript

  1. var target = UIATarget.localTarget(); target.delay(10); target.flickFromTo({x:160, y:460},{x:160, y:160}); target.delay(4); target.flickFromTo({x:160,

    y:460},{x:160, y:160}); target.delay(4); target.flickFromTo({x:160, y:160},{x:160, y:460}); target.delay(4); target.flickFromTo({x:160, y:460},{x:160, y:160}); target.delay(4); target.flickFromTo({x:160, y:160},{x:160, y:460}); target.delay(4); target.flickFromTo({x:160, y:460},{x:160, y:160}); target.delay(4); target.flickFromTo({x:160, y:160},{x:160, y:460}); target.delay(4); target.flickFromTo({x:160, y:460},{x:160, y:160}); target.delay(4);
  2. 2% 78% 20% iPhone 4 iPhone 4s & 5 iPhone

    3 & 3GS Choose a minimum hardware spec to optimise for based on your userbase:
  3. 2011 •121 “Understanding UIKit Rendering” •129 “Practical Drawing for iOS

    Developers” 2012 •240 “Polishing Your Interface Rotations” WWDC videos
  4. References Designing for iOS: Graphics & Performance http://goo.gl/xDFtF Tips for

    improving performance of your iOS application http://goo.gl/X5q4F Customizing UITableViewCells: a better way. http://goo.gl/FNymk
  5. References Mac QuartzGL (2D drawing on the graphics card) performance

    http://goo.gl/ks4Mb iOS vs. Android ICS: Hardware Accelerated Graphics Pipelines http://goo.gl/4zMb9 View Programming Guide for iOS: View and Window Architecture http://goo.gl/zJifp
  6. Tools ImageOptim http://imageoptim.com/ ImageOptim optimizes images — so they take

    up less disk space and load faster — by finding best compression parameters and by removing unnecessary comments and color profiles. It handles PNG, JPEG and GIF animations.