Blitz (46/176)

From:Anton Reinauer
Date:10 Oct 2000 at 02:59:36
Subject:Re: Timer

On 09-Oct-00, Toby Zu˙dveld wrote:
> Hello Lukas
>
> On 06-Oct-00, you wrote:
>
>> I use commands ResetTimer and Timer.
>> Timer returns number of 50ths since machine starup.
>> Is it dependent on PAL/NTSC ?
>
> Yup. You can use NTSC (value.b=#NTSC#) to see which mode the machine
> is running in.

But you can force a screen into either NTSC or PAL, the timer (If I
remember correctly) will run at what the screen is running at. In Blitz
mode you have control, but in Amiga mode people can flip screens, so
you can't be exactly sure. I haven't found an easy way to tell which
mode it is running in, as the system only tells you what mode it boots
up in. I'd try to look in the screen tags- I couldn't find anything,
tell us if you find anything :) The CIA timers have the same problem
:/
Do some experimenting, and you'll see what I mean. I think using the
E-clock from the timer device you'll be ok as far as PAL/NTSC goes- but
it is less accurate under load than the V-Blank- problem is the V-Blank
changes under NTSC/PAL screen too.

Cya-Anton



Anton Reinauer <ants@paradise.net.nz>
UDP_Chat- an IRC-like test-bed for my UDP internet multi-player
game functions.
- About to start on shared lib version for several platforms.
http://homepages.paradise.net.nz/ants

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie