From 576bd27e11ec70bdbd1b9a644d2e227b57586337 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Sun, 10 May 2026 00:28:14 -0400 Subject: i ain't splitting alla this up --- dc/dc.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'dc') diff --git a/dc/dc.c b/dc/dc.c index a3bfafe..acb1e74 100644 --- a/dc/dc.c +++ b/dc/dc.c @@ -14,10 +14,10 @@ int main(void) { - struct ty_creation_hints hints = { - .win_width = SCREEN_WIDTH, - .win_height = SCREEN_HEIGHT, - .win_title = "Demonchime", + struct ty_hints hints = { + .scr_width = SCREEN_WIDTH, + .scr_height = SCREEN_HEIGHT, + .game_title = "Demonchime", .ticrate = 30, }; ty_init(hints); @@ -30,6 +30,8 @@ int main(void) free(data); while (ty_is_game_running()) { + clock_t start = clock(); + ty_draw_clear(TY_COLOR_BLACK); for (int y = 0; y < SCREEN_HEIGHT; y += 16) { @@ -75,6 +77,8 @@ int main(void) ty_tick(); ty_sleep(1000 / hints.ticrate); + + ty_log_info("%g ms", (float)(clock() - start) / CLOCKS_PER_SEC); } ty_free_image(img); -- cgit v1.3-2-g0d8e