/// <summary>
 /// Constructor of FrameStatistics class
 /// </summary>
 internal FrameStatistics()
 {
     _currentFrame = new FrameDetail();
     _frameDetails = new FrameDetail[_historicLength];
     for (int i = 0; i < _historicLength; i++)
         _frameDetails[i] = new FrameDetail();
 }
 /// <summary>
 /// Resizes logs of frames statistics 
 /// </summary>
 private void Resize()
 {
     FrameDetail[] newDetails = new FrameDetail[_historicLength];
     int previousLength = _frameDetails.Length;
     for (int i = 0; i < _historicLength; i++)
     {
         if(i < previousLength)
             newDetails[i] = _frameDetails[i];
         else
             newDetails[i] = new FrameDetail();
     }
     _frameDetails = newDetails;
 }