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)
{
}
});
}
}