I decided to created a log and output the time since each update into a file... if the game loop was working right, the time time between each frame should be the same right? well there were slightly different:(here is just some of the times)
I decided to created a log and output the time since each update into a file... if the game loop was working right, the time time between each frame should be the same right? well there were slightly different:(here is just some of the times)
The actual time between frames?
They will generally be close as long as nothing is moving around on your screen, and as long as you are not writing times to a file every frame.
Print to the debug console—it is still laggy but less so than writing to a file.
Also, waiting for v-sync can cause different delays between frames.
L. Spiro
ah okay, I'm not gunna bother with the code anymore, the game loop and timing are pretty precise ..gunna go try it on other computers to be sure its not just mine... or I'll just have to play with Chrome open all the time! thanks for the help guys, Ill probly be back when it doesnt work