コード例 #1
0
ファイル: LoopController.cs プロジェクト: swenyan/ldd-modder
        public LoopController(GLControl control)
        {
            Control = control;
            TargetRenderFrequency = 30;
            TargetUpdateFrequency = 60;
            RenderWatch           = new Stopwatch();
            UpdateWatch           = new Stopwatch();
            WindowHandle          = control.FindForm().Handle;

            RenderTimer2 = new System.Threading.Timer(OnRenderTick, null,
                                                      System.Threading.Timeout.Infinite, System.Threading.Timeout.Infinite);

            RenderTimer       = new System.Windows.Forms.Timer();
            RenderTimer.Tick += RenderTimer_Tick;
        }