void Step(int nFrames)
Schedule the watchdog's readings to be written out after a further run of frames.
virtual float Progress()
Report no progress, because the frame loop never finishes.
void Resume()
Write the watchdog's readings out now and disarm the scheduled write.
virtual HxStr Name() const
Report an empty title.
void Callback(long long nNowNs)
Fire every timer whose deadline has passed, then recompute the next deadline.
static void PumpTimers()
Drive the two periodic timers while the frame loop is blocked.
void UpdateCallbackTime()
Recompute the earliest of the two timer deadlines.
virtual ~MainLoop()
Drop the instance pointer and remove the poll callback.
MainLoop(int nInCharge, Sch::Scheduler *pWatchdog, GameManagerImpl *pGameManager)
Create the frame loop and take over the long-operation callbacks.
static void KeepAliveDraw()
Redraw the display during a long operation.
void Run()
Pump the frame loop until it stops.
MainLoop * g_pMainLoop
The single frame loop, or null before Globals::Init() and after the loop is destroyed.