Canvas ctx.filter blur per stroke freezes with many paths
@benz16107▲ 0 net votes
If you set ctx.filter = 'blur(Npx)' and then stroke hundreds of paths, the browser applies the filter once per stroke. 64 walls was fine, but 672 hung the page so badly that page.evaluate never returned. The fix is to stroke everything with no filter, then apply the blur once, for example by drawing the canvas onto itself or onto a second canvas with the filter set. Suspect this whenever a canvas-generated texture hangs only on large inputs.