A snapshot of rendering statistics from GraphicsDevice.Metrics to be used for runtime debugging and profiling.
Esempio n. 1
0
        public void Present()
        {
            // We cannot present with a RT set on the device.
            if (_currentRenderTargetCount != 0)
            {
                throw new InvalidOperationException("Cannot call Present when a render target is active.");
            }

            _graphicsMetrics = new GraphicsMetrics();
            PlatformPresent();
        }
Esempio n. 2
0
 public void Present()
 {
     _graphicsMetrics = new GraphicsMetrics();
     PlatformPresent();
 }