<?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>236488</bug_id>
          
          <creation_ts>2022-02-10 23:36:42 -0800</creation_ts>
          <short_desc>Compositing simple GL scene with a large backing store is slower than expected (greggman doodles canvas-backing-resize.html)</short_desc>
          <delta_ts>2022-02-17 23:37:15 -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>WebGL</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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>
          
          <blocked>223434</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1840227</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2022-02-10 23:36:42 -0800</bug_when>
    <thetext>Compositing simple GL scene with a large backing store is slower than expected (greggman doodles canvas-backing-resize.html)

https://github.com/greggman/doodles/blob/master/test/canvas-backing-resize/canvas-backing-resize.html

greggman:

55fps Chrome, 18fps Safari. It&apos;s just drawing a single quad

It&apos;s a MacBook Pro (16-inch, 2019)
MacOS 12.2, safari can be any version.
Also my display prefs are set to scaled , 1 res higher than 1 to 1


Chrome is using ATI (discrete). But, forcing Chrome to use Intel Chrome is 12fps and Safari is 4-5fps.
Also just for fun, Canvas2D doing the same thing is 40fps.
Turning off antialiasing on the WebGL one goes up to 20fps

John Cunningham:
That’s strange, I have a 3440x1440 screen and a 5k one and neither shows low FPS on ANGLE metal in safari
 I am on an M1 device, perhaps it’s intel/amd specific. I’ll boot up one later and try.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1843300</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-17 23:37:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/89131458&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>