From 1119d07ef67b5cdf9e4f33a23f4183bd320be973 Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Fri, 28 Dec 2018 21:42:10 -0500 Subject: [PATCH] Documented sdl_iteration --- src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 053f8b1..0c321a7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -128,12 +128,15 @@ int main(int argc, char** argv) bool sdl_mouse_l = false; bool sdl_mouse_r = false; + // The sdl_iteration counter is incremented every frame. It should never + // be used for timing purposes, use SDL_GetTicks for that. + + unsigned long long sdl_iteration = 0; + // Enter the main loop. bool sdl_running = true; - unsigned long long sdl_iteration = 0; - while (sdl_running) { // Remember the time at the start of the frame. At the end of the