On Wed, Aug 04, 2004 at 05:30:49PM -0000, harry_dodgson wrote:
> Hi,
>
> Is there an easy way to get a fast stable timer?
> Right now I time everything in my games on the
> 1/2 second timer. I do all computing at high
> speed and drop it to slow speed for busy-wait loops
> to save a little power. I tried using HALT, but the
> 1/2 second response is too slow.
A long time ago when I wrote Alienfighter I solved this problem by doing
a speed calibration at the start of the program. That way I somehow got
a stable framerate in RC clock mode. Don't ask me about details, too much
time has passed, but you can still get the source code at my homepage
under <http://soeren.informationstheater.de/vm/alienfighter.html>.
Soeren