Quote Originally Posted by Traveler
Hi Damot,

Now for the important part, the reason the movement is so jerky is because your using GetTickCount not correctly (as you already guessed). In your code, 'Moveamount' will never reach a stable point. At one clock cylce it may be 2.1, the next cycle 3.4 or perhaps even 4. Adding a threshold should do the trick.
I think I replied too soon!. :-(

The little demo I uploaded there now works fine, nice and smooth, now using QueryPerformanceCounter() to calculate the speed it took to draw the last frame, so we know how much to move this time around.

But I modifed my game and it still "jerks" on an Athlon but NOT on my old Pentium. :-(

The whole point is to ensure that the game plays at the same speed regardless of he processor/graphics card.

I thought that's the technique to use?

You suggest a "threshold", but why would I need one for it to run smoothly on an Athlon, but not a slow machine? (I could understand it jerking occasionally on the old machine, but it doesn't!).

My head hurts.