How can i make a smooth animation?

Started by
1 comment, last by Pavel Krupets 24 years, 2 months ago
In my game sprites move with faltering Hoc can i fix it... I use QueryPerformanceQounter... Visual C++/DirectDraw 7
Advertisement
Try to use, for timing, the API function

DWORD timeGetTime(void);

it returns the time elapsed from Windows start in milliseconds (the precision is about 1ms)
(there are other function for adjust the precision but I cant recall...)

remember to link ''Winmm.lib'' (WindowsMultimedia library)
IpSeDiXiT
Do you want to know how to calculate the FPS or do you ask how to use the calculated FPS for synchronizing animations?

This topic is closed to new replies.

Advertisement