clementine-player / Clementine

:tangerine: Clementine Music Player
https://www.clementine-player.org/
GNU General Public License v3.0
3.74k stars 675 forks source link

Make CPU usage lower #1079

Open Clementine-Issue-Importer opened 10 years ago

Clementine-Issue-Importer commented 10 years ago

From madura.x86 on December 12, 2010 17:32:21

Clementine is using too much CPU for a player(when considered with Amarok 1.4 and IMHO). It uses about 12% of CPU when playing a MP3 without any visualization. I think this should improve, other than this it's great!

Original issue: http://code.google.com/p/clementine-player/issues/detail?id=1079

Clementine-Issue-Importer commented 10 years ago

From guillaumeavril on December 12, 2010 12:07:21

Same on ubuntu 10.10 on intel atom n270 (clemetine 0.6)

Clementine: 17% MPlayer from command line: 3%

I think there is room for enhancement!

Clementine-Issue-Importer commented 10 years ago

From goetzchrist on December 13, 2010 08:40:39

@ madura.x86, guillaumeavril, which OS? I suppose both us you use Linux. madura.x86, which CPU? It depends on the frequency, number of cores, and some other things. Would also be good to know the CPU usage from for example mplayer from command line (like guillaumeavril did) to compare it.

Using Clementine 0.6 r2408 , in Kubuntu 10.10, with a Intel 2160 dual core CPU @ 1.80 GHz, playing an MP3 at 320 kbps:

program — % CPU usage — RAM usage

mplayer — 0< % <1 — 8 MB clement. — 2 — 25-80 MB ffplay — 3 — 8 MB (no audio waves)

I don't see any high CPU usage, but the memory usage gets higher and high. It doesn't seems to be related to the playback (the memory usage is constant), but to other tasks.

Clementine-Issue-Importer commented 10 years ago

From ivanovnegro on December 13, 2010 09:03:55

In my case it was higher, on the newest revision r2408 I have only 6% of CPU usage and about 50 MB of memory usage. Before I had also about 20% CPU and more as 50 MB of memory, it seems there was already an improvement. Im on Maverick, specs 1.9 GB; Intel Core Duo 2.00 GHz.

Clementine-Issue-Importer commented 10 years ago

From madura.x86 on December 13, 2010 18:53:44

@goetzchrist I'm on an i5 @ 2.4 GHz, Quodlibet uses 4% CPU when playing MP3s. My system is Ubuntu 10.10 with 2.6.37-rc3 amd64(if that matters). I installed Clementine on maverick using the deb file given in the download section.

Clementine-Issue-Importer commented 10 years ago

From ivanovnegro on December 15, 2010 09:49:15

I noticed that the CPU usage is almost low it only goes up when you enable the info tabs about the artist or the song and then also the memory usage will be increased. It is not so bad but maybe a little bit less ressource usage would not be bad with the info tabs in the side bar enabled, and I mean here more the CPU, the memory is great. Clementine is doing it great with only loading lyrics or infos about the artists when you enable it and not the whole time, I think this is the way how it works. Other players are loading everything even when you are not in the lyrics section or tab.

Clementine-Issue-Importer commented 10 years ago

From dtverder on January 14, 2011 00:46:55

I think the CPU usage is excellent! Typically on my system (Fedora,Intel E8400) it is about 3%. This compares to Amarok 1.4 which used to regularly run at 80-90%!

Clementine-Issue-Importer commented 10 years ago

From goetzchrist on January 14, 2011 07:06:00

If it's ~80% with Amarok, then comparing to something broken it not fair :) Also, Amarok can use many different backends through Phonon.

Clementine-Issue-Importer commented 10 years ago

From ivanovnegro on January 24, 2011 06:56:05

I made some observations now and I noticed when I have Clementine open a long time and with large playlists the CPU will increase about 20%. I can live with it, I like Clementine too much but it would be not bad to reduce the CPU usage especially when Firefox is open and Clementine, my computer begins to be noticeable loud.

Clementine-Issue-Importer commented 10 years ago

From keirangtp on January 29, 2011 03:16:47

Issue 1388 has been merged into this issue.

Clementine-Issue-Importer commented 10 years ago

From ivanovnegro on January 31, 2011 02:50:47

I encountered a new thing about the CPU usage, its related to the analyzers, the default one seems to be less ressource hungry as the others also if you disable all of them the CPU will be lower, under 20 %.

Clementine-Issue-Importer commented 10 years ago

From s@kazlauskas.me on February 10, 2011 23:50:00

