Bug 263848

Summary: SVG animation is slow, as GPU is not used for filters
Product: WebKit Reporter: Scott Fryxell <sfryxell>
Component: AnimationsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, dino, graouts, heycam, karlcow, sabouhallawa, simon.fraser, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Mac (Intel)   
OS: macOS 14   
Attachments:
Description Flags
screenshot of app info
none
screen shot of activity monitor
none
animating svg none

Description Scott Fryxell 2023-10-29 09:36:52 PDT
Created attachment 468399 [details]
screenshot of app info

Webkit does not take advangage of external GPU. Even after selecting 'Prefer External GPU' checkbox on on application info screen.
Comment 1 Scott Fryxell 2023-10-29 09:38:11 PDT
Created attachment 468400 [details]
screen shot of activity monitor
Comment 2 Alexey Proskuryakov 2023-10-30 14:31:01 PDT
Thank you for the report! Could you please attach your test case, and elaborate on why you expected the external GPU to be used?

Generally, WebKit doesn't use discrete internal GPU either, preferring the integrated one.
Comment 3 Scott Fryxell 2023-11-02 10:02:54 PDT
Created attachment 468458 [details]
animating svg
Comment 4 Scott Fryxell 2023-11-02 10:04:07 PDT
I am testing webkit's recent changes that purport to support running animations on the GPU rather than the cpu. There continues to be dramatic difference between what Chrome can deliver compared to safari 

In order for me to show webkit in the best possible light I am hoping to flag the lack of support external gpu's to your team. 

I have attached an SVG file for a test case that highlights the difference in performance between chrome (which supports external GPU) and safari. 

This is an Operating system feature that apple has supported for 3+ years. 

https://support.apple.com/en-us/HT208544

The difference in performance between chrome and safari is dramatic.

I can upload and link to a video showing this difference in performance if that helps to clear things up...
Comment 5 Alexey Proskuryakov 2023-11-02 11:50:13 PDT
This is appreciated! Thank you - it was unclear whether this was about WebGL, having the test case clarifies it.
Comment 6 Simon Fraser (smfr) 2023-11-02 12:22:08 PDT
This is about WebKit not having GPU acceleration for SVG filters, when Chrome does.
Comment 7 Radar WebKit Bug Importer 2023-11-05 08:37:14 PST
<rdar://problem/117967484>