char-spinner icon indicating copy to clipboard operation
char-spinner copied to clipboard

Could be smoother / less jerky

Open dylang opened this issue 11 years ago • 0 comments

When setInterval isn't able to fire at a steady rate the spinner animation is jerky. This can create a negative impression about the performance of what's actually happening while the spinner is running.

This can be see when using npm to install significantly large packages.

I'm not sure the best way to fix this.

Maybe a slower default rate?

Or a different animation that had more gradual steps which would be skipped when setInterval fired later than expected.

Or maybe we just need tty.requestAnimationFrame in Node. :smile_cat:

dylang avatar May 23 '14 19:05 dylang