hi, i tested this out and it looks like some commands, i think the ones related to drawing, eat up a few milliseconds, in particular i found flip was the most noticable, also cls with text occasionally caused a small timing error.
Maybe if you give the timer job to a dll it would allow you to have this accuracy. Here is the code i used.
Maybe if you give the timer job to a dll it would allow you to have this accuracy. Here is the code i used.
Graphics3D 640,480,0,2 iniTime=MilliSecs() While Not KeyHit(1) tempTime=MilliSecs()-iniTime If MilliSecs()>=iniTime+1000 ;1 second test If once=0 once=1 Latency#=(MilliSecs()-iniTime)/1000.0 testTime=MilliSecs()-iniTime testFloat#=1000/1000.0 EndIf EndIf ;If once=1 Cls Text 0,0,"Latency="+Latency+" testFloat="+testFloat Text 0,12,"testTime="+testTime+" iniTime="+iniTime+" tempTime="+tempTime ;EndIf If once=1 Then Flip Wend