From 6463914b0dc8136c453a1c163dd98f39e55e1c21 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 19 Mar 2020 19:04:46 +0100 Subject: Decent tier --- src/ft_key_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_key_loop.c') diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c index e0177e2..f44da13 100644 --- a/src/ft_key_loop.c +++ b/src/ft_key_loop.c @@ -80,7 +80,6 @@ int const float old_x = cl->plist.pos_x; clock_t begin_frame; - begin_frame = clock(); i = 0; while (i < 5 && cl->key_input[i] != -1 && cl->key_input[i] <= 5) { @@ -103,6 +102,7 @@ int } i++; } + begin_frame = clock(); ft_draw_scene(cl); ft_get_fps_count(clock() - begin_frame, cl); return (0); -- cgit v1.2.3