Ok, I don't know if everybody already knows this, or doesn't need but I decided to post it anyway. Ok this uses the timer() function as IanM adviced me to do. I couldn't find any example from his web site (Don't know why. Maybe I'm just stupid

) wich propaply contains this same. This should do the thing, thought I'm not 100000000% sure.

You can try it by putting thousand lines of "print"s in the source“and noticing that it still runs at the same speed. Or then if you have older computer then try with it. Please post if you notice any bugs! And if it works, post that too! THANX!!! Hope this helps you...
make matrix 1,1000,1000,20,20
randomize matrix 1,50
update matrix 1
make object sphere 1,10
spd#=1
a#=0
st#=timer()
loppu#=0
do
alku#=timer()-st#
if upkey()=1 then move object 1,spd#/10
if downkey()=1 then move object 1,-spd#/10
if leftkey()=1 then a#=a#-spd#/10 ; yrotate object 1,a#
if rightkey()=1 then a#=a#+spd#/10 ; yrotate object 1,a#
set cursor 0,0
print spd#
x#=object position x(1)
z#=object position z(1)
y#=get ground height(1,x#,z#)+4
position object 1,x#,y#,z#
angle#=object angle y(1)
set camera to follow x#,y#,z#,angle#,50,y#+20,20,0
loppu#=timer()-st#
if alku#=loppu#
else
spd#=loppu#-alku#
endif
loop
Current project: Dodge Viper Car Game (Not named yet) Other car models are going to be included soon