// GameLoop private void GameLoop() { // Timer _time.BeginFrame(); // Begin Frame _states.BeginFrame(); _input.BeginFrame(); // Update Window _window.DispatchEvents(); // _states.CallBeginFrame(); // Update input _input.Update(); // Step int steps = _time.GetStepCount(); for (int i = 0; i < steps; i++) { Step(); } // Draw Draw(); }