From 092eb1b1173b7a4fb655e1a84f42a77019d60fce Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 4 Feb 2026 22:42:58 -0600 Subject: [PATCH] Enable SDL3 fast parameter checks --- app/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index aae900f5..ab404ec5 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -691,6 +691,10 @@ int main(int argc, char *argv[]) SDL_SetHint(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, "0"); #endif + // Enable fast parameter checks on SDL 3.4.0+. We don't abuse the API by passing + // incorrect objects, so we don't need additional expensive parameter checks. + SDL_SetHint("SDL_INVALID_PARAM_CHECKS", "1"); + QGuiApplication app(argc, argv); #ifdef Q_OS_UNIX