From a0f057d978672e5fdbb72fc62c7e44e0364f28f6 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Mon, 18 Jan 2010 14:57:27 +0000 Subject: [PATCH] =?UTF-8?q?Andere=20Compilerflags,=20die=20sicherer=20sein?= =?UTF-8?q?=20sollten.=20Wenn=20es=20partout=20auch=20mit=20diesen=20nicht?= =?UTF-8?q?=20will,=20nehmen=20wir=20das=20-O2=20noch=20raus.=20Kostet=20d?= =?UTF-8?q?ann=20aber=20knappe=20100FPS.=20Diese=20=C3=84nderung=20war=20e?= =?UTF-8?q?rstmal=20neutral.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 15 ++++----------- README | 2 +- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 964108f5..2271db82 100644 --- a/Makefile +++ b/Makefile @@ -44,22 +44,15 @@ endif CC = gcc ifeq ($(ARCH),i386) -CFLAGS_BASE = -O2 -ffast-math -funroll-loops -falign-loops=2 \ - -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing \ - -fomit-frame-pointer -Wall -pipe -g +CFLAGS_BASE = -O2 -fno-strict-aliasing -fomit-frame-pointer \ + -fstack-protector -Wall -pipe -g endif ifeq ($(ARCH),x86_64) -CFLAGS_BASE = -O2 -ffast-math -funroll-loops -fomit-frame-pointer \ - -fexpensive-optimizations -fno-strict-aliasing \ - -Wall -pipe -g +CFLAGS_BASE = -O2 -fomit-frame-pointer -fno-strict-aliasing \ + -fstack-protector -Wall -pipe -g 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 # CFLAGS_BASE += -DBROKEN_MESA diff --git a/README b/README index 3992d5a1..e7b22d79 100644 --- a/README +++ b/README @@ -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 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, - uncomment line 64 and rebuild. + uncomment line 57 and rebuild. How do I set a custom resolution? - Set gl_customwidth and gl_customheight to the desired values. Change