Disable SDL double buffering
It was broken in SDL until recently and now that it works again, it causes stuttering.
This commit is contained in:
parent
92ee4a3046
commit
b1c77ff80e
1 changed files with 0 additions and 6 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue