protected override void Draw(GameTime gameTime) { float elapsed = (float)gameTime.ElapsedRealTime.TotalSeconds; float fps = 1 / elapsed; deltaFPSTime += elapsed; if (deltaFPSTime > 1) { Window.Title = "Soccer Engine [" + (int)fps + " FPS]"; deltaFPSTime -= 1; } this.Window.Title = "Soccer Engine [" + (int)fps + " FPS]"; GraphicsDevice.Clear(Color.CornflowerBlue); if (Match != null) { Match.Draw(gameTime, camera); } if (Player != null) { Player.Draw(gameTime, camera); } base.Draw(gameTime); }