[Vorbis] Problem with CPU usage on Playstation 2 when using Ogg
Vorbis.
Daniel Collin
emoon at home.se
Sat Apr 30 02:34:11 PDT 2005
Hi,
Sometime ago i finished a port of Ogg Vorbis to Playstation 2.
The code is working just fine and the music sounds like it should, but
there is one problem.
I get CPU usage that looks like this (when i say frames i mean actually
rendering frames on the
Playstations 2 and you have 50 or 60 frames per second)
cpu usage: ~100% ~0% ~0% 0% ~100%
current frame: 0 1 2
3 4
This indicates that the Ogg Vorbis code processes a bit a head and on
frame 0 decodes
data for frame 1-3 also and just "gives" that data back for the
following frames.
What this means is that i will get frame drops every 4th frame (as i
need to use the main CPU
to do other things than just playing music)
So i wonder if its possible to get a more even cpu usage across each
update? lets say
it will take 25% each time instead of the pattern above?
If anyone has any pointers that would help me out i would be very thankful.
Thanks
Daniel
More information about the Vorbis
mailing list