mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Merge pull request #5564 from vanfanel/master
Add experimental way to make max_swapchain=2 work Rpi with GLES on dispmanx
This commit is contained in:
commit
628acf5296
@ -311,6 +311,15 @@ static bool gfx_ctx_vc_set_video_mode(void *data,
|
||||
frontend_driver_install_signal_handler();
|
||||
gfx_ctx_vc_set_swap_interval(&vc->egl, vc->egl.interval);
|
||||
|
||||
/* If we set this env variable, Broadcom's EGL implementation will block
|
||||
* on vsync with a double buffer when we call eglSwapBuffers. Less input lag! */
|
||||
if (video_info->max_swapchain_images <= 2)
|
||||
setenv("V3D_DOUBLE_BUFFER", "1", 1);
|
||||
else
|
||||
setenv("V3D_DOUBLE_BUFFER", "0", 1);
|
||||
|
||||
gfx_ctx_vc_set_swap_interval(&vc->egl, vc->egl.interval);
|
||||
|
||||
g_egl_inited = true;
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user