If you turn off window of clementine(music still playing it lowers to 8% for me... It still pretty big.

Clementine-Issue-Importer commented 10 years ago

From ivanovnegro on February 11, 2011 07:51:14

8%, big? Im not sure about it. In my opinion not and I wish I would have constantly only 8%. The problem is, after using Clementine for more time it increases the rate.

Clementine-Issue-Importer commented 10 years ago

From Oleksandr.Brezhniev on February 28, 2011 03:02:39

My top on AMD Athlon II X2 215:

On my old PC with P4 Celeron 1.7Ghz, when playing and window is open, CPU usage goes to 100%.

Clementine-Issue-Importer commented 10 years ago

From davidsansome on March 16, 2011 10:32:46

Issue 1581 has been merged into this issue.

Clementine-Issue-Importer commented 10 years ago

From google@netzkind.org on March 18, 2011 05:45:13

on OS X 10.6.6 with clementine 0.6 r2991 not playing any music, the different visualizations take between 5%-20% cpu load (that's what the os x activity monitor tells me). only when turning off the visualizations the process sleeps.

Clementine-Issue-Importer commented 10 years ago

From JohnSC301 on March 28, 2011 11:24:43

Kubuntu 10.10 64bit kde 4.6.1 When launching Clementine 64bit 0.7 cpu is very high ~maybe 30-40% increase then will die down a bit. The ram is ~100mb while other music players do not even reach 40mb. Clementine needs major performance improvements.

Clementine-Issue-Importer commented 10 years ago

From nowrep on April 01, 2011 05:27:50

You should try disabling equalizer and now CPU usage when main window is hidden gets back to same value as rhytmbox has.

Clementine-Issue-Importer commented 10 years ago

From JohnSC301 on April 01, 2011 10:44:32

For me, I have equalizer off and cpu is still very high.

Clementine-Issue-Importer commented 10 years ago

From keirangtp on April 06, 2011 07:35:28

Issue 1700 has been merged into this issue.

Clementine-Issue-Importer commented 10 years ago

From alphadeltapapa on April 06, 2011 14:22:47

I see that you merged my issue 1700 into this one, but I think it's important to note that in my issue, the excessive CPU usage is shown for the X process, not for the Clementine process. But it's directly caused by Clementine, even though it shows up under X.

Clementine-Issue-Importer commented 10 years ago

From jkflying on April 06, 2011 23:34:37

Have you tried disabling the 'glowing' option in Preferences --> Playback? I've found that this reduces the X usage down to normal levels.

Clementine-Issue-Importer commented 10 years ago

From alphadeltapapa on April 07, 2011 12:02:41

You're right: I disabled that and it's down to normal. I'm not sure, but I don't remember this being a problem with Amarok 1.4. I never turned off the glowing in it.

Clementine-Issue-Importer commented 10 years ago

From gmandx on April 07, 2011 12:53:30

Amarok 1.4 used Qt3, now with Qt4 things may change... I think that disabling visual effects for an audio player it's Ok, but to disable the equalizer it not a correct answer. Music players are about music, I want the best experience regarding sound! If the equalizer is consuming too much power, the it should be reviewed, not just disabled.

Clementine-Issue-Importer commented 10 years ago

From goetzchrist on April 07, 2011 13:43:29

I don't have that problem, but if you have, and disabling the glowing helps, then maybe it is a bug in your graphics driver or somewhere in the graphics stack that affects you, with your particular software versions and configurations. Try enabling/disabling composition, in a Live-CD of another distribution, etc.

We could maybe narrow this problem down, by giving more information about the affected system, like the version of the video driver, mesa, kernel, distribution, etc.

Clementine-Issue-Importer commented 10 years ago

From jkflying on April 07, 2011 13:55:19

I was also wondering if there might be a bigger, non-clementine issue that clementine happens to stumble upon here. One idea I had was that each time a frame in the glowing or in the equalizer updates it might cause an entire redraw of all the objects in the window under certain drivers.

Clementine-Issue-Importer commented 10 years ago

From ivanovnegro on April 07, 2011 14:03:04

I have obviously other hardware but I can assure that in my case nothing is broken. If I have to disable everything then that is not the solution to make the CPU usage lower. Even with everything disabled Clementine consumes more as I would expect from it.

Clementine-Issue-Importer commented 10 years ago

From alphadeltapapa on April 07, 2011 14:21:02

I'm running:

Kubuntu Maverick 10.10 Linux 2.6.35-28-generic #49-Ubuntu SMP Tue Mar 1 14:40:58 UTC 2011 i686 GNU/Linux

nvidia-current: Installed: 260.19.06-0ubuntu1 Candidate: 260.19.06-0ubuntu1 Version table: *\ 260.19.06-0ubuntu1 0 500 http://us.archive.ubuntu.com/ubuntu/ maverick/restricted i386 Packages 100 /var/lib/dpkg/status

libgl1-mesa-dri: Installed: 7.9~git20100924-0ubuntu2 Candidate: 7.9~git20100924-0ubuntu2 Version table: *\ 7.9~git20100924-0ubuntu2 0 500 http://us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages 100 /var/lib/dpkg/status

kde-window-manager: Installed: 4:4.6.1-0ubuntu1~maverick1~ppa1 Candidate: 4:4.6.2a-0ubuntu1~maverick1~ppa2 Version table: 4:4.6.2a-0ubuntu1~maverick1~ppa2 0 500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ maverick/main i386 Packages *\ 4:4.6.1-0ubuntu1~maverick1~ppa1 0 100 /var/lib/dpkg/status

(Ah, 4.6.2 got packaged. Time to upgrade...)

I use KWin with desktop effects active, OpenGL compositing, Texture from Pixmap, direct rendering, and vsync.

That's all I can think of. :)

Clementine-Issue-Importer commented 10 years ago

From orion@nwra.com on April 15, 2011 09:20:53

Still seems high on Fedora 14.

clementine-0.7.1-1.fc14.i686 kdelibs-4.6.2-1.fc14.i686 qt-4.7.2-8.fc14.i686

Clementine-Issue-Importer commented 10 years ago

From ivanovnegro on April 25, 2011 15:31:57

Ok, alphadel also mentioned Xorg CPU usage is high when Clementine is playing, I can confirm this with a different graphics card, Intel integrated, for me this is definiteley a Clementine issue, other players are not increasing the CPU usage of X. I hope that could be fixed somehow. I tested it with the same machine on Ubuntu Maverick, PCLinuxOS KDE 4.6.2 and on Kubuntu Natty, Xorg is showing a CPU usage of about 20% and when Clementine is not playing it is about 1% or a little bit higher. Now I tested also Amarok 2.4, its incredible, apart form the high RAM usage of this app it only needs between 4 and 6% of my CPU, that is really great. Clementine seems lightweight because of the RAM it uses but that is increasing always until 200 MB or more after using it more then 12 hours, ok not a big deal but the CPU usage is a horror. Instead Amarok is constantly using the same amount of both. My conclusion, Clementine has a resource lack.

Clementine-Issue-Importer commented 10 years ago

From jonjermey on May 31, 2011 02:01:58

I would prefer to see the lowest possible CPU use settings as the default, and then people can add eye candy if they want to. For the record, under Mint 11:

Window open, current track glowing -- starts at 20% then drops to 16% Window closed, current track glowing -- 8% Window open, current track not glowing -- 4% Window closed, no glow -- 0%

Clementine-Issue-Importer commented 10 years ago

From pieter.frenssen@desk02.be on September 08, 2011 05:21:02

I would also suggest to disable all CPU-eating features like the glow and visualizations by default.

Clementine-Issue-Importer commented 10 years ago

From markfurneaux on January 31, 2012 12:23:59

Through my own testing, I have noticed that Clementine continually causes CPU wakeups; far more than would seem necessary. While running Clementine with the main window visible without any visualizations, glow, or an analyser, it causes my i7 2760QM CPU to use 5-7 watts more power continually than when running with the main window closed. This ruins my battery life, decreasing total runtime by about an hour. On a related note, Clementine also does not seem to cache audio files very much. Instead it streams them from the HDD which also increases power consumption. Increasing the buffer size does not seem to have a major difference.

Clementine-Issue-Importer commented 10 years ago

From jkflying on February 01, 2012 01:56:11

I assume you've disabled the 'glow'?

What operating system are you using?

Clementine-Issue-Importer commented 10 years ago

From markfurneaux on February 01, 2012 10:30:16

Yes, as I previously mentioned, I have disabled all 'fancy' features including the glow.

Sorry, I forgot to include OS version. I am running Ubuntu 11.10 with a 3.2 kernel. (It's an ASUS K53SV-DH71 laptop if anyone finds that relevant)

Clementine-Issue-Importer commented 10 years ago

From TJHockless on February 04, 2012 09:44:11

VLC uses 16 MB.

Clementine uses 200

I'm on Fedora 16 64bit

Clementine-Issue-Importer commented 10 years ago

From john.maguire on June 06, 2012 14:44:51

Issue 2969 has been merged into this issue.

Clementine-Issue-Importer commented 10 years ago

From akylen on September 12, 2012 12:11:48

As soon as I double click a song and Clementine starts it 'eats' 140% of my CPU and then drops to 115%. I think it's because is loading cover and song lyrics. If I quit the player and open again and start playing the same album it only 'eats' 20% (I still think its a little too much). Everytime I add a new album it does that. Eats a lot of CPU and then drops to 20%.

Disabled the glow and analyzers.

Using Clementine 1.0.1-650-g0fae2e1 on OS X 10.8.1; 2.3 Ghz i5 and 8GB RAM

PS: I love clementine because it lets me play my music through file browsing instead of organizing my whole music like iTunes. I import songs from folders or double click them.

Clementine-Issue-Importer commented 10 years ago

From rodrigue.villetard on October 09, 2012 07:07:18

same on ubuntu 12.10 64bits (quantal) clementine 1.0.1 linux kernel 3.5.0-17-generic gnome 3.6.0 core i5-2467M

Clementine-Issue-Importer commented 10 years ago

From ckujau on November 25, 2012 23:36:30

Disabling this "glow" setting really does cut on CPU time, from 12% to 7% here (MacBook Pro, 2x2.53GHz). Please change its default to "off".

Clementine-Issue-Importer commented 10 years ago

From purplishwords on November 28, 2012 10:20:43

My Clementine runs at about 20-30% CPU (2.26 GHz Intel Core 2 Duo). I just turned the glow off and while playing an mp3 it is still hovering at 27%. I have noticed a lot of glitches in playback recently.

Clementine-Issue-Importer commented 10 years ago

From fuuzetsu@fuuzetsu.co.uk on November 28, 2012 11:36:28

With glow, pre-generated moodbars and 60 FPS bar visualizer, Clementine runs at 2-3% on 1.8GHz Core 2 Duo. The person above, make sure your library isn't updating and that you aren't in the middle of loading moodbars when you are looking at your usage.

Here on 32-bit Gentoo and Version 1.1.1-106-g7b678b3

Clementine-Issue-Importer commented 10 years ago

From purplishwords on November 28, 2012 17:50:08

I have my library set to auto-update, but it displays in the status bar when it is doing so. I do have a very large library. Would this explain high CPU usage constantly? I'm not playing anything right now and it is at 18%.

Clementine-Issue-Importer commented 10 years ago

From dgtlmoon on November 29, 2012 05:31:46

Same issue here, really annoying

Clementine-Issue-Importer commented 10 years ago

From emailofchris on December 10, 2012 21:12:15

I'm running Clementine on a 2011 Macbook Pro (i5) and right now, playing an Ogg Vorbis file, CPU is sporadic, anywhere from 20% to 35%. MP3 performance seems to be more stable, sticking around 19%-20%. Regardless, it's always too high, when VLC can play music with around 4% CPU usage, and MPlayer OS X Extended gets 2-3%. Maybe that's a bit unfair of a comparison, but the point is, there's a lot of room to improve.

Clementine-Issue-Importer commented 10 years ago

From john.maguire on December 11, 2012 05:15:27

Labels: Restrict-AddIssueComment-Commit

Clementine-Issue-Importer commented 10 years ago

From davidsansome on December 13, 2012 15:28:03

Issue 3355 has been merged into this issue.

ginsterbusch commented 10 years ago

Having the same CPU peaks (with waking up the CPU) described in #issuecomment-29995519 (markfernaux), but with window closed, album cover loading disabled. Doesn't matter whether the mini-visualizer is on or off. Glow is off, but mostly because it reduced readability.

Single CPU usage always jumps up to 100% = 25%, keeping the system busy, when loading a new track. Sometimes, this issue is gone, but it resurfaces every once in a while. Cannot really pinpoint it, because closing, killing and completely reloading Clementine didn't help either. Hasn't occured for the last 2 months or so, but it's back again .. sighs

Clementine Version: 1.1.1 System: i5-2400, 24 GB RAM, 24/7-optimized Distribution: Linux Mint 12 Kernel: 3.1.4

cu, w0lf.

tehmindflare commented 9 years ago

Same issue. Sometimes it seems incredibly ineffective power-wise.

Shows 120+% CPU load without any reasons to do so.

xgdgsc commented 9 years ago

I experience 120% CPU for some m4a file. And normally 30% CPU for ordinary lossless file. Much higher than other players.

bwat47 commented 9 years ago

I've used clementine on both yosememite and mavericks on my mba 2013 (both clean installs). Clementine uses absurd amount of cpu while playing music on both. when I'm playing a song it just sits there using constant 20-30% cpu usage at all times.

I've disabled all of clementine's more cpu heavy features (moodbar generation, current track animation, analyzer, equalizer) and it didn't make a lick of difference.

I don't even have a local library, just playing tracks from a subsonic share.