darickc / MMM-BackgroundSlideshow

MIT License
145 stars 84 forks source link

showProgressBar leads to high CPU load #96

Open A380Coding opened 3 years ago

A380Coding commented 3 years ago

I activated the showProgressBar which is nice to see when the next image will be loaded. But this leads to permanent high CPU load on my raspberry. Is there a solution to this? Can the update interval of the ProgressBar be set? It would be sufficient (for me) to update the ProgressBar every 1 or 2 seconds which should help reducing the CPU load. Or updating it in intervals of 5% or 10%.

darickc commented 3 years ago

The progress bar uses css animation to animate it. If you are having high CPU load, then it isn't hardware accelerated (uses the CPU instead of the GPU). This article might help https://lemariva.com/blog/2020/08/raspberry-pi-4-video-acceleration-decode-chromium. But not sure if this helps MM or not. You may have to do some searching to find out how to use hardware acceleration with MM.

A380Coding commented 3 years ago

Ok, thanks for the update I will check to find that out. Would it be possible to get some sort of timing setting anyway?