added FPS counter
This commit is contained in:
parent
e63eed3b92
commit
686d857985
@ -6,7 +6,7 @@
|
||||
/* By: houtworm <codam@houtworm.net> +#+ */
|
||||
/* +#+ */
|
||||
/* 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)
|
||||
|
Loading…
Reference in New Issue
Block a user