Out of curiousity I looked at the raylib source to see what they do. This looks like a pretty sensible implementation that fixes what you're hitting. Seems like Sleep() is pretty off: https://github.com/raysan5/raylib/blob/master/src/rcore.c#L4954
Out of curiousity I looked at the raylib source to see what they do. This looks like a pretty sensible implementation that fixes what you're hitting. Seems like Sleep() is pretty off: https://github.com/raysan5/raylib/blob/master/src/rcore.c#L4954