From ae673e2d19bc156e3a7f6d2221ab20ff5c8af7bf Mon Sep 17 00:00:00 2001 From: Yann MAGNIN Date: Tue, 17 Jan 2023 22:05:09 +0100 Subject: [PATCH] update FPS API --- src/menu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/menu.c b/src/menu.c index 6858ae6..9dcfb85 100644 --- a/src/menu.c +++ b/src/menu.c @@ -214,7 +214,7 @@ void menu_title(void) uint32_t key_us = 0; exit = 1; - timer_fps_init(&fps); + timer_fps_init(&fps, 30); while (exit) { cache_us = timer_prof_exec({ @@ -229,7 +229,7 @@ void menu_title(void) }); render_us = timer_prof_exec({ dupdate(); }); - //timer_fps_sync(&fps, 30); + timer_fps_sync(&fps); key_us = timer_prof_exec({ while (keyvent_poll(&e)) { @@ -256,7 +256,7 @@ int menu_select(int max_level) exit = -1; cursor = 0; - timer_fps_init(&fps); + timer_fps_init(&fps, 30); while (exit < 0) { dclear(BG_COLOR); @@ -265,7 +265,7 @@ int menu_select(int max_level) menu_select_hud(&fps); dupdate(); - timer_fps_sync(&fps, 3); + timer_fps_sync(&fps); while (keyvent_poll(&e)) { if (e.type != VKEYEV_UP)