On Sat, Apr 21, 2001 at 11:01:49PM -0000, [EMAIL PROTECTED] 
wrote:
> * (a) Removed usleep() from sound_sdl_get_command()
> I hope that (a) was correct, but I don't see why we should do fixed-time
> waits for anything other than waiting between MIDI output event ticks...

I actually put it in there explicitly to slow the soundserver down;
otherwise it was spending WAY too much time synchronizing and checking
for events.  Basically, the _null server uses a select, which waits for
a given amount of time for an event.  If no events are there, then we
effectively wait the full amount of time, which is why I put the
usleep() in there.  It decreased the soundserver CPU usage on my laptop
from 60-90% of the CPU to barely registering.

That sleep shouldn't be necessary, but it appears to make a huge
difference.  Probably making up for another problem elsewhere.

 - Pizza
-- 
Solomon Peachy                                    pizzaATfucktheusers.org
I ain't broke, but I'm badly bent.                           ICQ# 1318344
Patience comes to those who wait.
    ...It's not "Beanbag Love", it's a "Transanimate Relationship"...

Reply via email to