XRenderComposite Tie To Vsync

Ismael Luceno ismael at iodev.co.uk
Wed Sep 22 14:45:55 UTC 2021


On 22/Sep/2021 16:41, Ismael Luceno wrote:
> On 22/Sep/2021 03:18, Ryan McClue wrote:
> > I'm rendering with XRender:
> > XRenderComposite(display, PictOpSrc, src_picwant, dst_pict, 0, 0, 0, 0, 0, 0, window_width, window_height);
> > I want this to sync with the monitor's VBLANK, i.e. vsync.
> > How can this be achieved?
> 
> AFAIK XRender can't do vsync. You may want to use OpenGL for
> everything, or even just for the presentation step in order to do
> the vsync...

You may also want to try the XSync extension, but it never worked
properly for me (might have been my fault though), so in practice
you might need a fallback.


More information about the xorg-devel mailing list