Im also having some weird issues with fps.
The following code works fine when i use rate 60 for example, but something is going wrong when i use rate 0.
It gives a fps value MUCH more greater than the monitor refresh rate.
Im trying to syncronize my code so it can run at the same speed regardless of the sync rate, by scaling all movements of objects.
This way it would go smooooooth, but at the same speed in which it was planned. But with this weird results im stuck:
rate = 0
sync on : sync rate rate
sync
TimIni = timer()
for i=1 to 1000
sync
cls
next i
TimEnd = timer()
AverageMilisec# = ((TimEnd - TimIni) * 1.0) / (i-1)
print "Average Millisec = ", AverageMilisec#
RealFPS# = (1000.0 / AverageMilisec#)
print "RealFPS: ", RealFPS#
sync
It gives to me something like 8000fps...
Maybe someone has some hint on this?
Thnx in advance