Re: [AD] WIP 4.1.15 and CVS freeze

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On July 26, 2004 05:30 am, Elias Pschernig wrote:
> On Mon, 2004-07-26 at 11:45 +0200, Elias Pschernig wrote:
> > > define. And if you're going for dropping CPU usage, shouldn't rest(1)
> > > be sufficient on platforms that have a proper system sleep method? When
> > > we were talking about timeslices being 10ms in Windows and Linux, and
> > > 30ms in some other place, that's the approximate time it would take for
> > > the
> >
> > No, the 30ms aren't the timeslice AFAIK. But, I actually don't have an
> > explanation. I'll try and test it in BeOS if I can still get it to boot
> > on my old computer.
>
> Ok, I tried exmidi in BeOS, and modified it so it uses
> while(!key[KEY_ESC]) rest(1); instead of readkey.  And that was enough
> here to make it not use up all CPU. So probably we can do without that
> constant in BeOS. If we can get someone to test the same in OSX, and it
> also works there, then the constant actually isn't needed at all.

And if it is needed, don't make it static for all platofrms. That is, leave it 
at 1 for the platforms where it works, and whatever for other platforms.. I 
dislike the idea that we might rest for longer than needed.

Now if thats what you intended, ignore me ;)

> --
> Elias Pschernig
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click

-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/