twn_util.c: show profiles in milliseconds when appropriate, don't include time taken for profile internals

This commit is contained in:
veclavtalica committed 2025-01-26 01:42:12 +03:00
1 parent dd158dee01
commit 16bd49b42e
2 files changed
+45 -21

No files matched your search

+4
View File
@@ -214,7 +214,11 @@ static void main_loop(void) {
if (ctx.window_size_has_changed)
update_viewport();
input_state_update(&ctx.input);
profile_start("game tick");
game_object_tick();
profile_end("game tick");
input_state_update_postframe(&ctx.input);
/* TODO: make it works when ctx.ticks_per_second != 60 */