[cairo] Performance problems in evince with ATI video cards

Carlos Garcia Campos carlosgc at gnome.org
Fri Aug 10 01:20:52 PDT 2007

Hi all, 

we have recently ported evince view to cairo, since poppler renders
pages into a cairo surface, we avoid conversions from
cairo_image_surface to GdkPixbuf by directly using the cairo_surface to
paint the page in the evince view. However, since such port to cairo, we
have received some complaints about the slowness of evince and the high
cpu usage. It seems that the problem is only reproducible with ATI video
cards (although, at least, one nvidia user has reported the bug too). 

The problem has been reported here:


and it seems to be related to this one:


The problem is not reproducible for me and I even don't know where the
problem actually is (cairo, xorg, ati driver, evince, ...), so it's
almost impossible to me fixing it. 

FWIW in evince I'm doing something like this:

cr = gdk_cairo_create (view->layout.bin_window);
cairo_translate (cr, overlap.x, overlap.y);
cairo_surface_set_device_offset (page_surface,                                                                       
                                                 overlap.x - real_page_area.x,                                                       
                                                 overlap.y - real_page_area.y);
cairo_set_source_surface (cr, page_surface, 0, 0);                                                                   
cairo_paint (cr);

Is there a workaround for the problem or any other thing I can try to
fix the problem? If we don't manage to fix this issue before GNOME 2.20
we'll probably have to revert cairo port and we wouldn't really like
it :-(

Carlos Garcia Campos
   elkalmail at yahoo.es
   carlosgc at gnome.org
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
Url : http://lists.cairographics.org/archives/cairo/attachments/20070810/62176219/attachment.pgp 

More information about the cairo mailing list