High CPU usage during playback with window open

Hi, playing back FLAC tracks using Amarok consumes 12% of CPU (20% with analyzer enabled) . That feels like a lot…
minimizing/closing the window reduces it to 0.5%, so it’s fine in the end.

Just for comparison, Strawberry uses 5% for the same track with 30FPS analyzer, 9% with 60FPS analyzer, and 3% with no analyzer.

Those are all heavy numbers - opening a FLAC with Strawberry shows between nothing and 0.1%, Haruna, QMMP and QMPlay bring similar stories (QMMP being so low on memory…) as does VLC… MPV registered nothing at all (whilst system monitoring tends to hold steady between 0.3-0.5%).

Elisa is greedy, starting over 1.6% but only settling down varying itself from 0.8 to 1.4% - making it the heaviest player I have.

If I boost Strawberry’s analyser to ‘super 60fps’ then it’s averaging 0.1-0.2% - but generally I don’t put analysers on to listen.

Just out of interest, installed and tested Amarok and you’re right - it’s super heavy in comparison to the others, starting out at 6% to 7% for the same FLAC…

Take into account that I have an AMD big.little laptop, that throttles, and I don’t know how htop measures…
The main point for me is the difference in usage between the players.

Related bugreport at https://bugs.kde.org/show_bug.cgi?id=327891

I have a prototype dummy QML playlist in a local branch from last summer. It creates a widget, but doesn’t do anything sensible yet. I suspect that would/will help with the playback CPU usage somewhat.