From b1c77ff80ef3b886ce534e47702207b60683bdfe Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 12 Sep 2024 21:34:22 -0500 Subject: [PATCH] Disable SDL double buffering It was broken in SDL until recently and now that it works again, it causes stuttering. --- app/main.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/main.cpp b/app/main.cpp index 7f153b16..6a8f1104 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -490,12 +490,6 @@ int main(int argc, char *argv[]) // initializing the SDL video subsystem to have any effect. SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); - // For SDL backends that support it, use double buffering instead of triple buffering - // to save a frame of latency. This doesn't matter for MMAL or DRM renderers since they - // are drawing directly to the screen without involving SDL, but it may matter for other - // future KMSDRM platforms that use SDL for rendering. - SDL_SetHint(SDL_HINT_VIDEO_DOUBLE_BUFFER, "1"); - // We use MMAL to render on Raspberry Pi, so we do not require DRM master. SDL_SetHint("SDL_KMSDRM_REQUIRE_DRM_MASTER", "0");