enable vsync synchronization

This commit is contained in:
nek0 2020-05-17 17:27:18 +02:00
parent 5390c2c57d
commit c377d27cb2
1 changed files with 3 additions and 0 deletions

View File

@ -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