can anyone tell me the most efective way to regulate speed in QB4.5?
I find it kind of dificult, since all computers are different speeds
I've been using this routine up until now:
thetime& = TIMER
sec& = sec& + 1
LOOP until TIMER => thetime& + 1
and this gets the amount of loops the CPU can get in one second
and stores it in sec&
and make a FOR NEXT loop:
FOR i& = 1 to sec& / RoomSpeed
to interupt the play of the game
this works fine on most computers, but it's really fast on some others
is there a better way to get processor independence?