From 686d857985b9bae3fdb79c1f45c9326341711eab Mon Sep 17 00:00:00 2001 From: djonker Date: Thu, 26 Oct 2023 20:39:01 +0200 Subject: [PATCH] added FPS counter --- src/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 48e60de..3523748 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ /* By: houtworm +#+ */ /* +#+ */ /* Created: 2023/10/26 14:13:07 by houtworm #+# #+# */ -/* Updated: 2023/10/26 20:37:00 by houtworm ######## odam.nl */ +/* Updated: 2023/10/26 20:38:56 by houtworm ######## odam.nl */ /* */ /* ************************************************************************** */ @@ -24,10 +24,8 @@ void mainloop(void *param) ft_drawnextframe(vl); ft_putnbr(1 / vl->mlx->delta_time); ft_putendl(" FPS"); - ft_putendl(" "); if (!vl->img || (mlx_image_to_window(vl->mlx, vl->img, 0, 0) < 0)) ft_errorexit("image to window failed ", "mainloop", 1); - /*ft_putendl("frame");*/ } int main(int argc, char **argv)