title: Sleep(1) and SDL_Delay(1) takes 15 ms
body: <p>I am writing a C++/SDL/OpenGL application, and I have had the most peculiar bug. The game seemed to be working fine with a simple variable timestep. But then the FPS started behaving strangely. I figured out that both Sleep(1) and SDL_Delay(1) take 15 ms to complete.</p>
  <p>Any input into those functions between 0-15 takes 15ms to complete, locking FPS at about 64. If I set it to 16, it takes 30 MS O.O</p>
  <p>My loop looks like this:</p>
  <pre><code>while (1){
      GLuint t = SDL_GetTicks();
      Sleep(1); //or SDL_Delay(1)
      cout &lt;&lt; SDL_GetTicks() - t &lt;&lt; endl; //outputs 15
  }
  </code></pre>
  <p>It will very rarely take 1ms as it is supposed to, but the majority of the time it takes 15ms.</p>
  <p>My OS is windows 8.1. CPU is an intel i7. I am using SDL2.</p>