Summary: | SVG filters crash on iOS and are slow in general | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jan Bösenberg <jan.boesenberg> | ||||
Component: | SVG | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | NEW --- | ||||||
Severity: | Major | CC: | sabouhallawa, simon.fraser, tomac, webkit-bug-importer, xidorn-webkit, zimmermann | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | Safari 12 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Jan Bösenberg
2018-11-02 10:23:53 PDT
For filters on monochrome rectangles (like in the example) where all pixels are manipulated the same (feColorMatrix, feComponentTransfer, etc), setting filterRes="1" will speed up things dramatically (by a factor 20 or so) and prevent the crashing. Here is a modified version with filterRes set to 1: https://codepen.io/anon/pen/LXYKJK Unfortunately filterRes is obsolete in SVG2 and will be removed in the next Safari version (see bug 129565), so there will be no solution left. It's probably futile but I would suggest to keep support for filterRes in Safari until the performance issues with SVG filters are solved. |