char-spinner
char-spinner copied to clipboard
Could be smoother / less jerky
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: