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

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

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 */