twn_timer.c: time limiter for game ticks
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#include "twn_util_c.h"
|
||||
#include "twn_game_object_c.h"
|
||||
#include "twn_textures_c.h"
|
||||
#include "system/twn_timer.h"
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <physfs.h>
|
||||
@ -216,7 +217,9 @@ static void main_loop(void) {
|
||||
input_state_update(&ctx.input);
|
||||
|
||||
profile_start("game tick");
|
||||
start_sanity_timer(2000);
|
||||
game_object_tick();
|
||||
end_sanity_timer();
|
||||
profile_end("game tick");
|
||||
|
||||
input_state_update_postframe(&ctx.input);
|
||||
|
Reference in New Issue
Block a user