Apologies if I seem to be conducting a conversation with myself here but I would welcome some input from others, especially if they could test this out on other hardware.
----- Original Message -----
Sent: Friday, May 30, 2003 10:45 PM
Subject: Re: [ql-users] QL S*Basic : Time wait routine.
 
Not going to help, I'm afraid.  Simon's TIMER_FRAMES_BAS indicates that QL2K has a frame-rate of about 24 here. It should be 50!
 
TIMER_FRAMES_BAS is essentially as follows:
 
LRESPR timing_code
100 REMark QL Timer routines - frame counter
110 REMark for QL World DIY Toolkit May 1989
120 T_ON : t=DATE
130 REPeat poll : IF DATE>t : EXIT poll
140 T_START : t=t+1
150 REPeat poll : IF DATE>t : EXIT poll
160 T_STOP
170 PRINT T_COUNT;" frames per second."
As stated above, on QL2K this produces a count of 24 frames/sec. 
 
However, if I insert a PAUSE 1 instruction within the loop at line 150 it produces a (?correct) count of about 50! Why?  Presumably, something about the way QL2K handles the frame counter and prevents it from updating.
 
If anyone is willing to test this elsewhere I can forward a copy of the relevant section of DIY Toolkit as supplied to me by Rich Mellor, although the whole package is available at http://romblon.dbs.informatik.uni-muenchen.de/~krojer/ql/diytk.zip.
 
Regards
 
Stephen
 

---
--
Outgoing mail is probably Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.484 / Virus Database: 282 - Release Date: 27/05/2003

Reply via email to