Re: slow display



Milan,

> But AFAICS this is not related to GNOME Shell at all... ;-)

Well not sure. The patch is not mine (find it attached to this message).
If you look at the code in cairo-xlib-display.c you'll find many
conditionals to workaround limitations into X server version and drivers.

Looks like this problem is present in the current combination in Debian
sid. I've just built again latest libcairo with this patch and my
slowness is over.

I send this message as it may help others working around this slowness
which makes the desktop quite "annoying".

Thanks,
Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B

>From 5cd5a15e89bca98353e46b0e540cf4d370a475ef Mon Sep 17 00:00:00 2001
From: Pascal Obry <pascal obry net>
Date: Sat, 30 Apr 2011 18:38:41 +0200
Subject: [PATCH] Workaround slowness in Debian due to nVidia driver.

---
 src/cairo-xlib-display.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/cairo-xlib-display.c b/src/cairo-xlib-display.c
index dd60484..ed6fba1 100644
--- a/src/cairo-xlib-display.c
+++ b/src/cairo-xlib-display.c
@@ -353,11 +353,7 @@ _cairo_xlib_device_create (Display *dpy)
     /* Prior to Render 0.10, there is no protocol support for gradients and
      * we call function stubs instead, which would silently consume the drawing.
      */
-#if RENDER_MAJOR == 0 && RENDER_MINOR < 10
     display->buggy_gradients = TRUE;
-#else
-    display->buggy_gradients = FALSE;
-#endif
     display->buggy_pad_reflect = FALSE;
     display->buggy_repeat = FALSE;
 
-- 
1.7.9.1.244.gb0d66b



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]