From 53c43a8f3480ea7652aefffde3294289f586cbf6 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 4 Feb 2025 01:04:34 +0300 Subject: [PATCH] various SDL hints to try out ! --- src/twn_loop.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/twn_loop.c b/src/twn_loop.c index f753408..52ead87 100644 --- a/src/twn_loop.c +++ b/src/twn_loop.c @@ -647,6 +647,11 @@ static bool initialize(void) { profile_end("opengl loading"); SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0"); + SDL_SetHint(SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4, "1"); + SDL_SetHint(SDL_HINT_WAVE_FACT_CHUNK, "ignorezero"); + SDL_SetHint(SDL_HINT_VIDEO_DOUBLE_BUFFER, "1"); + if (ctx.game.debug) + SDL_SetHint(SDL_HINT_SHUTDOWN_DBUS_ON_QUIT, "1"); /* TODO: investigate viability of detached thread driver and window creation, as it's the worst load time offender */ profile_start("window creation");