예제 #1
0
파일: Game.cs 프로젝트: Jorgemagic/MonoGame
        public void Run()
        {
            _lastUpdate = DateTime.Now;

            // Get the Accelerometer going
            //Accelerometer.SetupAccelerometer(); // FIXME: Accelerometer breaks the applications with a random NullPointerException

            view.Run(FramesPerSecond / (FramesPerSecond * TargetElapsedTime.TotalSeconds));
        }
예제 #2
0
파일: Game.cs 프로젝트: noelb/monogame
        public void Run()
        {
            _lastUpdate = DateTime.Now;

            // Get the Accelerometer going
            Accelerometer.SetupAccelerometer();

            view.Run(FramesPerSecond / (FramesPerSecond * TargetElapsedTime.TotalSeconds));
        }
예제 #3
0
        public void Run()
        {
            _lastUpdate = DateTime.Now;

            // Get the Accelerometer going
            //TODO umcomment when the following bug is fixed
            // http://bugzilla.xamarin.com/show_bug.cgi?id=1084
            // Accelerometer currently seems to have a memory leak
            //Accelerometer.SetupAccelerometer();
            view.Run(FramesPerSecond / (FramesPerSecond * TargetElapsedTime.TotalSeconds));
        }