} -----Original Message-----
} From: [EMAIL PROTECTED] [mailto:hlds_linux-
} [EMAIL PROTECTED] On Behalf Of Gary Stanley
} Sent: Wednesday, November 12, 2008 10:16 PM
} To: Half-Life dedicated Linux server mailing list
} Subject: Re: [hlds_linux] The 1000fps problem
} 
} At 05:52 PM 11/12/2008, you wrote:
} > > 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.
} 
} -pingboost 2 uses alarm(), -pingboost 1 uses select()

alarm() or ualarm() ?


_______________________________________________
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