diff --git a/src/Main.hs b/src/Main.hs index de5c16f..cf1d9d0 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -54,6 +54,9 @@ main = do -- window should be a window, not fullscreen or so SDL.setWindowMode window SDL.Windowed + -- synchronize buffer swapping with monitor's vsync + SDL.swapInterval $= SDL.SynchronizedUpdates + -- show the window SDL.showWindow window