XRenderComposite Tie To Vsync

2021-09-22 Thread Ryan McClue
I'm rendering with XRender: XRenderComposite(display, PictOpSrc, src_pict, 0, 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? Thanks -- Ryan McClue, Sydney

XRender With Vsync

2021-09-22 Thread Ryan McClue
I'm rendering with XRender: XRenderComposite(display, PictOpSrc, src_pict, 0, 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? Thanks -- Ryan McClue, Sydney

Re: XRender With Vsync

2021-09-22 Thread Ryan McClue
window_width, window_height); } XFreeEventData(xlib_display, cookie); } break; } } I never receive any GenericEvent. Am I doing something wrong? -- Ryan McClue, Sydney ‐‐‐ Original Message ‐‐‐ On Thursday, September 23rd, 2021 at 3:33 AM, Kei

Re: XRender With Vsync

2021-09-24 Thread Ryan McClue
I have solved the problem. It seems that XCheckTypedWindowEvent() does not return a GenericEvent. I found https://github.com/gnif/LookingGlass and https://github.com/xfce-mirror/xfwm4 as some examples to go by. -- Ryan McClue, Sydney ‐‐‐ Original Message ‐‐‐ On Thursday, September