> You're never going to get 1000 all the time, no matter who says what.
>
> from the usleep() man page:
> BUGS
>        Probably not accurate on many machines down to the
> microsecond.  Count on precision only to -4 or maybe -5.

It is not possible to achieve a forever constant 1000 in practice, no. But 
as you have seen, it is possible to come very close.

With -pingboost 2, HL1 actually uses select() for its delays. It likely has 
some minor precision errors as well (though these have been reduced by 
recent improvements in the kernel), but regardless, most of the time this 
will be trumped by internal factors, such as the game simply taking longer 
than 1ms to handle a tick, and external factors, such as a high overall 
machine load or delays in writing to the disk.

-John 


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to