private static void updateFrameCounter() { int frameCount = FrameCounter.GetFPS(); if (frameCount != -1) { FPS = frameCount; } }
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(); }