Back to Webfundamentals

60fps Layout and Rendering {: .page-title }

src/content/en/shows/cds/2013/60fps-layout-and-rendering.md

0.31.4 KB
Original Source

project_path: /web/_project.yaml book_path: /web/shows/_book.yaml description: Hitting 60fps in your projects directly correlates to user engagement and is crucial to its success. In this talk Nat and Tom talked about Chrome’s rendering pipeline, some common causes of dropped frames and how to avoid them.

{# wf_updated_on: 2015-02-23 #} {# wf_published_on: 2015-02-23 #} {# wf_youtube_id: YyQYhhy1dZI #}

60fps Layout and Rendering {: .page-title }

<div class="video-wrapper"> <iframe class="devsite-embedded-youtube-video" data-video-id="YyQYhhy1dZI" data-autohide="1" data-showinfo="0" frameborder="0" allowfullscreen> </iframe> </div>

Hitting 60fps in your projects directly correlates to user engagement and is crucial to its success. In this talk Nat and Tom talked about Chrome’s rendering pipeline, some common causes of dropped frames and how to avoid them.

Slides

  • A frame is 16ms long. It contains JavaScript, style calculations, painting and compositing.
  • Painting is extremely expensive. A Paint Storm is where you unnecessarily repeat expensive paint work.
  • Layers are used to cache painted elements.
  • Input handlers (touch and mousewheel listeners) can kill responsiveness; avoid them if you can. Where you can’t keep them to a minimum.