Skip to main content
100%

laggy-pattern-fill

✓ Published0🌍 Public
11wheel
Last edited Mar 16, 2018
Created on Mar 16, 2018

Clicking the teal bar toggles a pattern fill on 30 moving rectangles, demonstrating a sharp performance drop from 60 to 10 fps. The example compares SVG solid fills against `url(#grey-lines)` pattern fills as the rects animate via a `d3.timer`. It uses D3 selections and `attr` updates on an SVG canvas.

AI-generated description

Why is moving a rect with a pattern fill so laggy?

My laptop can animating 1000 solid rects at 60 fps, but 30 pattern filled rects slows down to 10 fps!

Similar vizzes