From 8358fb1776643caeaefb7656383531d5833e28db Mon Sep 17 00:00:00 2001 From: capehill Date: Thu, 10 Feb 2022 21:32:10 +0200 Subject: [PATCH] Disable poll sentinels as a workaround for #13 --- src/video/amigaos4/SDL_os4video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/amigaos4/SDL_os4video.c b/src/video/amigaos4/SDL_os4video.c index c4541ee8895f4..41f1ced0529c8 100644 --- a/src/video/amigaos4/SDL_os4video.c +++ b/src/video/amigaos4/SDL_os4video.c @@ -537,6 +537,9 @@ OS4_VideoInit(_THIS) // We don't want SDL to change window setup in SDL_OnWindowFocusLost() SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0"); + // Poll sentinels added after SDL 2.0.14 cause increasing CPU load (TODO: fix) + SDL_SetHint(SDL_HINT_POLL_SENTINEL, "0"); + return 0; }