now that we are resolving promise when confetti batch is completed #37 (thanks to @grork), I think we should do clean-up more often in order to remove 1-2 seconds delay between shapes disappearing from the screen and the promise resolve
filtering invisible shapes is not so heavy operation compared to drawing shapes, and on the other hand, we reduce the number of draw operations, so I believe the hole library became a little bit more optimized
now that we are resolving promise when confetti batch is completed #37 (thanks to @grork), I think we should do clean-up more often in order to remove 1-2 seconds delay between shapes disappearing from the screen and the promise resolve
filtering invisible shapes is not so heavy operation compared to drawing shapes, and on the other hand, we reduce the number of
draw
operations, so I believe the hole library became a little bit more optimized