[cairo] Performance problems in evince with ATI video cards

Carlos Garcia Campos carlosgc at gnome.org
Fri Aug 17 01:01:35 PDT 2007


El lun, 13-08-2007 a las 00:41 -0400, Behdad Esfahbod escribió:
> On Fri, 2007-08-10 at 15:52 -0400, Vladimir Vukicevic wrote:
> > > 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);
> > ...  (Also, setting a device offset before you draw is odd 
> > -- you really just want to translate to the right place and draw a 
> > rectangle that you fill, though that shouldn't be affecting performance.)
> 
> In fact the correct way to write it without device offset is to pass
> those offset numbers to cairo_set_source_surface() (instead of the
> current zeros).

FWIW it seems the problem can be fixed by adding Option
"XAANoOffscreenPixmaps" to xorg.conf. Commented on GNOME bug:

http://bugzilla.gnome.org/show_bug.cgi?id=453123

Any idea?

> behdad

Thanks,
-- 
Carlos Garcia Campos
   elkalmail at yahoo.es
   carlosgc at gnome.org
   http://carlosgc.linups.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
	digitalmente
Url : http://lists.cairographics.org/archives/cairo/attachments/20070817/e0b931d9/attachment.pgp 


More information about the cairo mailing list