Skip to content

Commit

Permalink
level: benchmark entire level load
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Aug 31, 2024
1 parent b14175b commit 4359a9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/level.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,7 @@ void Level_Load(int level_num)

bool Level_Initialise(int32_t level_num)
{
BENCHMARK *const benchmark = Benchmark_Start();
LOG_DEBUG("%d", level_num);

// loading a save can override it to false
Expand Down Expand Up @@ -1119,6 +1120,7 @@ bool Level_Initialise(int32_t level_num)
g_InvItemPickup2.string = g_GameFlow.levels[level_num].pickup2;

g_Camera.underwater = false;
Benchmark_End(benchmark, NULL);
return true;
}

Expand Down

0 comments on commit 4359a9c

Please sign in to comment.