protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (isStarting) { if (gdm != null) { // Frame buffer was created, so now we have a graphics device to create: gdm.InternalCreateDevice(this); } if (game != null) { game.DoStartup(); // Need to draw something to the back buffer and swap it, to avoid // having a black frame appear between the splash screen // and the game itself: TimeSpan target = gameLoop.TargetElapsedTime; if (!game.iOSFasterStartup) { updateGameTime.Update(target); game.Update(updateGameTime); } drawGameTime.Update(target); game.DoDraw(drawGameTime); // This will swap buffers } } }