title: C++/opengl application running smoother with debugger attached
body: <p>Have you experienced a situation, where C++ opengl application is running faster and smoother when executed from visual studio? When executed normally, without debugger, I get lower framerate, 50 instead of 80, and a strange lagging, where fps is diving to about 25 frames/sec every 20-30th frame. Is there a way to fix this?</p>
  
  <p><strong>Edit</strong>:
  Also we are using quite many display lists (created with glNewList). And increasing the number of display lists seem to increase lagging. </p>
  
  <p><strong>Edit</strong>:
  The problem seems to be caused by page faults. Adjusting process working set with SetProcessWorkingSetSizeEx() doesn't help.</p>
  
  <p><strong>Edit</strong>:
  With some large models the problem is easy to spot with procexp-utility's GPU-memory usage. Memory usage is very unstable when there are many glCallList-calls per frame. No new geometry is added, no textures loaded, but gpu-memory-allocation fluctuates +-20 Mbytes. After a while it becomes even worse, and may allocate something like 150Mb in one go.</p>