So today's demo is laggy in Firefox and IE :( codepen.io/thebabydino/pen/Yโ€ฆ - does anyone have any clue why and how to fix it?
14
2
3
@thebabydino Drawing the tails requires 45 * 32 loops of the big calculation loop for each screen redraw. This is expensive.
1
@VeganBen Obviously. But there must be some way I can optimize things without sacrificing the aspect further. I already gave up having...
1
@VeganBen ... each at a different opacity just to get the fill out of the inner loop. I know actually drawing (fills & strokes) is costly.
2
Replying to @anatudor
@thebabydino In Firefox, it seems slightly faster with the fill in the inner loop, actually. (Really complex fill can be expensive.)

Jan 25, 2015 ยท 5:54 PM UTC

1