summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2018-04-09 22:28:41 +0200
committerRay <[email protected]>2018-04-09 22:28:41 +0200
commit54e24d905aabd0d084a924b66b8437428e436bf2 (patch)
treead568cf1af27491470d5d3624f735d37435a2d0f /src
parentcd616258c6875d422cf20899f0daf89ba1d8e84a (diff)
downloadraylib-54e24d905aabd0d084a924b66b8437428e436bf2.tar.gz
raylib-54e24d905aabd0d084a924b66b8437428e436bf2.zip
Init frame timming measure variables
Diffstat (limited to 'src')
-rw-r--r--src/core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 0265afd0..8392ac52 100644
--- a/src/core.c
+++ b/src/core.c
@@ -332,8 +332,10 @@ static char **dropFilesPath; // Store dropped files paths as stri
static int dropFilesCount = 0; // Count stored strings
#endif
-static double currentTime, previousTime; // Used to track timmings
-static double updateTime, drawTime; // Time measures for update and draw
+static double currentTime = 0.0; // Current time measure
+static double previousTime = 0.0; // Previous time measure
+static double updateTime = 0.0; // Time measure for frame update
+static double drawTime = 0.0; // Time measure for frame draw
static double frameTime = 0.0; // Time measure for one frame
static double targetTime = 0.0; // Desired time for one frame, if 0 not applied