title: Why does simple glfw program eat all the available cpu even though progam is idle (according to process explorer)?
body: <p>I have a very simple game loop using GLFW as follows (windows x64 Release mode)</p>
  
  <p>I would expect the program to execute very rapidly, however it seems my delta as computed below is always 16.667ms which would appear that glfw is somehow limiting the speed of my main loop . This is not a problem as I dont care about getting more than 60hz.  However process explorer and windows task manager report that my program is using most of the cpu core .</p>
  
  <p>Specifically eat seems that glfwSwapBuffers() eats a lot of cpu, even though I am drawing nothing.   Removing that call drops cpu usage to 0.5%.  </p>
  
  <p>Incidentally my Sleep function is almost never called because the delta is always near exactly 16.6ms.</p>
  
  <pre><code>main ()
  {
      double prevTime = glfwGetTime();
      //init glfw ..
      while(!glfwWindowShouldClose(window)) 
      {
          double time0=glfwGetTime();
          double delta = time0- prevTime;
  
          if (delta &gt;= g_FrameInterval)
          {
              glfwPollEvents();
              prevTime= time0;
              glfwSwapBuffers(window);
          }
          else 
          {
              Sleep(10);
          }
      }
  }
  </code></pre>