<?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>109395</bug_id>
          
          <creation_ts>2013-02-10 19:48:19 -0800</creation_ts>
          <short_desc>Poor animated gif performance</short_desc>
          <delta_ts>2017-08-24 16:21:59 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Images</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>161566</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>112327</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Rogers">pdr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>allan.jensen</cc>
    
    <cc>ap</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>clopez</cc>
    
    <cc>eric</cc>
    
    <cc>hclam</cc>
    
    <cc>magomez</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>nduca</cc>
    
    <cc>noel.gordon</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>schenney</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>tomhudson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>829408</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2013-02-10 19:48:19 -0800</bug_when>
    <thetext>We currently block while decoding images. This isn&apos;t a problem for small images, but large animated gifs (like those found on tumblr) destroy scroll performance.

Repro case:
1) visit http://philbit.com/animatedgiftest.html
2) resize the browser window so you can scroll
3) scroll (or, try to)

For serious sadness, try this on a mobile device.

A profile shows most our time is being spent in GIFImageDecoder and GIFImageReader. We share Gecko&apos;s gif decoder and Firefox is able to scroll fairly smoothly on the repro page above, so I think there may be low hanging fruit here outside the decoding infrastructure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>829420</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2013-02-10 20:28:36 -0800</bug_when>
    <thetext>I learned on IRC that some of these issues are lessened with impl-side painting.

For the tumblr usecase, off-thread decoding may still be worth looking at in parallel because it would prevent large images from blocking the composite.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>829423</commentid>
    <comment_count>2</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2013-02-10 20:42:28 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; We currently block while decoding images. This isn&apos;t a problem for small images, but large animated gifs (like those found on tumblr) destroy scroll performance.

1) about:flags

2) Enable : Threaded compositing Mac, Windows, Linux
Uses a secondary thread to perform web page compositing. This allows smooth scrolling, even when the main thread is unresponsive.

3) load http://gcfly.org/viewthread.php?tid=5721

can you scroll?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>829454</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Hudson">tomhudson</who>
    <bug_when>2013-02-10 23:36:16 -0800</bug_when>
    <thetext>I don&apos;t know if it&apos;s the case here yet, but historically we&apos;ve frequently had this kind of behavior when we ran out of image cache; it&apos;s something to check for for.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873771</commentid>
    <comment_count>4</comment_count>
    <who name="Allan Sandfeld Jensen">allan.jensen</who>
    <bug_when>2013-04-11 05:53:24 -0700</bug_when>
    <thetext>We start gif animations when they move into the viewport but we never stop them again, which leads to more and more git animations running. This is fixed in bug 112327</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342231</commentid>
    <comment_count>5</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2017-08-24 16:21:59 -0700</bug_when>
    <thetext>This is the same as https://bugs.webkit.org/show_bug.cgi?id=161566.

*** This bug has been marked as a duplicate of bug 161566 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>