示例#1
0
文件: AppMain.cs 项目: uavos/jsw
        public static void Main(string[] args)
        {
            Initialize();

            while (loop)
            {
                timePassed  += (float)(timer.Milliseconds()) - previousTime;
                previousTime = (float)timer.Milliseconds();
                if (timePassed > (1000 / 60))                   //60Hz
                {
                    timePassed   = 0;
                    previousTime = 0;
                    timer.Reset();

                    SystemEvents.CheckEvents();
                    Update();
                    Render();
                }
            }
            Term();
        }