From 52a1749b2a20c9b4edffb45fc78977f9980e55b6 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 11 Mar 2012 00:59:35 +0200 Subject: [PATCH] flip before vsync should be better, in theory at least, as registers are latched on VFP, before VSYNC irq. --- src/video/omapdss/osdl_video.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/video/omapdss/osdl_video.c b/src/video/omapdss/osdl_video.c index fc5e667..d1deaa9 100644 --- a/src/video/omapdss/osdl_video.c +++ b/src/video/omapdss/osdl_video.c @@ -370,13 +370,17 @@ void *osdl_video_set_mode(struct SDL_PrivateVideoData *pdata, void *osdl_video_flip(struct SDL_PrivateVideoData *pdata) { + void *ret; + if (pdata->fbdev == NULL) return NULL; + ret = vout_fbdev_flip(pdata->fbdev); + if (pdata->cfg_force_vsync) vout_fbdev_wait_vsync(pdata->fbdev); - return vout_fbdev_flip(pdata->fbdev); + return ret; } void osdl_video_finish(struct SDL_PrivateVideoData *pdata) -- 2.39.5