public bool Draw(float ellapsedTime) { if (_drawBatch == null) { return(false); } var drawParameters = new UiViewDrawParameters() { DrawBatch = _drawBatch, Opacity = 1, Transition = 0, EllapsedTime = ellapsedTime }; GraphicsDevice.Clear(MainView.BackgroundColor); _drawBatch.Reset(); MainView.ViewDraw(ref drawParameters); _drawBatch.Flush(); PerformanceProfiler.Instance.Draw(_drawBatch); _drawBatch.Flush(); return(true); }