예제 #1
0
파일: Game.cs 프로젝트: CazDev/2D-Game-exp
        void GEInvalidate()
        {
            while (GraphicsDrawing.Running)
            {
                //Refreshes graphics
                Canvas.Invalidate();
                TopMenu.Invalidate();

                //Reduces lag exponetially by synchronising events
                Application.DoEvents();
                Thread.Sleep(1);
            }
        }