Why ape. format eats more CPU usage?
Aug 22, 2004 at 3:23 AM Thread Starter Post #1 of 21

Permonic

1000+ Head-Fier
Joined
Dec 12, 2003
Posts
1,178
Likes
10
My entire CD collection is transfered into lossless Monkey's Audio (.ape) format. The usage of my CPU (Pentium-M 1.6 MHz) is usually about 30%. I use Foobar2000, 24 fixed-point, 44.1 kHz and ASIO format as an output. The soundcard is M-Audio Transit.

Recently I discovered that when I play MP3s or even a .wav format, the CPU usage drops significantly to 4-12% range. I am curious about this phenomenon, I tried different output format (Directsound, Directsound 2.0, waveOut; Kernel Streaming doesn't work with M-Audio Transit), using 16 fixed-point, experimenting with resampler.... However in the end, the result is always the same: .ape format uses CPU about 3x more than MP3 and 6x more than .wav format.

The sample rate of .ape format is 44.1/16 bit, compression circa 40-70%.

The question is, whether this is caused by an algorithm of Monkey's Audio format itself or by a Foobar2000 Monkey's Audio plug-in? And why? What do you think about that? Do you experience the same with other soundcards?
 
Aug 22, 2004 at 3:39 AM Post #2 of 21
My guess is that there's a default wav "decoder" inside windows, so it really doesn't have to do anything to "decode" it whereas the APE plugin is probably not optimized in any way and just bare as far as being a quality program. In essence, the only reasonable thing I ... whatever, the plugin is just crappy. lol
biggrin.gif
 
Aug 22, 2004 at 4:04 AM Post #4 of 21
If you're tired of taking a big hit with ape, try flac. It's integer based and decodes pretty fast. My cpu shows 0%-4% - exactly the same as for mp3. Athlon 2400+ running bone stock speeds so I can keep my fan speed to a minimum.
 
Aug 22, 2004 at 4:04 AM Post #5 of 21
30%? Wow that's a lot. I'm at 0-1% in foobar and winamp on either WAV or APE on P4 3.2ghz. The USB based transit must be taking more CPU power?
 
Aug 22, 2004 at 5:02 AM Post #6 of 21
I use between 9 and 12% with ape and 4-6% with flac. I'm on an XP1900+ at stock speed. Using foobar w/asio output 24bit with strong ath noise shapping dither on, at 44.1khz. With dither turned off ape uses 7-10%.
 
Aug 22, 2004 at 5:06 AM Post #7 of 21
I'm running APE right now and looks like the CPU is averaging 6% or so.
 
Aug 22, 2004 at 5:51 AM Post #9 of 21
Umm, thanks guys for your inputs. From what I read and I agree with lan, the problem is probably the .ape - Transit combination
confused.gif
. As I wrote, I use Toshiba Satellite laptop with Pentium M on 1.6 MHz, so it should handle my settings easily. BTW when I use Transit with my old ThinkPad (PII 366 MHz) with the same settings, it takes all the CPU usage.
 
Aug 22, 2004 at 5:51 AM Post #10 of 21
Now put those cpus to use. Folding@Home!!!!
 
Aug 22, 2004 at 5:55 AM Post #11 of 21
Quote:

Originally Posted by Jasper994
I use between 9 and 12% with ape and 4-6% with flac. I'm on an XP1900+ at stock speed. Using foobar w/asio output 24bit with strong ath noise shapping dither on, at 44.1khz. With dither turned off ape uses 7-10%.


Jasper, the percentage you mentioned is based on E-MU 1212m or USB Audiophile? I wonder if my high usage is based on the fact that Transit is the USB device.
 
Aug 22, 2004 at 6:26 AM Post #12 of 21
a usb soundcard in general will use more of the cpu, but that has nothing to do with why ape uses more than other formats....that could be as others stated, based on the compression/decompression algorithms. This has never been a problem for me, so unfortunatly I don't have any advice for you to fix it other than use an internal soundcard to decrease the overall cpu usage, and/or use a different format such as flac.
 
Aug 22, 2004 at 8:21 AM Post #13 of 21
Quote:

Originally Posted by Permonic
Jasper, the percentage you mentioned is based on E-MU 1212m or USB Audiophile? I wonder if my high usage is based on the fact that Transit is the USB device.


1212m, USB does have a fairly large impact...
 
Aug 22, 2004 at 2:08 PM Post #15 of 21
Quote:

Originally Posted by aphex944
Average around 7-8% on an Athlon64 3200+ playing APE in FB2k using a Sonica


That's interesting because you should really be getting lower CPU usage on such a fast CPU BUT you are using a Sonica which is USB based.
 

Users who are viewing this thread

Back
Top