<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>137599</bug_id>
          
          <creation_ts>2014-10-10 02:00:55 -0700</creation_ts>
          <short_desc>requestanimationframe + hardware acceleration gives jumpy animations</short_desc>
          <delta_ts>2017-01-18 23:39:19 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>525.x (Safari 3.2)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://jsfiddle.net/ux3rqce0/5/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Koen Bok">koen+bugzilla</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1040854</commentid>
    <comment_count>0</comment_count>
    <who name="Koen Bok">koen+bugzilla</who>
    <bug_when>2014-10-10 02:00:55 -0700</bug_when>
    <thetext>When you combine requestanimationframe with hardware acceleration (translate3d), animations get all jumpy.


Some other observations:
- When you trigger a paint every frame (somewhere on the page) things get smooth again
- When you use 2d transforms it&apos;s a little better
- Something like requestanimationframe(function() {setTimeout(draw, 0)}) seems to work the best for now

Example:
http://jsfiddle.net/ux3rqce0/5/

I&apos;m using the latest Yosemite GM Safari Version 8.0 (10600.1.25) and I think iOS8 has the same problem although it&apos;s harder to observe on retina.

On 10.9, everything seems to be OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1040919</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-10-10 08:46:28 -0700</bug_when>
    <thetext>&lt;rdar://problem/18610523&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>