Esempio n. 1
0
        private static void updateFrameCounter()
        {
            int frameCount = FrameCounter.GetFPS();

            if (frameCount != -1)
            {
                FPS = frameCount;
            }
        }
Esempio n. 2
0
        public static void Start(GraphicsDisplay cameraView)
        {
            FrameCounter.Init();
            MessageManager.Init();
            initGraphics(cameraView);
            initEnvironment();
            Thread graphicsThread = new Thread(new ThreadStart(update));

            graphicsThread.SetApartmentState(ApartmentState.STA);
            graphicsThread.Start();
        }