<?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>202269</bug_id>
          
          <creation_ts>2019-09-26 08:22:15 -0700</creation_ts>
          <short_desc>[iOS 13] requestAnimationFrame runs at 90Hz in low power mode</short_desc>
          <delta_ts>2020-08-22 16:00:57 -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>Canvas</component>
          <version>Other</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>204713</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=204713</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=215745</see_also>
          <bug_file_loc></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="Ashley Gullen">ashley</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>dino</cc>
    
    <cc>jonlee</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1574455</commentid>
    <comment_count>0</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2019-09-26 08:22:15 -0700</bug_when>
    <thetext>On iOS 13 / 13.1, requestAnimationFrame runs at 90 Hz when low power mode is enabled.

Demo URL: https://www.scirra.com/labs/bugs/safari13raf/index.html

Steps to reproduce:
1. Ensure low power mode is disabled
2. Visit demo URL in Safari and observe FPS reading is 60 (tested on an iPhone 7 Plus, which has a display rate of 60 Hz)
3. Go to settings and enable low power mode
4. Switch back to Safari

Expected result:
FPS reading either the same or dropping to 30 (as I believe previous releases did)

Observed result:
FPS reading is now about 90 FPS, which is higher than the display rate of the device.

Originally discovered in this tweet: https://twitter.com/chribbe1/status/1176767527797579776
The issue appears to affect several web frameworks, indicating a general problem with requestAnimationFrame. I suspect a new 30 Hz timer is being set, but the old 60 Hz timer is not cancelled, resulting in adding together to make a 90 Hz callback frequency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574456</commentid>
    <comment_count>1</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2019-09-26 08:22:52 -0700</bug_when>
    <thetext>This also defeats the purpose of low battery mode, since running rAF at 90 Hz will consume more power than 60 Hz with the setting off!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574466</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-09-26 08:50:55 -0700</bug_when>
    <thetext>&lt;rdar://problem/55745055&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1610839</commentid>
    <comment_count>3</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2020-01-24 13:37:08 -0800</bug_when>
    <thetext>

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

    </bug>

</bugzilla>