sdl2-fps 0.0.0 → 0.0.1
raw patch · 3 files changed
+4/−4 lines, 3 files
Files
- library/SDL/FPS.hs +1/−1
- package.yaml +1/−1
- sdl2-fps.cabal +2/−2
library/SDL/FPS.hs view
@@ -32,7 +32,7 @@ let diff = (endTicks - startTicks) * fps' let ms = (msps - diff) `div` fps' when (msps > diff) $ SDL.delay (fromIntegral ms)- putStrLn $ show fps ++ " fps - delay " ++ show ms ++ " ms"+ putStrLn $ show fps ++ " fps - before delay " ++ show (endTicks - startTicks) ++ " ms" ++ " with expected max " ++ show (msps `div` fps') ++ " ms" where fps' = fromIntegral fps
package.yaml view
@@ -1,5 +1,5 @@ name: sdl2-fps-version: '0.0.0'+version: '0.0.1' github: jxv/sdl2-fps license: BSD3 category: Game
sdl2-fps.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 1b1172145c3bd3f8a5aa9cbf94273f179a01090a90c44ecac7785bd92767a004+-- hash: e573a8ac661cd4af6ad7206f6d3e274195a2ada8c525eb6182437c60ba6ebc2c name: sdl2-fps-version: 0.0.0+version: 0.0.1 synopsis: Run of the mill, frames per second timer implementation description: Run of the mill, frames per second timer implementation category: Game