Weird timing issue with Thread.sleep

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Aug 3 12:21:09 PDT 2011


On 8/3/11, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
>     if ((t - t_prev).usecs > (1_000_000.0 / FPS))
>     {
>         t_prev = t;
>         DrawGLScene();
>     }
>
>     SwapBuffers(hDC);

My mistake here, SwapBuffers belongs inside the if body, there's an
unrelated keyboard bug that made me push it there but I've found
what's causing it. Anyway this is offtopic.


More information about the Digitalmars-d-learn mailing list