From BlenderWiki

Jump to: navigation, search

Below is my current user-config.py file. You can find yours in /home/compile/blender/user-config.py (if you followed Blender Compiling). First 4 lines are for optimizations. I have Intel Pentium D 945, 3.4 GHz Dual Core Processor. I found on the net that is this processor based on the prescott cpu, so I use this name for the -march flag (change this flag to fit your cpu! '-march=nocona' is a flag for core2 cpu on example...). You can also check your cpu model with a command:

$ cat /proc/cpuinfo

All optimization flags you can use (-msse2, -mmmx. etc) depends beside your cpu also on your gcc compiler, so check also available flags with:

$ man gcc

user-config.py:

CCFLAGS = ['-pipe','-fPIC','-march=prescott','-msse3','-mmmx','-mfpmath=sse','-funsigned-char','-fno-strict-aliasing']
CXXFLAGS = ['-pipe','-fPIC','-march=prescott','-msse3','-mmmx','-mfpmath=sse','-funsigned-char','-fno-strict-aliasing']
REL_CFLAGS = ['-O3','-fomit-frame-pointer','-funroll-loops']
REL_CCFLAGS = ['-O3','-fomit-frame-pointer','-funroll-loops']
BF_OPENAL_LIB = 'openal alut'
WITH_BF_INTERNATIONAL = 'true'
WITH_BF_VERSE = 'true'
WITH_BF_YAFRAY = 'true'
BF_TWEAK_MODE = 'false'
WITH_BF_JPEG = 'true'
WITH_BF_PNG = 'true'
WITH_BF_OPENEXR = 'true'
WITH_BF_QUICKTIME = 'false'
WITH_BF_FFMPEG = 'true'
WITH_BF_OPENAL = 'true'
WITH_BF_SDL = 'true'
WITH_BF_GAMEENGINE = 'false'
WITH_BF_PLAYER = 'false'
WITH_BF_BULLET = 'false'
WITH_BF_ZLIB = 'true'
WITH_BF_FMOD = 'false'
WITH_BF_FTGL = 'true'
WITH_BF_ICONV = 'false'
WITH_BF_STATICOPENGL = 'false'
BF_PYTHON_VERSION = '2.5'
BF_DEBUG = 'false'

Important disclaimer

The compile options here show aggressive optimization that won't result in a stable Blender binary. Especially -O3 has many reported rendering errors. Blender releases are always built with -O2 for that reason (ton).