[cairo] cairo / xlib not updating window content
jp_bruyere at hotmail.com
Thu Aug 9 15:08:44 UTC 2018
I'm currently testing performances with cairo, and I've just completed
the xlib backend tests. I've try several options to get rid of the
flickering, and I end up with very simple loop giving perfect results.
Two things are important:
- 1: create and destroy context for each frame.
- 2: call XSync (dsp, ...) with true or false for events dropping.
I've tried to call XSync before context creation, just after, before
destroying it and after, and all this gave good results without flushing
cairo surface nor using push/pop grouping.
-latest cairo-1.15.13 from git://git.cairographics.org/git/cairo
-mesa=18.1.0-devel from https://anongit.freedesktop.org/git/mesa/mesa.git
-X11=1:7.7+19 (from debian-10)
On 29/07/18 16:23, Pavel Petrovic wrote:
> for records, also adding a solution from Uli Schlachter with a similar
> surface that is painted to real surface
> after each drawing, which may be more efficient than push/pop group (?):
> thx, p.
More information about the cairo