Gentoo + KDE4.4 + compiz-fusion + 1300 FPS

Yes, maybe 1300 fps it is not exciting for someone who has ATI or NVidia card on board, but for my Intel 945GEM it’s back to times before KMS.
Anyway few months I suffered from 3D performance regression. I was happy if I saw 300 FPS. Now desktop can look great and to be fast. How to do it under Gentoo:
1. your system should be ready for “unstable” packages. Hence please accept ~x86 keyword in /etc/make.conf
ACCEPT_KEYWORDS="~x86"
2. this point is key….
Some time ago mesa 7.8 has been released. It allows to have higher performance on Intel GPUs about 30%. I noticed that is possible for xf86-video-intel-2.10.0-r1. If you used higher, then you would have performance regression.
First mask intel driver in /etc/portage/package.mask:
lenovo greg # egrep intel /etc/portage/package.mask
>x11-drivers/xf86-video-intel-2.10.0-r1

make sure that you have the following packages:

media-libs/mesa-7.8
x11-base/xorg-drivers-1.7
x11-base/xorg-server-1.7.6
x11-drivers/xf86-video-intel-2.10.0-r1
x11-libs/libdrm-2.4.19

that’s all about drivers
3. nice look = compiz-fusion. Just install:
# emerge -av compiz-fusion ccsm compizconfig-backend-kconfig4
4. remember that you use Intel card. It means that if you don’t want to have troubles you have to enforce some extra parameters. First create /usr/bin/compiz-kde-launcher script, make it executable and put there:
#!/bin/bash
LIBGL_ALWAYS_INDIRECT=1 INTEL_BATCH=1 compiz --replace --indirect-rendering --sm-disable ccp &

5. choose compiz-custom as default windowmanager
System Settings -> Default Applications -> Window Manager -> Compiz Custom

That’s all! Run glxgears and check how many fps you reached.
Isn’t enough?
Reference:

  • http://wiki.compiz.org/Troubleshooting#Intel_GMA_Cards
  • http://en.gentoo-wiki.com/wiki/Compiz-Fusion
  • http://wiki.archlinux.org/index.php/Compiz
  • Advertisements

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s