enable vsync synchronization
This commit is contained in:
parent
5390c2c57d
commit
c377d27cb2
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue