I was wondering would I still need to use a basic game loop for this particular operation?
views:
82answers:
3
+3
A:
No, just use CreateWaitableTimer, SetWaitableTimer, and then use MsgWaitForMultipleObjects instead of GetMessage or PeekMessage in your event dispatch loop (typically in WinMain).
Ben Voigt
2010-03-08 16:28:05
+3
A:
You could create a timer and perform that action on WM_TIMER message handling or on timer proc function you specify when creating the timer.
Cătălin Pitiș
2010-03-08 16:28:28
+1
A:
You can implement timers more generally and portably by using the Boost Asio library.
Here's an example of creating an asynchronous timer.
Peter Alexander
2010-03-08 16:52:45