1 |
On Thu, Feb 16, 2012 at 04:29:48PM +0100, Alex Schuster wrote |
2 |
|
3 |
> Then my hardware broke, and I got new one... |
4 |
|
5 |
I had ***EXACTLY THE SAME PROBLEM ON A FRESH INSTALL***. In My case |
6 |
it was a 4+ year old Dell with onboard Intel GPU that was having |
7 |
problems playing NHL Gamecenter Live streams at the slowest speed. I |
8 |
solved the problem and sped up everything by doing... |
9 |
1) emerge system |
10 |
2) emerge world |
11 |
3) rebuild the kernel and reboot |
12 |
|
13 |
A fresh install will have the stage 3 binaries built with |
14 |
lowest-common-denominator x86 or amd64 code (depending if you chose 32 |
15 |
or 64 bit install). This is necessary in order to allow the install |
16 |
code to run on all CPUs with the target platform. The downside is that |
17 |
you lose all the optimisations that make Gentoo scream. Rebuilding the |
18 |
install as described above builds optimized (i.e. faster) binaries. My |
19 |
CFLAGS line in /etc/make.conf is... |
20 |
|
21 |
CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe" |
22 |
CXXFLAGS="${CFLAGS}" |
23 |
|
24 |
Before rebuilding your system, go over your USE flags to make sure |
25 |
you've got the maximum optimization. To find out what your CPU |
26 |
supports, execute the command |
27 |
|
28 |
grep flags /proc/cpuinfo | head -1 |
29 |
|
30 |
This will define the limits what your system can support. For |
31 |
instance, mplayer can use the following flags... |
32 |
|
33 |
waltdnes@d530 ~ $ emerge -pv mplayer |
34 |
|
35 |
These are the packages that would be merged, in order: |
36 |
|
37 |
Calculating dependencies... done! |
38 |
[ebuild R ] media-video/mplayer-1.0_rc4_p20110322-r1 USE="X a52 alsa ass dga encode gif jpeg mmx mmxext mng mp3 opengl png quicktime real rtmp sse sse2 ssse3 theora truetype win32codecs x264 xv xvid xvmc -3dnow -3dnowext -aalib (-altivec) -amr (-aqua) -bidi -bindist -bl -bluray -bs2b -cddb -cdio -cdparanoia -cpudetection -custom-cpuopts -debug -dirac -directfb -doc -dts -dv -dvb -dvd -dvdnav (-dxr3) -enca (-esd) -faac -faad -fbcon -ftp -ggi -gsm -iconv -ipv6 -jack -joystick -jpeg2k -ladspa -libcaca -libmpeg2 -lirc -live -lzo -mad -md5sum -mpg123 -nas -network -nut -openal -osdmenu -oss -pnm -pulseaudio -pvr -radio -rar -rtc -samba -schroedinger -sdl -shm -speex -tga -toolame -tremor -twolame -unicode -v4l -vdpau -vidix -vorbis -vpx -xanim -xinerama -xscreensaver -zoran" VIDEO_CARDS="-mga -s3virge -tdfx -vesa" 0 kB |
39 |
|
40 |
Your CPU will obviously support a different set of USE flags than |
41 |
mine. Check the files /usr/portage/profiles/use.desc for a list of |
42 |
global flags and /usr/portage/profiles/use.local.desc for |
43 |
package-specific flags. |
44 |
|
45 |
-- |
46 |
Walter Dnes <waltdnes@××××××××.org> |