update FPS API
This commit is contained in:
parent
c000247b8c
commit
ae673e2d19
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue