From: notaz Date: Sat, 10 Mar 2012 22:59:35 +0000 (+0200) Subject: flip before vsync X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52a1749b2a20c9b4edffb45fc78977f9980e55b6;p=sdl_omap.git flip before vsync should be better, in theory at least, as registers are latched on VFP, before VSYNC irq. --- 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)