Bug 138284

Summary: high CPU usage with xine backend
Product: [Applications] amarok Reporter: Gioele Barabucci <dev>
Component: generalAssignee: Amarok Bugs <amarok-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.4.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Gioele Barabucci 2006-12-03 11:17:14 UTC
Version:           1.4.4 (using KDE 3.5.5, Gentoo)
Compiler:          Target: powerpc-unknown-linux-gnu
OS:                Linux (ppc) release 2.6.18-gentoo-r2

When I play any kind of MP3 or Vorbis file in amarok 1.4.x with the Xine engine, amarok will use about 20% of the CPU. The engine is configure to output to the default ALSA soundcard.

mplayer uses less than 1% of the CPU when playing audio files. It does not use much more CPU when switching from mp3lib to ffmp3 as internal decoder.
Comment 1 Alexandre Oliveira 2006-12-19 04:20:06 UTC
nobody ever mentioned something like this...
Test with a newer xine-lib version.
Comment 2 Gioele Barabucci 2006-12-21 01:50:28 UTC
I am using version 1.1.3 (Gentoo ~PPC).

With previous versions of xine-lib and amarok the CPU usage was the same. The only exception being an early amarok with xine-lib (eight or so months ago) that showed a 3% CPU usage.
Comment 3 Gioele Barabucci 2007-01-01 07:57:08 UTC
If I disable the equalizer the CPU usage goes down to 9%. This means that half of the CPU consumption is due to the equalization process.
Comment 4 Mark Kretschmann 2007-01-02 20:07:33 UTC
Well you see, equalization is a rather CPU intensive operation. The audio data has to be transformed in realtime. At any rate, Amarok uses xinelib's equalizer. Any possible optimization can only be applied to xinelib. 

Thanks for understanding.
Comment 5 krasnoj 2007-03-14 15:32:39 UTC
Compared with xmms, 9% is also much to much. Does xmms use the xine engine?

Stefan
Comment 6 Bram Schoenmakers 2007-03-14 22:19:15 UTC
If I remember correctly, XMMS talks to ALSA directly. But maybe there are Xine plugins out there, who knows.