[Ask for your advice] The relation between WPF memory size and SharpGL rendering performance.

Sep 5, 2013 at 9:28 AM
Edited Sep 6, 2013 at 7:15 AM
Hi,
I have got this sample at SharpGl home page and I have modified a source code of the sample such as below.
(category: SOURCE CODE => SharpGL => download click)
namespace TwoDSample
{
   /// <summary>
   /// Interaction logic for MainWindow.xaml
   /// </summary>
   public partial class MainWindow : Window
   {
      //Add source code
      public List<string> Temps = new List<string> ( );

      public MainWindow ( )
      {
         InitializeComponent ( );
         openGLControl1.DrawFPS = true;
            
         //Add source code
         for ( int i = 0 ; i < 100000000 ; i++ )
         {
            string temp = @"Testing!! The relation between WPF memory size and SharpGL rendering performance. Testing!! The relation between WPF memory size and SharpGL rendering performance. Testing!! The relation between WPF memory size and SharpGL rendering performance.";
            Temps.Add ( temp );
         }

    } 
The rest is omitted

Result!!

Before(Original Source)
1) WPF program memory size: about 23Mb
2) SharpGL Rendering(Draw time): about 1.9ms

After(Modify Source)
1) WPF program memory size: about 550Mb
2) SharpGL Rendering(Draw time): about 206ms

I would like to know the reason that When Memory size is increasing in the WPF program, SharpGl rendering performance is decreasing.

I don't know, please help me. :(