MarshallOfSound / Google-Play-Music-Desktop-Player-UNOFFICIAL-

A beautiful cross platform Desktop Player for Google Play Music
https://www.googleplaymusicdesktopplayer.com
MIT License
8.27k stars 767 forks source link

Using 90% to 100% of CPU in macOS High Sierra #3120

Open halfcyan opened 6 years ago

halfcyan commented 6 years ago

OS: macOS 10.13.4

GPMDP Version: 4.5.0

Issue Descriptions: Using 90% to 100% of CPU constantly

Steps to Reproduce: Install the app and run it. That's all I did

My System Info: https://pastebin.com/vPu9hJfp

welcome[bot] commented 6 years ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of duplicate issues on this repo, so please double check now that your issue has not already been solved or doesn't have an open issue already. To help make it easier for us to investigate your issue, please follow the contributing guidelines and ensure the issue template was filled out.

jostrander commented 6 years ago

Discord rich presence enabled?

halfcyan commented 6 years ago

I disabled it earlier

NotNate commented 6 years ago

You might want to try restarting it after disabling discord rich presence. I had it enabled and it was using 40% of my CPU at all times, disabled and restarted and now it uses slightly under 2%

halfcyan commented 6 years ago

It's using about 13% now. Thanks to both of you!

pascalwhoop commented 6 years ago

I've got a similar issue on Linux, using about 2x 13% of my 7700k which is way too much for some background doodling. discord is disabled.

halfcyan commented 6 years ago

Turns out, macOS does it per core, so it was only 25%

electr0sheep commented 6 years ago

On High Sierra as well, it's using about 8% CPU. This was quite a bit higher than I expected, not sure if that's normal or not. It's also using about 50 threads as well. After switching to streaming through Chrome, it looks like Chrome uses less resources. I thought the desktop player was supposed to be lighter!

Apparently Discord causes issues, but I don't have Discord installed.

halfcyan commented 6 years ago

If you have a 4 core machine, that's using 1% of the CPU's entire resources. That's because of Hyper Threading on Intel, as long as it's not a single threaded operation. That's just the Activity Monitor being annoying.

MikeLund commented 6 years ago

So you think this isn't a real bug? It feels like I must be doing something wrong then. I have the Discord thing disabled, and the client still eats ~30% CPU while idle. Whereas Radiant Player sitting idle at <5%. On a Mid 2014 Retina, macOS 10.13.6.

I'm loving the player, but it's using an unacceptable amount of battery. Any tips (maybe some setting in the app) on how I can reduce the CPU usage? Thanks.

pascalwhoop commented 6 years ago

On my new laptop with accurate power measurements, my battery life gets dragged down from 10 to 7 hours by the player. Mpd and ncmpcpp only cause 20 minutes, both with Bluetooth playing. There is something happening, this player uses more than 20+ tabs open. Again, happy to provide metrics if guided to a how to/ what is required