usmanyunusov / nanospinner

🌀 The simplest and tiniest terminal spinner for Node.js
https://npm.im/nanospinner
ISC License
183 stars 15 forks source link

Increase default interval #15

Closed ai closed 2 years ago

ai commented 2 years ago

If you have a heavy task (like in check-dts), Node.js will not have resources to call setInterval callback every 25 ms. It will lead to frame drops and jerky animation.

Increasing default interval to 50 ms solves this problem (at least for check-dts and size-limit).