update tracy from 11.0 to 13.1 and fix build with tracy enabled

This commit is contained in:
Sven Balzer
2026-05-01 18:24:04 +02:00
parent 7fa5294e02
commit 2adf75973a
304 changed files with 20579 additions and 170182 deletions
+3 -3
View File
@@ -94,7 +94,7 @@ static mat4x4 inverse_view_matrix;
static mat4x4 projection_matrix;
static mat4x4 inverse_projection_matrix;
static SDL_Time time;
static SDL_Time current_time;
static bool enable_time_tints = true;
static bool use_actual_time = true;
@@ -2350,10 +2350,10 @@ static void process_events() {
static void update_state() {
ZoneScopedN("update_state");
SDL_GetCurrentTime(&time);
SDL_GetCurrentTime(&current_time);
if (use_actual_time)
SDL_TimeToDateTime(time, &calendar_time, true);
SDL_TimeToDateTime(current_time, &calendar_time, true);
calendar_time.minute += calendar_time.second >= 0 ? calendar_time.second / 60 : calendar_time.second / 60 - 1;
calendar_time.hour += calendar_time.minute >= 0 ? calendar_time.minute / 60 : calendar_time.minute / 60 - 1;