04-07-2005, 06:19 AM
hi
im working on coding a project called lynns legacy as some of you know.
well, there have ben many issues about the timing of the prog, and i am starting to seriously consider the fact that the timer statement in FB is seriously flawed.
http://members.aol.com/rubentbstk/nxtll.rar
this is the latest build of the engine. everything runs smooth, perfectly on my comp. but on josiahs, it blazes out of control.
after coming up with several tests, i finally came up with this addition to the code: (keep in mind "delay#" is set to equal TIMER on the start of every loop)
Now, "? Timer" should increment once a second on EVERY computer. but he said that the readout was blazing faster than he can read. this just doesn't make sense to me. Also, inc# reads as 1, meaning the loop was skipped. this makes no sense considering i sent him this code:
and it functioned correctly.
could you please try to run it and let me know how fast the PRINT TIMER goes? thanks...
im working on coding a project called lynns legacy as some of you know.
well, there have ben many issues about the timing of the prog, and i am starting to seriously consider the fact that the timer statement in FB is seriously flawed.
http://members.aol.com/rubentbstk/nxtll.rar
this is the latest build of the engine. everything runs smooth, perfectly on my comp. but on josiahs, it blazes out of control.
after coming up with several tests, i finally came up with this addition to the code: (keep in mind "delay#" is set to equal TIMER on the start of every loop)
Code:
Do: inc# +=1: Loop Until Timer - delay# >= .008
? inc#
inc# = 0
? delay#
? Timer
? Date$
? time$
Now, "? Timer" should increment once a second on EVERY computer. but he said that the readout was blazing faster than he can read. this just doesn't make sense to me. Also, inc# reads as 1, meaning the loop was skipped. this makes no sense considering i sent him this code:
Code:
Screen 13
Do
p# = Timer
Locate 1:? Timer
? p#
Do:empcyc# += 1:Loop Until Timer - p# > .050
? empcyc#
empcyc# = 0
Loop Until MultiKey(1)
and it functioned correctly.
could you please try to run it and let me know how fast the PRINT TIMER goes? thanks...