Skip to content

Commit

Permalink
#88 world time should start when application starts
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Nov 15, 2019
1 parent b5bb22a commit 7b266a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/world.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,14 +691,15 @@ ecs_world_t *ecs_init(void) {
world->should_match = false;

world->frame_start_time = (ecs_time_t){0, 0};
world->world_start_time = (ecs_time_t){0, 0};
ecs_os_get_time(&world->world_start_time);
world->target_fps = 0;
world->fps_sleep = 0;

world->frame_time_total = 0;
world->system_time_total = 0;
world->merge_time_total = 0;
world->frame_count_total = 0;
world->world_time_total = 0;

world->context = NULL;

Expand Down

0 comments on commit 7b266a6

Please sign in to comment.