示例#1
0
        private void Debugger_Tick(object sender, EventArgs e)
        {
            DateTimeManager.DebugThisFrame();

            TimeScaleManager.DebugThisFrame();

            if (Game.GameTime > fpsUpdateTimer)
            {
                currentFps     = Convert.ToInt32(Game.FPS);
                fpsUpdateTimer = Game.GameTime + 100;
            }

            Debug.DrawText(new GTA.Math.Vector2(0.49f, 0.03f), "FPS: " + currentFps.ToString("0"));
        }