Timers
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.
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
Popular Topics
Advertisement