From 4359a9c3776d1153e4098370787d553198195e67 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sat, 31 Aug 2024 14:59:15 +0200 Subject: [PATCH] level: benchmark entire level load --- src/game/level.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/level.c b/src/game/level.c index 0af43d72e..c0cc098bd 100644 --- a/src/game/level.c +++ b/src/game/level.c @@ -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 @@ -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; }