Bug 234006 - ANGLE Metal stencil, depth, multisample performance regression
Summary: ANGLE Metal stencil, depth, multisample performance regression
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad iOS 15
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: anglemetalregr
  Show dependency treegraph
 
Reported: 2021-12-08 07:32 PST by Jekfer Bichon
Modified: 2022-03-01 01:42 PST (History)
6 users (show)

See Also:


Attachments
Sample to reproduce (2.22 KB, text/html)
2021-12-08 07:32 PST, Jekfer Bichon
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jekfer Bichon 2021-12-08 07:32:35 PST
Created attachment 446362 [details]
Sample to reproduce

Hello,

We have detected a performance regression on Safari 15 when using "antialias: true" 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 "WebGL via Metal" 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.
Comment 1 Radar WebKit Bug Importer 2021-12-15 08:07:16 PST
<rdar://problem/86523176>
Comment 2 Kimmo Kinnunen 2021-12-15 10:00:28 PST
Thank you for the report.
I can reproduce the issue.
Comment 3 Kimmo Kinnunen 2021-12-15 10:05:40 PST
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.
Comment 4 Sébastien VIDECOQ 2022-02-16 07:11:19 PST
Hello, any progress on this ? This is severely impacting performances of our products.
Comment 5 Kimmo Kinnunen 2022-03-01 01:42:17 PST
(In reply to Sébastien VIDECOQ from comment #4)
> Hello, any progress on this ? This is severely impacting performances of our
> products.

Thanks for the query.
Currently I cannot reproduce this on iPad Pro 2020, iOS 15.4 seed 4. I'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.