Information : The version displayed on this page is not the latest available.
Language
English
|
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).
Download the last sources of libcairo (>=1.4.10) at cairographics.org. You will need the libpixmap (>=0.9.4) and the libglitz (>=0.5.6).
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.
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 :
And now, you can compare the "top" with and without glitz.
Thanks for your feedback, not a lot of people use this method. |
|
Online users :