Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock Wiki Activation of Hardware Acceleration
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Information : The version displayed on this page is not the latest available.
History View code

Glx-Dock / Cairo-Dock




en English

Support Us

Flattr this


Activation of Hardware Acceleration

For that we will need Glitz, which is a backend of the libcairo (which mean that libcairo will no longer draw in an X buffer, but directly in a buffer on your graphic card). Interest: this reduces considerably the workload assigned to X (of a factor which can go up to 5 following the CG!) For that your libcairo must be installed with the support of Glitz (that is not the case of the official packages for Ubuntu, so we will have to compile it ourselves).

We choose to install them in /usr/local, because we should not over write the versions of the lib already present on your system. You must then make the following manipulation :
export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}

Put it in your ~/.bash_rc, if you do not want to type it each time.

To get the last Cairo and Pixman just type at the terminal:
git clone git://anongit.freedesktop.org/git/cairo
git clone git://anongit.freedesktop.org/git/pixman

(if you don't have "git" installed just type "sudo apt-get install git-core" to install it)

Download the patch to change the "git" version of Cairo :

Download the latest Glitz version :

Then apply the downloaded patch to the "git" version of Cairo and it will change three files.
To apply the patch, copy the file 0001-Fix-glitz-support-for-24.8-fixed-point.patch to cairo ("git") directory and use in a terminal at that directory the command:

patch -p0 < 0001-Fix-glitz-support-for-24.8-fixed-point.patch

(if you have problems, you can see more information about the command "patch" at "man patch" in a terminal. In particular, -p1 may be needed instead of -p0)

First, compil libpixmap :
./configure --prefix=/usr/local && make
sudo make install

It may be that you have to modify the pixman-1.pc.in file, to replace “pixman” by “pixman-1” (or to establish the link symbolic system on libpixman.so with the hand) if libcairo complains that it cannot find libpixmap (compile again the lib in this case after the change).

Compile Glitz : same method.
Then compile libcairo with glitz :
./configure --prefix=/usr/local --enable-glitz && make
sudo make install

It may be that you have to manually place the file cairo-glitz.h in /usr/local/include/cairo (seek it with locate, if you do not have it, catch it on my ftp).

Well done ! Let go to the ultimate step : compiling cairo-dock with the glitz support :
./configure --prefix=/usr --enable-glitz && make clean && make
sudo make install

Here it is done, now the moment of grace ; launch cairo-dock with glitz :
cairo-dock --glitz

And now, you can compare the "top" with and without glitz.
There may have some drawing flaws, as libcairo broke the compatibility with glitz, which is under heavy development to repair it.


Glx-Dock / Cairo-Dock Wiki Activation of Hardware Acceleration Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.