예제 #1
0
        protected override void LoadComplete()
        {
            base.LoadComplete();

            PerformanceOverlay performanceOverlay;

            LoadComponentAsync(performanceOverlay = new PerformanceOverlay(Host.Threads.Reverse())
            {
                Margin       = new MarginPadding(5),
                Direction    = FillDirection.Vertical,
                Spacing      = new Vector2(10, 10),
                AutoSizeAxes = Axes.Both,
                Alpha        = 0,
                Anchor       = Anchor.BottomRight,
                Origin       = Anchor.BottomRight,
                Depth        = float.MinValue
            }, AddInternal);

            FrameStatistics.BindValueChanged(e => performanceOverlay.State = e.NewValue, true);
        }