Example #1
0
        public RenderingTest()
        {
            Button run = new Button ("Run Timing Test");
            PackStart (run);

            var st = new DrawingTest ();
            PackStart (st);

            run.Clicked += delegate {
                run.Sensitive = false;
                st.StartTest ();
            };

            st.TestFinished += delegate {
                run.Sensitive = true;
                string results = string.Format ("Draw: {0} FPS\nBitmap: {1} FPS\nVector image: {2}",
                     st.DrawFPS, st.BitmapFPS, st.ImageFPS);
                Console.WriteLine (results);
            };
        }
Example #2
0
        public RenderingTest()
        {
            Button run = new Button("Run Timing Test");

            PackStart(run);

            var st = new DrawingTest();

            PackStart(st);

            run.Clicked += delegate {
                run.Sensitive = false;
                st.StartTest();
            };

            st.TestFinished += delegate {
                run.Sensitive = true;
                string results = string.Format("Draw: {0} FPS\nBitmap: {1} FPS\nVector image: {2}",
                                               st.DrawFPS, st.BitmapFPS, st.ImageFPS);
                Console.WriteLine(results);
            };
        }