TheJosh / chaotic-rage

An unusual zombie shooter game for Windows and Linux
GNU General Public License v2.0
35 stars 10 forks source link

Remove the big common header (rage.h) #41

Closed TheJosh closed 11 years ago

TheJosh commented 11 years ago

It's a bit crappy that everything hangs off rage.h. This should be cleaned up.

TheJosh commented 11 years ago

OLD

make

real    2m19.871s
user    2m5.840s
sys     0m14.660s

make -j4

real    1m33.418s
user    2m10.290s
sys     0m14.690s

NEW

make

real    2m0.437s
user    1m43.530s
sys     0m11.980s

make -j4

real    1m17.876s
user    1m45.550s
sys     0m12.710s
TheJosh commented 11 years ago

Made another update

make -j4 on the same machine:

real    1m0.878s
user    1m40.030s
sys 0m12.000s
TheJosh commented 11 years ago

Trimmed even more fat;

real    0m57.757s
user    1m39.140s
sys 0m12.420s
TheJosh commented 11 years ago

I just timed windows compiles in MSVC 2010 Express. It doesn't give a time on-screen, but I used the stopwatch on my phone. The computer is a slower one too, and it only does single-tread compiles (like make -j1). In both cases I did a "rebuild all".

Original: 4:45:02

New: 3:30:95

That's a saving of more than a minute!

TheJosh commented 11 years ago

Linux dual-core make -j4

real    0m52.244s
user    1m31.950s
sys     0m10.450s