CSPspEmu.Gui.Winforms.PspDisplayForm.PspDisplayTick C# (CSharp) Method

PspDisplayTick() private method

private PspDisplayTick ( ) : void
return void
        private void PspDisplayTick()
        {
            if (this.IsDisposed) return;

            if (this.EnableRefreshing)
            {
                Task.Run(() =>
                {
                    try
                    {
                        this.DoInvoke((Action)(() =>
                        {
                            UpdateTitle();
                            if (GLControl == null || !GLControl.Visible) return;
                            CommonGuiInput.SendControllerFrame();
                            if (GLControl != null)
                            {
                                // @TODO: Causes flickering and slowness in mono
                                //GLControl.Refresh();
                                GLControl.ReDraw();
                            }
                            //Refresh();
                        }));
                    }
                    catch (ObjectDisposedException)
                    {
                    }
                    catch (InvalidOperationException)
                    {
                    }
                });
            }
        }
PspDisplayForm