Commit 1c7b6575 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: fix poorly written time comparison in vsync handling

This only affected KMT mode, and only on certain system configurations.
parent 02eff8c8
......@@ -1832,8 +1832,7 @@ void videoShowFrame(int32_t w)
// TODO: use timing information to determine swap time and just busy loop ourselves for more timing control
if (swapTime < nextSwapTime)
windowsWaitForVBlank();
if (swapTime > nextSwapTime + swapInterval)
else if (swapTime - nextSwapTime >= swapInterval)
nextSwapTime += swapInterval;
nextSwapTime += swapInterval;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment