Timers

Started by
3 comments, last by Colin Jeanne 18 years, 3 months ago
This is a question on a past exam. Can anyone help me find out the answer? which of the following approaches should be used to keep a game running at 30 frames per second and why? 1/ set up a time object and trap WM_TIMER events in the applications WinProc. 2/ Use a function such as GetTickCount() to read the number of milliseconds from a hardware clock that have elapsed since the system was started.
Advertisement
the answer is 2
thanks, but that hasn't taught me much, can you tell me why the answer is 2?
I think you might want to avoid the windows messanging system as much as possible.
WM_TIMER messages are not that reliable since they are put on the backburner in favor of other messages.

This topic is closed to new replies.

Advertisement