But yesterday ... I started to wonder.
What improvements can I force during compilation. ?
Yes it's true - people with an IQ of 135 and more with a little knowledge of the subject, understand by the size of the problem. Surprised with so far no one noticed?
There are many models of processors, many architectures.
To make the program work quickly, it must be optimized for a specific processor model.
From the website warzone2100.net, you can download a single file executable (installer packages for Windows).
This installer is already in itself executable code warzone2100, perfectly matched to only one processor model. So they send out all over the web installer code matched the one processor, or unmatched to any...In my case, by running warzone2100 in windows , I never had optimally compiled code provided by the installer . Now I know that I have to use sources and GNU compiler , with some special settings , but more on that in a moment.
The ubuntu 13.10 , the problem occurs when running the script . / Configure.sh
If you have not set environment variables CFLAGS and CXXFLAGS then
The script DO NOT supplements them with staff like universal constants ( CFLAGS = " -march = native -O2 -pipe"
export CXXFLAGS = " -march = native -O2 -pipe" ) , it seems that it is good, but as it is very far from optimum.
I try "-march=native " is not selected properly extensions of my CPU
because the processor is too new .
I finally found the right configuration for my processor on the
https://wiki.gentoo.org/wiki/Safe_CFLAGS
Before compiling , I have to type in the terminal
export CFLAGS = "- march = bdver1 - O3 -pipe"
export CXXFLAGS = "$ CFLAGS "
it is best to add to the file. bashrc
then run the script . / configure.sh and make
To compare these compilations , I made a map with 900 tanks ( 2x450 ) using Flame .
after the first minute of the build with no march=, I had 6-9 FPS
after the first minute of the build - march = bdver1 , I had 15-22 FPS
greater efficiency by 80 %
Compilation for the second computer ,
setting export CFLAGS = "- march = core2 - O3 -pipe"
after the first minute of the build with no -march , I had 5-10 FPS
after the first minute of the build - march = core2 , I had 13-19 FPS