From 89c8462e9e075336133a06a1933ace210cfaa151 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 28 Mar 2026 20:46:03 -0500 Subject: [PATCH] Leave the video subsystem initialized on Windows It significantly reduces settings page load latency. --- app/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/main.cpp b/app/main.cpp index ce590de9..edd153d5 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -670,9 +670,13 @@ int main(int argc, char *argv[]) return -1; } -#ifdef STEAM_LINK +#if defined(STEAM_LINK) || defined(Q_OS_WIN32) // Steam Link requires that we initialize video before creating our // QGuiApplication in order to configure the framebuffer correctly. + // + // We keep the video subsystem initialized on Windows because it's + // much more costly to reinitialize than other platforms. It hurts + // the settings page transition performance significantly. if (SDL_InitSubSystem(SDL_INIT_VIDEO) != 0) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_InitSubSystem(SDL_INIT_VIDEO) failed: %s",