Fs2 open on Linux/Optimization
|« Pre-Compile Configuration||The fs2_open on Linux Guide
Optimizing fs2_open might have little or no effect, or improve performance greatly, I honestly have no clue.
You can specify your compiler flags with the configure script, see below.
$ ./configure CFLAGS="<your desired flags>"
If you want to play it safe, a good set of CFLAGS would be
$ ./configure CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -fno-ident" CXXFLAGS="$CFLAGS"
In particular, the following flag has been reported to increase the FPS when not looking at nebula: (thanks to oldlaptop for this advice)
You should read up on CFLAGS and what they do before trying anything. I recommend you read through these links (adjust the URL as required for your version of GCC).