[Vorbis-dev] Speed up?

Michael Smith msmith at xiph.org
Thu May 11 08:16:23 PDT 2006


On 5/11/06, 2spork at informatik.uni-hamburg.de
<2spork at informatik.uni-hamburg.de> wrote:
> Hello,
>
> hope you're fine.
> And hopefully someone can help me.
> I wrote a short demonstration to show you my problem (see below). I'm
> asking always for 64 samples. When "ov_read_float()" is finished, I
> want to seek back to sample 1, and ask immediately for the next 64
> samples.
> But when I run this small app, I get an totally high CPU load.

Your application is a loop that decodes vorbis as fast as possible,
then when it gets to the end, it restarts.

If you speed it up, it'll STILL run forever, and use 100% cpu while
it's doing that.

Is there a particular problem you're trying to solve in a real
application? If you explain that, we might be able to help (as a
reference point: decoding 44.1kHz stereo vorbis takes less than 1% cpu
for me, on average).

Mike


More information about the Vorbis-dev mailing list