Skip to content

Commit

Permalink
Disable poll sentinels as a workaround for #13
Browse files Browse the repository at this point in the history
  • Loading branch information
capehill committed Feb 10, 2022
1 parent 67a71d8 commit 8358fb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/amigaos4/SDL_os4video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8358fb1

Please sign in to comment.