summaryrefslogtreecommitdiff
path: root/chickadee
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-12-15 17:59:09 -0500
committerDavid Thompson <dthompson2@worcester.edu>2020-12-15 17:59:09 -0500
commit8726cc42e3e7e5e6f34f7328898e35ed207bfb08 (patch)
treef2599a60f404b086c1054befa07106c3f6d1320d /chickadee
parent11cf5c63610e8bb858fa21ecea37196d9c8f17e4 (diff)
Switch to high resolution timer.
Diffstat (limited to 'chickadee')
-rw-r--r--chickadee/game-loop.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/game-loop.scm b/chickadee/game-loop.scm
index 09f8a7b..6a14fab 100644
--- a/chickadee/game-loop.scm
+++ b/chickadee/game-loop.scm
@@ -58,7 +58,7 @@
(define* (run-game* #:key update render time error
(update-hz 60))
- (let ((timestep (round (/ 1000 update-hz))))
+ (let ((timestep (/ 1.0 update-hz)))
(call-with-prompt game-loop-prompt-tag
(lambda ()
;; Catch SIGINT and kill the loop.