title: What are the fastest GDI+ rendering settings?
body: <p>There is quite a lot of post about rendering high quality graphics, like this one</p>
  
  <p><a href="https://stackoverflow.com/questions/249587/high-quality-image-scaling-c-sharp">High Quality Image Scaling Library</a></p>
  
  <p>I need to render about 6k+ object (line and ellipse) in a graphics with GDI+, at a framerate of around 10fps. So I need the lowest quality property possible for my graphics.</p>
  
  <p>Here is what I have done :</p>
  
  <pre><code>public static class GraphicsExtensions
  {
      public static void ToHighQuality(this Graphics graphics)
      {
          graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
          graphics.CompositingQuality = CompositingQuality.HighQuality;
          graphics.SmoothingMode = SmoothingMode.HighQuality;
          graphics.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
          graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
      }
  
      public static void ToLowQuality(this Graphics graphics)
      {
          graphics.InterpolationMode = InterpolationMode.Low;
          graphics.CompositingQuality = CompositingQuality.HighSpeed;
          graphics.SmoothingMode = SmoothingMode.HighSpeed;
          graphics.TextRenderingHint = TextRenderingHint.SystemDefault;
          graphics.PixelOffsetMode = PixelOffsetMode.HighSpeed;
      }
  }
  </code></pre>
  
  <p>Did I forgot something, or is this the best possible extremum for the property of Graphics?<br>
  I'm drawing at 5fps (202ms/image) with the lower mode, and 3fps (330ms/image) with higher mode.<br>
  I don't feel there is a big difference, but I have reduce my performance problem to drawing only...</p>
  
  <p>Some Numbers :</p>
  
  <ul>
  <li>1650 call to <a href="http://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawline.aspx" rel="nofollow noreferrer">DrawLine</a></li>
  <li>6600 call to <a href="http://msdn.microsoft.com/en-us/library/system.drawing.graphics.fillellipse.aspx" rel="nofollow noreferrer">FillEllipse</a></li>
  </ul>