Bug 263848 - SVG animation is slow, as GPU is not used for filters
Summary: SVG animation is slow, as GPU is not used for filters
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Animations (show other bugs)
Version: Safari 17
Hardware: Mac (Intel) macOS 14
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-29 09:36 PDT by Scott Fryxell
Modified: 2023-11-20 03:52 PST (History)
9 users (show)

See Also:


Attachments
screenshot of app info (148.52 KB, image/png)
2023-10-29 09:36 PDT, Scott Fryxell
no flags Details
screen shot of activity monitor (2.39 MB, image/png)
2023-10-29 09:38 PDT, Scott Fryxell
no flags Details
animating svg (42.96 KB, image/svg+xml)
2023-11-02 10:02 PDT, Scott Fryxell
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>