From c377d27cb2b8cf0d8ba54cfed6748d8c762c4c35 Mon Sep 17 00:00:00 2001 From: nek0 Date: Sun, 17 May 2020 17:27:18 +0200 Subject: [PATCH] enable vsync synchronization --- src/Main.hs | 3 +++ 1 file changed, 3 insertions(+) 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