//---------------------------------------------------------------------------- void Application::UpdateLogic() { #ifndef MULTITHREADED // Update Input UpdateInput(); // Update time variable // Run the game logic if (!isPaused) Update(); // Render frame UpdateFrame(); // Update physics simulation UpdatePhysics(); // Update logic done after physics if (!isPaused) UpdateLate(); // Update sound system UpdateSound(); // Update delta time // Calculate FPS // Increment current frame variable TODO: removeme currentFrame++; #ifdef _DEBUG // Update Debug Console UpdateDebug(); #endif #endif }
// --------------------------------------------------------------------------- // SpendTime // --------------------------------------------------------------------------- void CControlPanel::SpendTime(const EventRecord &/*inMacEvent*/) { UInt32 theTick = ::TickCount(); if (theTick > _lastDraw + _drawInterval) { UpdateDebug(); _lastDraw = theTick; } }
void CTerraPlayerInput::Update() { UpdateDebug(); }