Page 1 of 1

High CPU usage when scrolling

Posted: Fri Apr 09, 2021 7:27 am
by z3huti
High CPU usage when scrolling thru albums or in playlist. And it looks like MM every time loads images.

Also RAM usage is unacceptable imo, the longer I use MM, the more RAM is using.
On start ~125MB, after 30 min ~350MB

https://youtu.be/S0_lDB_kREs

and

https://youtu.be/o5-aWQVibJ4

Re: High CPU usage when scrolling

Posted: Fri Apr 09, 2021 11:22 am
by drakinite
Hey there,

(RE high CPU/reloading images) This is true, and an issue I'm hoping can be improved/resolved in 5.0.1. Album art thumbnails have cache entirely disabled in the grid view. It is my understanding that this was done to conserve RAM, as for users with large libraries, RAM usage was significantly higher.

Unfortunately, the vast majority of RAM usage is taken by Chromium, and there's a point where we have little control over how much it uses. There's always going to be a tradeoff between memory usage and performance, unfortunately; but rest assured that we are doing our best to optimize both. I do believe that we should give the option to enable/disable thumbnail caching (and/or enable/disable other memory-saving activities that require more cpu), as it depends on the user whether one is more concerned about RAM usage or more concerned about CPU usage and performance. It's now tracked as https://www.ventismedia.com/mantis/view.php?id=17739; hopefully we can evaluate the possibility after we upgrade to the newest version of Chromium. (Chromium recently made some significant memory optimizations in a new version, so I'm eager to see if (and how) it improves MM's memory usage.