From 0f0add2164f6b01f79d7ba486316262de614a89d Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 7 Oct 2013 23:34:03 -0400 Subject: Move game-fps variable. --- 2d/game-loop.scm | 8 ++------ 1 file 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 @@ -52,12 +52,6 @@ (define target-fps 60) (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)) -- cgit v1.2.3