-
-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(macOS) Performance: constant high CPU usage #829
Comments
Uses 15-20% CPU here in my macOS VM. |
Interesting finding and thanks for going through the effort to verify this problem. Are you also running macOS 11? I removed CPU consumption while playing a track is now back to normal levels. Will keep an eye on this and re-open if issue returns, hopefully with more details as to which change triggers the CPU increase. |
Well that was a quick one. Connecting an external monitor makes CPU go up to ~50-80% playing a track and ~40-50 when ideling. |
It might be related to #542 |
Which gladly is seeing active development and just yesterday received patch set 8. Not sure if it is indeed the cause for the constant high CPU though, as no scrolling is involved in my tests. |
I found this because Strawberry 1.0.1 on macOS 11.6.2 was consuming a lot of CPU (about 40%) when paused. MacBook Pro 15", 2.9GHz quad-core i7. |
Also confirming: Strawberry 1.0.1-22-g56b2630a on macOS 11.6.2 sitting idle ~40% CPU |
What about the other analyzers, do they cause as much CPU too? |
Strawberry idle / playing ~40% / ~60% for all analyzers. |
The problematic code is in https://raw.githubusercontent.com/strawberrymusicplayer/strawberry/master/src/analyzer/analyzerbase.cpp |
Can you try the latest from https://builds.strawberrymusicplayer.org/macos/ those have Qt 6.3.0 (instead of Qt 6.2.x). |
macOS 12.3.1 But since both values have improved a lot. I think it is fair to close this issue. What do you think? Can others test as well? |
It might be worth disabling the analyzer by default on macOS to fix the issue out of the box. I'm not sure how many people actually look at the analyzer anyway. Typically, you minimize the music player a few seconds after choosing a track to play 🙂 |
In my macOS Big Sur VM which is slow in general strawberry is using approximately 4% - 10% when idle and 15-30% when playing, both with the analyzer is on. If I turn the analyzer off when idle, the CPU goes almost to 0, when playing it's under 20%. |
System Information:
Constant high CPU usage on macOS.
To Reproduce
With Strawberry open and doing nothing (no scrolling or playing a track or any interaction at all) Strawberry constantly sits at over 40% CPU usage
Playing a track it sits at over 60% while sometimes spiking at over 100%:
Expected behavior
CPU usage is too high. Comparing with Apples music app which sits at 0,1% when idle and goes up to under 2% when playing a track.
Additional context
Spin Dump: https://bin.disroot.org/?73b77829f80a251e#5vwiHDcJRRTccyUMsLmNgUidDriH9xRhv6HMAEW8hoUn
Process Sample: https://bin.disroot.org/?103ce9f6c263e0fb#HzSkmVV7rWMBXs5GyL1nzbP6h6cA92XRhmUJc6ATSDKw
The text was updated successfully, but these errors were encountered: