예제 #1
0
        public MGLStatisticsSource( MGLDriver driver )
            : base("Video Driver")
        {
            this.Driver = driver;

            this.Frames = new Counter( "Frames", "The number of frames rendered." );
            this.SkippedFrames = new Counter( "Skipped Frames", "The number of frames skipped due to frame skipping." );
            this.DisplayLists = new Counter( "Display Lists", "The number of display lists processed." );
            this.AbortedDisplayLists = new Counter( "Aborted Lists", "The number of display lists aborted by the game." );

            this.RegisterCounter( this.Frames );
            this.RegisterCounter( this.SkippedFrames );
            this.RegisterCounter( this.DisplayLists );
            this.RegisterCounter( this.AbortedDisplayLists );
        }
예제 #2
0
 /// <summary>
 /// Register a counter.
 /// </summary>
 /// <param name="counter">The <see cref="Counter"/> instance to register.</param>
 protected void RegisterCounter( Counter counter )
 {
     Debug.Assert( counter != null );
     _counters.Add( counter );
 }