Large CPU Usage
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
CPU at 50-80% mostly by spotube
Expected Behavior
CPU being near idle with spotube open/closed
Steps to reproduce
Open Spotube
CPU Usage goes 50%+
Quit Spotube
CPU usage down to <10%/idle
Operating System
Windows 11
Spotube version
3.8.0
Installation source
Website (spotube.krtirtho.dev)
Additional information
It's not consistent - sometimes it uses 25% of cpu, other times it spikes to 75% But it is very obviously Spotube causing cpu usage spikes, as quitting the app completely results in cpu going back to idle
Self grab
- [ ] I'm ready to work on this issue!
@KRTirtho can confirm with latest version 4.0.0, also on android crazy high CPU usage and thus high 🔋 battery consumption. Eats around 1% per minute which is suboptimal to say at least, for a long running app.
Do you have time to do some performance benchmarks and find the cause(s) in the code for this?
If not I might find time this year maybe.
I can also confirm with 4.0.0 on linux mint 22 running Kde Plasma with X11 : Spotube uses 5-10% of my ryzen 7-7730 at idle even when no music is playing, and my laptop seems to heat after some time. However, I noticed that it only occurs when the window is opened (including hidden by other windows); when I minimize it, the cpu usage falls to an excpected negligeable value (<= 0.1%), even with some music playing. I honestly don't have the skills to provide proper diagnostic, but I feel like the window is kept continously refreshed at screen rate (maybe more) despite it being untouched or hidden behind another window, except when it is minimized.
By the way, I am also running spotube 3.9.0 (4.0.0 not available on f-droid yet) on android 13 to listen to music, sometimes for a few hours, and haven't faced any over-consumption issue.