public bool FrameRenderingQueued( FrameEventArgs evt )
{
for ( int i = 0; i < mWidgetDeathRow.Count; i++ )
{
mWidgetDeathRow[ i ] = null;
}
mWidgetDeathRow.Clear();
RenderTarget.FrameStatistics stats = mWindow.Statistics;
if ( IsFrameStatsVisible )
{
String s;
s = String.Format( "{0:#.##}", stats.LastFPS );
mFpsLabel.Caption = s;
if ( StatsPanel.OverlayElement.IsVisible )
{
List<String> values = new List<string>();
s = String.Format( "{0:#.##}", stats.AverageFPS );
values.Add( s );
s = String.Format( "{0:#.##}", stats.BestFPS );
values.Add( s );
s = String.Format( "{0:#.##}", stats.WorstFPS );
values.Add( s );
s = String.Format( "{0:#.##}", stats.TriangleCount );
values.Add( s );
s = String.Format( "{0:#.##}", stats.BatchCount );
values.Add( s );
StatsPanel.ParamValues = values;
}
}
return true;
}