$30 off During Our Annual Pro Sale. View Details »

I Can Animate and So Can You (Short)

Daniel Lew
January 07, 2014

I Can Animate and So Can You (Short)

A shorter version of a talk I gave about Android animations.

Keynote version: http://goo.gl/FUm0Gc

Daniel Lew

January 07, 2014
Tweet

More Decks by Daniel Lew

Other Decks in Programming

Transcript

  1. I Can Animate and So
    Can You
    Daniel Lew, Jan. 7 2014

    View Slide

  2. Typical Animation
    Demo

    View Slide

  3. What Can Be Done

    View Slide

  4. Revelations

    View Slide

  5. Revelation #1
    Every animation is unique

    View Slide

  6. Revelation #2
    Animation code is not pretty

    View Slide

  7. Revelation #3
    Animations first
    Animate

    View Slide

  8. Revelation #4
    Animate for Ice Cream Sandwich+

    View Slide

  9. Building Animations
    • Figure out what
    attributes to animate

    • Design View hierarchy

    • Measure attribute start/
    end values

    • Setup and run animators

    View Slide

  10. Performance
    • Choppy animation == painful

    • Performance cannot be an afterthought

    View Slide

  11. Profile GPU Rendering
    • Blue - Draw

    • Red - Process

    • Orange - Execute

    • Green line - your goal

    View Slide

  12. Show GPU Overdraw
    • Shows overdrawn pixels

    • Best to worst: nothing,
    blue, green, red, dark red

    • Some overdraw
    necessary, but reduce if
    possible

    View Slide

  13. Profilers
    • TraceView

    • Systrace

    • OpenGL Traces

    View Slide

  14. Profile Warning
    • Can be inaccurate

    • One profiling tool at a time, please

    • Profile multiple devices

    View Slide

  15. Resources
    • Longer Talk: http://goo.gl/ICTCAC

    • Android Docs: goo.gl/4aZIzM

    • DevBytes: goo.gl/QeTM9B

    • Chet Haase: graphics-geek.blogspot.com/

    • Romain Guy: curious-creature.org

    • Google IO Sessions

    View Slide

  16. Thank You!
    • Movies App Source: http://goo.gl/WiRTlQ

    • Blog: http://daniel-codes.blogspot.com/

    • @danlew42, +DanielLew

    View Slide