Microsoft.Xna.Framework.MacGamePlatform.StartRunLoop C# (CSharp) Method

StartRunLoop() public method

public StartRunLoop ( ) : void
return void
        public override void StartRunLoop()
        {
            _mainWindow.MakeKeyAndOrderFront(_mainWindow);
            ResetWindowBounds();
            _gameWindow.StartRunLoop(1 / Game.TargetElapsedTime.TotalSeconds);

            // This is a hack and it should go in MonoMacGameView.  Until that
            // is done we will set the SwapInterval ourselves
            // Using DisplayLink does not play nicely with background thread
            // loading.
            var graphicsDeviceManager = (GraphicsDeviceManager)Game.Services.GetService(typeof(IGraphicsDeviceManager));
            _gameWindow.OpenGLContext.SwapInterval = graphicsDeviceManager.SynchronizeWithVerticalRetrace;
        }