kimmobrunfeldt / progressbar.js

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

Control FPS #189

Closed xcracing closed 6 years ago

xcracing commented 7 years ago

Is there a way to control the FPS rendered? I have an application where I'm creating numerous progress bars that all have a duration of approx 120 sec, all on a low power CPU device. I would like to lower the FPS in order to recover some CPU time for other functions.

kimmobrunfeldt commented 7 years ago

Interesting question. I'm using https://github.com/jeremyckahn/shifty for tweening values. If you can figure out a good way to control the fps, I'm open to hear how it could be implemented. If it sounds good, I'm open for a PR.

xcracing commented 6 years ago

Thanks for the reply. I am by no means a JS expert, I tinkered with things a little bit to see if I could alter the FPS, but nothing I did seemed to have an effect - also queried google quite a bit to no avail. I'll do some more digging as time allows.

The below tweening library has control for FPS - I'll have to dig around a little and see if it might be feasible to use it instead.

https://github.com/JakeSidSmith/slik

kimmobrunfeldt commented 6 years ago

I'm closing this issue for now. Let's re-open if there will be more interest towards this. If someone is doing a PR, please confirm with implementation plan before coding. I can't guarantee I want this added.