FrameRate.Start C# (CSharp) Method

Start() private method

private Start ( ) : void
return void
    private void Start()
    {
        TimeLeft = UpdateInterval;
    }

Usage Example

示例#1
0
        public void RunLoop()
        {
            if (Control == null)
            {
                throw new ArgumentException("Control cannot be null on loop start");
            }

            if (frameRate == null)
            {
                frameRate = new FrameRate();
            }

            frameRate.Start();
            while (NextFrame())
            {
                frameRate.StartFrame();
                if (PreProcess != null)
                {
                    PreProcess(this, new EventArgs());
                }

                if (ProcessFrame != null)
                {
                    ProcessFrame(this, new EventArgs());
                }

                if (PostProcess != null)
                {
                    PostProcess(this, new EventArgs());
                }
                frameRate.EndFrame();
            }
            frameRate.Stop();
        }
All Usage Examples Of FrameRate::Start