[cairo] Looking for some advices

Alexandre Bique bique.alexandre at gmail.com
Thu Aug 28 00:30:43 PDT 2014


Hi,

I'm using cairo on Linux to render to screen.

First I'd like to know the pros/cons of cairo's backends (xlib, xcb, gl).

Then I would also like to know how to avoid flickering? Right now I'm doing:

  cairo_push_group(cairo_);
  // drawing operations here, including calls to cairo_clip()
  cairo_pop_group_to_source(cairo_);
  cairo_paint(cairo_);
  cairo_surface_flush(cairo_get_target(cairo_));

But I found that it is slow to render. What should I do there?

Thanks a lot!
-- 
Alexandre Bique


More information about the cairo mailing list