mountainash / Mixcloud-Play

Mixcloud macOS desktop app with media controls, track title in menu bar & notifications
https://github.com/mountainash/Mixcloud-Play/releases/latest
20 stars 3 forks source link

High CPU usage #39

Open orange-87 opened 4 years ago

orange-87 commented 4 years ago

Another issue: app is using between 30 till 57% of CPU. Same usage if on mainscreen or minimized, working on it or leave it on second place. Is there any option to reduce it to preserve more CPU for others apps? My laptop is MacBook Pro Mid-2010 using Mac OS X 10.11.6

Thanks!

Captura de pantalla 2020-04-22 a las 0 18 46

mountainash commented 4 years ago

There's definitely a few optimisations that can be done* but unfortunately the Mixcloud website + streaming web audio is a CPU taxing task.

Even on my 4 GHz Quad-Core Intel Core i7 iMac, mixcloud.com in a recent version of Chrome [Version 81.0.4044.113] directly (not the old version of Electron this project is currently using), about 25% of the CPU is being used - so there's not a lot that this project can do to improve that.

Mixcloud.com in Chrome Task Manager
  * one such is that the lookups for song info stop while audio is paused.
mountainash commented 3 years ago

@orange-87 Could you please try this app (from version 0.16.0) again using the latest release which is running on a much newer version of Electron which should be more performant.

animanoir commented 2 years ago

Mixclog uses a lot of CPU still.

mountainash commented 2 years ago

@orange-87 & @animanoir - I've now built an Apple Silicon version, if you have a recent Mac, you could try it again.

animanoir commented 2 years ago

Thanks my friend. I don't have a Mac. I in fact thought this was the official Github of Mixcloud. I stopped using their service since it makes my CPU unnecessarily hot.

mountainash commented 1 year ago

Also reported in #105

xGeorgeV commented 1 year ago

Win10 Mixcloud with Google Chrome: High CPU usage: 38% Win10 Mixcloud with Microsoft Edge: Low CPU usage: 2%

maxbatur commented 10 months ago

Mixcloud CPU utilization on minimized windows 45% Maximized focused window consumes 10%

xGeorgeV commented 10 months ago

I use Vivaldi browser instead of Goggle Chrome for listening Mixcloud. Win10 Mixcloud with Vivaldi browser: CPU Usage: 3%

mountainash commented 10 months ago

Thanks for the input @xGeorgeV, but how that compare to using the Mixcloud-play App?

A percentage doesn’t mean much unless it’s compared to something constant (aka the same CPUs on the same machine setup).

xGeorgeV commented 10 months ago

I use Mixcloud with a Win10 browser. CPU usage with Google Chrome is high: 38% and constantly running out of memory. With Vivaldi browser the CPU usage is 3% and the free memory size is constant. Both browsers run on the same machine: Dell Precision 17" Laptop with Win10, Intel Core i7, nVidia RTX 3000, 2TB SSD, 16 GB RAM.

mountainash commented 10 months ago

That’s interesting; but this project is not Chrome, Vivaldi or the Mixcloud website… or am I missing the point of your comments? 🤷🤷

xGeorgeV commented 10 months ago

That’s interesting; but this project is not Chrome, Vivaldi or the Mixcloud website… or am I missing the point of your comments? 🤷🤷

### Your first comment:

" . . . Mixcloud website . . . " " . . . mixcloud.com... ...Chrome [Version 81.0.4044.113] directly . . . " " . . . Mixcloud.com in Chrome Task Manager" . . . "

Do you have memory problems?

mountainash commented 6 months ago

Hello @orange-87 - please try the latest release and see if that improves things for you. On my M1 Pro I'm seeing ~15-16% CPU Usage when playing music and less that 1% when not.

Screenshot showing CPU usage