void IslandControl::runSimulation() { while(runOneFrame()) { wait(1); } deathCounters[currentDeath] += 1; }
void Application::run() { initialize(); setupScene(); Ogre::Timer timer; timer.reset(); mRunning = true; while (mRunning) { const Ogre::Real delta= timer.getMicroseconds() * static_cast<Ogre::Real>(0.000001f); timer.reset(); runOneFrame(delta); } finalize(); }