Fixed bug 3902 - Add a specific KMSDRM hint for low latency video

This commit is contained in:
Brandon Schaefer
2017-10-26 16:37:20 -07:00
parent f24c6672a7
commit 2ac567b715
4 changed files with 28 additions and 4 deletions

View File

@@ -797,6 +797,16 @@ extern "C" {
*/
#define SDL_HINT_RPI_VIDEO_LAYER "SDL_RPI_VIDEO_LAYER"
/**
* \brief Tell SDL the KMS/DRM video driver that we want double buffer only.
*
* By default KMS/DRM will use a triple buffer solution that wastes no CPU
* time on waiting for vsync after issuing a flip, but introduces a frame of
* latency. Waiting for vsync immediately after issuing a flip on the other
* hand is recommended for cases where low latency is an important factor.
*/
#define SDL_HINT_KMSDRM_DOUBLE_BUFFER "SDL_KMSDRM_DOUBLE_BUFFER"
/**
* \brief A variable controlling what driver to use for OpenGL ES contexts.
*