Using the form LET num=MCALLT(#ch%,event%,time%) for a limited timing within a loop something like this will demonstrate the problem. This is a much simplified version of the program - it's an animation viewer - main difference being that the loop is in a PROCedure in my program.
Code: Select all
event% = 255 : REM varying event% has no effect on the problem
time% = 5 : REM 5/50ths second
PRINT #0,"X ";
The PRINT "X "; is just a progress indicator to demonstrate the problem. Instead of a constant speed of printing the X'es, I get a sort of keyboard-repeat type of delay, where the first X appears, then there is a delay of about 5 to 7 seconds, after that each X appears smoothly every 5/50th second. Varying the event or time parameters has no effect.
Anyone else have experience of this? It's a weird little problem which has had me chasing my tail for several days now.