Andere Compilerflags, die sicherer sein sollten. Wenn es partout auch

mit diesen nicht will, nehmen wir das -O2 noch raus. Kostet dann aber
knappe 100FPS. Diese Änderung war erstmal neutral.
This commit is contained in:
Yamagi Burmeister 2010-01-18 14:57:27 +00:00
parent 81579282e3
commit a0f057d978
2 changed files with 5 additions and 12 deletions

View file

@ -44,22 +44,15 @@ endif
CC = gcc CC = gcc
ifeq ($(ARCH),i386) ifeq ($(ARCH),i386)
CFLAGS_BASE = -O2 -ffast-math -funroll-loops -falign-loops=2 \ CFLAGS_BASE = -O2 -fno-strict-aliasing -fomit-frame-pointer \
-falign-jumps=2 -falign-functions=2 -fno-strict-aliasing \ -fstack-protector -Wall -pipe -g
-fomit-frame-pointer -Wall -pipe -g
endif endif
ifeq ($(ARCH),x86_64) ifeq ($(ARCH),x86_64)
CFLAGS_BASE = -O2 -ffast-math -funroll-loops -fomit-frame-pointer \ CFLAGS_BASE = -O2 -fomit-frame-pointer -fno-strict-aliasing \
-fexpensive-optimizations -fno-strict-aliasing \ -fstack-protector -Wall -pipe -g
-Wall -pipe -g
endif endif
# Optimizations
# ~25% - 30% perfomance gain, but may not
# work on all CPUs. Adjust to your needs
# CFLAGS_BASE += -mmmx -msse -msse2 -msse3 -m3dnow
# Uncomment this if your Mesa3D is broken # Uncomment this if your Mesa3D is broken
# CFLAGS_BASE += -DBROKEN_MESA # CFLAGS_BASE += -DBROKEN_MESA

2
README
View file

@ -262,7 +262,7 @@ Hey, the game renders unplayable slow but my OpenGL is working?!
- If you're using Mesa 7.0, 7.1, 7.2 or 7.3 thats a known bug of - If you're using Mesa 7.0, 7.1, 7.2 or 7.3 thats a known bug of
Mesa3D. It's fixed in 7.4 and above. Please update your Mesa3D. If Mesa3D. It's fixed in 7.4 and above. Please update your Mesa3D. If
that's not possible, open the Makefile in your favorite editor, that's not possible, open the Makefile in your favorite editor,
uncomment line 64 and rebuild. uncomment line 57 and rebuild.
How do I set a custom resolution? How do I set a custom resolution?
- Set gl_customwidth and gl_customheight to the desired values. Change - Set gl_customwidth and gl_customheight to the desired values. Change