NScumm.Sky.Screen.WaitForTick C# (CSharp) Méthode

WaitForTick() private méthode

private WaitForTick ( ) : void
Résultat void
        private void WaitForTick()
        {
            var start = Environment.TickCount;
            var end = start + 20 - start % 20;
            int remain;

            //           Common::EventManager* eventMan = _system.getEventManager();
            //           Common::Event event;

            //while (true) {
            //           while (eventMan.pollEvent(event))
            //           ;

            start = Environment.TickCount;

            if (start >= end)
                return;

            remain = end - start;
            if (remain < 10)
            {
                ServiceLocator.Platform.Sleep(remain);
                return;
            }

            ServiceLocator.Platform.Sleep(10);
        }