Open danset opened 1 month ago
After bisecting, looks like the culprit is https://github.com/RazrFalcon/resvg/commit/2e7542fd.
Yes, this is by design. In <0.33 we were clipping the filter region to canvas, which was producing an incorrect output. The new algorithm fixes this issue by actually blurring the whole layer, which is obviously slower. Nothing we can do about it.
Also, you're blurring a 1920x1920px (technically 2304x2304) image on a CPU. What do you even expect...
I'm seeing a much larger increase in rendering time from adding a blur filter to an image on v0.33.0 and later than earlier versions
Rendering this svg:
Testing with:
./resvg test.svg test.png --perf
on an M1 MacOutput on v0.33.0 and later:
Output on v0.32.0:
Removing the filter from the image gives similar performance on both versions (~100ms rendering)