diff options
Diffstat (limited to '2d/game-loop.scm')
-rw-r--r-- | 2d/game-loop.scm | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/2d/game-loop.scm b/2d/game-loop.scm index d5f1ed0..a0ce798 100644 --- a/2d/game-loop.scm +++ b/2d/game-loop.scm @@ -53,12 +53,6 @@ (define tick-interval (floor (/ 1000 target-fps))) ;;; -;;; Mutable state -;;; - -(define game-fps 0) - -;;; ;;; Event Handling ;;; @@ -118,6 +112,8 @@ ;;; Frames Per Second ;;; +(define game-fps 0) + (define accumulate-fps! (let* ((elapsed-time 0) (fps 0)) |