Esempio n. 1
0
        public void UpdateText(GameTime gameTime)
        {
            if (_counter == null)
                _counter = new FPSCounter(gameTime);

            base.UpdateText(
                "FPS: " + _counter.FPS +
                "\nDraw time (in ms): " + _counter.DrawTime +
                "\nX: " + Player.X +
                "\nY: " + Player.Y +
                "\nZ: " + Player.Z +
                "\nPitch: " + Player.Pitch +
                "\nYaw: " + Player.Yaw +
                "\nRenderQueue: " + RenderFIFO.Count);
        }
Esempio n. 2
0
        public void UpdateText(GameTime gameTime)
        {
            if (_counter == null)
            {
                _counter = new FPSCounter(gameTime);
            }

            base.UpdateText(
                "FPS: " + _counter.FPS +
                "\nDraw time (in ms): " + _counter.DrawTime +
                "\nX: " + Player.X +
                "\nY: " + Player.Y +
                "\nZ: " + Player.Z +
                "\nPitch: " + Player.Pitch +
                "\nYaw: " + Player.Yaw +
                "\nRenderQueue: " + RenderFIFO.Count);
        }