
How can i make a smooth animation?
In my game sprites move with faltering
Hoc can i fix it...
I use QueryPerformanceQounter...
Visual C++/DirectDraw 7

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)
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
March 07, 2000 12:53 PM
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement