mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-29 15:51:45 +00:00
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:
parent
81579282e3
commit
a0f057d978
2 changed files with 5 additions and 12 deletions
15
Makefile
15
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
|
||||
|
||||
|
|
2
README
2
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
|
||||
|
|
Loading…
Reference in a new issue