Bug 248460

Summary: Canvas2D has up to 10x performance degradation if Canvas HTML Element has outline
Product: WebKit Reporter: george.pomas
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: dino, jcraig, jens, sabouhallawa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac (Apple Silicon)   
OS: macOS 12   
Attachments:
Description Flags
Reproducible example none

Description george.pomas 2022-11-29 00:15:25 PST
Safari 16.1 and Safari 16.4 (Technology Preview) have performance degradation up to 10 times when outline is present on Canvas element. It is most noticeable on M1 machines, but it is also present on Intel machines, but to a much lesser extent.
Comment 1 george.pomas 2022-11-29 00:16:03 PST
Created attachment 463779 [details]
Reproducible example
Comment 2 george.pomas 2022-11-29 01:17:34 PST
Just noticed, you probably will need to refresh the page a couple of times for bug to reproduce.
Comment 3 Radar WebKit Bug Importer 2022-12-01 15:58:01 PST
<rdar://problem/102880775>