From c3e250da9a087b83ab9a33f298b6f8e443a7a419 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Tue, 6 Feb 2024 13:50:09 +0100 Subject: [PATCH] Update SDL3. --- application/platforms/application_sdl3.cpp | 3 +++ third_party/sdl3 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/application/platforms/application_sdl3.cpp b/application/platforms/application_sdl3.cpp index d13c48cd..2bf41e52 100644 --- a/application/platforms/application_sdl3.cpp +++ b/application/platforms/application_sdl3.cpp @@ -124,11 +124,14 @@ struct WSIPlatformSDL : GraniteWSIPlatform } #endif + Util::Timer tmp_timer; + tmp_timer.start(); if (SDL_Init(SDL_INIT_EVENTS | SDL_INIT_GAMEPAD | SDL_INIT_VIDEO) < 0) { LOGE("Failed to init SDL.\n"); return false; } + LOGI("SDL_Init took %.3f seconds.\n", tmp_timer.end()); SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1"); // Adding gamepad events will make main loop spin without waiting. diff --git a/third_party/sdl3 b/third_party/sdl3 index 649556be..451dc414 160000 --- a/third_party/sdl3 +++ b/third_party/sdl3 @@ -1 +1 @@ -Subproject commit 649556befa156201116a4f25089597463d0efd44 +Subproject commit 451dc414278dc7b19a997ef7a6d1acf1f951162d