<?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>234006</bug_id>
          
          <creation_ts>2021-12-08 07:32:35 -0800</creation_ts>
          <short_desc>ANGLE Metal stencil, depth, multisample performance regression</short_desc>
          <delta_ts>2022-03-01 01:42:17 -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>Safari 15</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 15</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>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>231180</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jekfer Bichon">jekfer.bichon</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>kpiddington</cc>
    
    <cc>sebastien.videcoq</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1821544</commentid>
    <comment_count>0</comment_count>
      <attachid>446362</attachid>
    <who name="Jekfer Bichon">jekfer.bichon</who>
    <bug_when>2021-12-08 07:32:35 -0800</bug_when>
    <thetext>Created attachment 446362
Sample to reproduce

Hello,

We have detected a performance regression on Safari 15 when using &quot;antialias: true&quot; option on the WebGLRendering context. The regression was detected on an iPad Gen 8.

I have attached a sample to reproduce the issue, on portrait mode. On Safari 14 we were getting an average of 58-59 fps on the sample, meanwhile Safari 15 runs around 36 fps. Disabling the experimental option &quot;WebGL via Metal&quot; on Safari 15 puts the performances back at Safari 14 level.
The portrait/landscape mode is not very important to the issue at hand, the quad on the sample was simply positioned in a way to occupy most of the screen on portrait mode.

Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1824351</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-12-15 08:07:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/86523176&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1824404</commentid>
    <comment_count>2</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-12-15 10:00:28 -0800</bug_when>
    <thetext>Thank you for the report.
I can reproduce the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1824410</commentid>
    <comment_count>3</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-12-15 10:05:40 -0800</bug_when>
    <thetext>Note: The test case is also setting up canvas with four times the screen size with antialias: true, stencil:true, depth:true, so the default framebuffer consumes quite much memory (100+gb) and jetsams on some devices.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1842272</commentid>
    <comment_count>4</comment_count>
    <who name="Sébastien VIDECOQ">sebastien.videcoq</who>
    <bug_when>2022-02-16 07:11:19 -0800</bug_when>
    <thetext>Hello, any progress on this ? This is severely impacting performances of our products.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1846953</commentid>
    <comment_count>5</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2022-03-01 01:42:17 -0800</bug_when>
    <thetext>(In reply to Sébastien VIDECOQ from comment #4)
&gt; Hello, any progress on this ? This is severely impacting performances of our
&gt; products.

Thanks for the query.
Currently I cannot reproduce this on iPad Pro 2020, iOS 15.4 seed 4. I&apos;ll try with other devices later.

If you have time, please update to iOS 15.4 seed 4 or later and retry on your end.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>446362</attachid>
            <date>2021-12-08 07:32:35 -0800</date>
            <delta_ts>2021-12-08 07:32:35 -0800</delta_ts>
            <desc>Sample to reproduce</desc>
            <filename>iosCanvasAAReg.html</filename>
            <type>text/html</type>
            <size>2274</size>
            <attacher name="Jekfer Bichon">jekfer.bichon</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCg0KPGhlYWQ+DQogICAgPG1ldGEgY2hhcnNldD0idXRm
LTgiPg0KICAgIDx0aXRsZT5pb3MxNSBncHUgQUEgcmVncmVzc2lvbjwvdGl0bGU+DQogICAgPHNj
cmlwdCB0eXBlPSJtb2R1bGUiPg0KICAgICAgICBpbXBvcnQgKiBhcyBUSFJFRSBmcm9tICdodHRw
czovL2Nkbi5za3lwYWNrLmRldi90aHJlZSc7DQogICAgICAgIGltcG9ydCBTdGF0cyBmcm9tICdo
dHRwczovL2Nkbi5za3lwYWNrLmRldi90aHJlZS9leGFtcGxlcy9qc20vbGlicy9zdGF0cy5tb2R1
bGUnOw0KDQogICAgICAgIC8vIGNyZWF0ZSB0aGUgY2FtZXJhDQogICAgICAgIHZhciBjYW1lcmEg
PSBuZXcgVEhSRUUuUGVyc3BlY3RpdmVDYW1lcmEoNDUsIHdpbmRvdy5pbm5lcldpZHRoIC8gd2lu
ZG93LmlubmVySGVpZ2h0LCAwLjEsIDEwMDApOw0KICAgICAgICBjYW1lcmEucG9zaXRpb24uc2V0
KDAsIDAsIDIwKTsNCiAgICAgICAgY2FtZXJhLmxvb2tBdChuZXcgVEhSRUUuVmVjdG9yMygwLCA1
LCAtMikpOw0KDQogICAgICAgIHZhciByZW5kZXJlciA9IG5ldyBUSFJFRS5XZWJHTFJlbmRlcmVy
KHsNCiAgICAgICAgICAgIGFudGlhbGlhczogdHJ1ZSwNCiAgICAgICAgICAgIGFscGhhOiB0cnVl
LA0KICAgIC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ment>
      

    </bug>

</bugzilla>