kimmobrunfeldt / progressbar.js

Responsive and slick progress bars
https://kimmobrunfeldt.github.io/progressbar.js
MIT License
7.8k stars 1.42k forks source link

high cpu usage #150

Closed Endzeitlive closed 7 years ago

Endzeitlive commented 8 years ago

Hey i got a working progressbar. Here's my example: http://jsfiddle.net/8xa87k31/1965/

When running this example chrome need a cpu usage over 10% in chrome 53 (windows 10 64bit).

i7-6700k @4,5GHz.

Is there any error or the performance is just bad?

kimmobrunfeldt commented 8 years ago

Hi, the library is using shifty for tweening and it uses requestAnimationFrame to do intensive animation loops. This uses some CPU yeah but I don't know any better method of doing the animation in JS.

As to your questions:

I'll leave this open if someone(or me) will be interested running a CPU profiling for the animation.

kimmobrunfeldt commented 7 years ago

Closing due to inactivity.