void SAppBase::doMainLoopUpdate() { STEPMARK(mainLoopStep(), "Level Update"); m_levels.flush(); for (LevelList::iterator i = m_levels.begin(); i != m_levels.end(); ++i) { (*i)->update(); } }
void Application::mainLoop() { const ptime currentTime = microsec_clock::local_time(); mLastTimeErisPollStart = currentTime; mLastTimeErisPollEnd = currentTime; mLastTimeInputProcessingStart = currentTime; mLastTimeInputProcessingEnd = currentTime; mLastTimeMainLoopStepEnded = currentTime; DesiredFpsListener desiredFpsListener; while (mShouldQuit == false) { mainLoopStep(desiredFpsListener.getMicrosecondsPerFrame()); } }