Re: How do I wait for vertical retrace?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Johan Walles wrote:
> Hi!
>
> I would like to wait for vertical retrace in an X application.  How
> can I do that?
>
> The point would be to avoid flicker in my app by using double
> buffering and update the on-screen image during vertical retrace.
>
> I've been trying to Google this without any luck so far.  Help!

You can use DRM's drm_wait_vblank ioctl, or OpenGL's GLX_SGI_video_sync
extension, to wait for vblank.  Neither of these work on all hardware. 
MythTV, for example, tries both before falling back to non-vblank-synced
timing methods.  Also, recent versions of at least the Intel driver
require an active, visible OpenGL drawable in order for the interrupt
supporting both these methods to fire at all -- this was evidently a
power-saving change.

-Doug

_______________________________________________
xorg mailing list
xorg@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/xorg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [X Forum]     [Intel Graphics]     [AMD Graphics]     [Nouveau Driver]     [XFree86]     [XFree86 Newbie]     [IETF Annouce]     [Security]     [Fontconfig]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Video for Linux]     [Linux RAID]

  Powered by Linux