Re: [AD] minor fix

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


On Friday 09 July 2004 14:13, Chris wrote:
> Actually, I just noticed something. The original code made it so the 
> interval was never greater than ~18ms no matter how long the actual 
> difference was. Though the only way I can really see that happening is 
> due to a large CPU drain or if the thread pauses. If there's sufficient 
> reason, you may want to put a check right before the while(interval > 
> 10000) loop:
> 
> if(interval > 18000)
>     interval = 18000;
> while(interval > 10000) {
> etc...
> 
> You could also probably round that up to 20ms, again if there's 
> sufficient reason.

I'm going to apply the attached patch, which is basically the one you 
posted before with the above check added.

Evert





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