Increase Qt optimisation level to O3.

This commit is contained in:
Sacha 2013-10-15 04:03:08 +10:00
parent 629d190afc
commit a7d6b0b98b
3 changed files with 6 additions and 3 deletions

View File

@ -44,7 +44,7 @@ linux {
# Main # Main
SOURCES += ../native/base/QtMain.cpp SOURCES += ../native/base/QtMain.cpp
#HEADERS += ../native/base/QtMain.h HEADERS += ../native/base/QtMain.h
# UI # UI
SOURCES += ../UI/*Screen.cpp \ SOURCES += ../UI/*Screen.cpp \

View File

@ -6,13 +6,17 @@ DEFINES -= UNICODE
INCLUDEPATH += ../ext/zlib ../native/ext/glew ../Common INCLUDEPATH += ../ext/zlib ../native/ext/glew ../Common
win32-msvc* { win32-msvc* {
QMAKE_CXXFLAGS_RELEASE += /O2 /arch:SSE2 /fp:fast QMAKE_CXXFLAGS_RELEASE += /O3 /arch:SSE2 /fp:fast
DEFINES += _MBCS GLEW_STATIC NOMINMAX NODRAWTEXT _CRT_SECURE_NO_WARNINGS DEFINES += _MBCS GLEW_STATIC NOMINMAX NODRAWTEXT _CRT_SECURE_NO_WARNINGS
PRECOMPILED_HEADER = ../Windows/stdafx.h PRECOMPILED_HEADER = ../Windows/stdafx.h
PRECOMPILED_SOURCE = ../Windows/stdafx.cpp PRECOMPILED_SOURCE = ../Windows/stdafx.cpp
} else { } else {
QMAKE_CXXFLAGS += -Wno-unused-function -Wno-unused-variable -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-unused-parameter QMAKE_CXXFLAGS += -Wno-unused-function -Wno-unused-variable -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-unused-parameter
QMAKE_CXXFLAGS += -std=c++0x -ffast-math -fno-strict-aliasing QMAKE_CXXFLAGS += -std=c++0x -ffast-math -fno-strict-aliasing
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CFLAGS_RELEASE += -O3
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3
} }
# Arch specific # Arch specific

View File

@ -168,7 +168,6 @@
<addaction name="menuAnisotropic_filtering"/> <addaction name="menuAnisotropic_filtering"/>
<addaction name="action_OptionsBufferedRendering"/> <addaction name="action_OptionsBufferedRendering"/>
<addaction name="action_OptionsLinearFiltering"/> <addaction name="action_OptionsLinearFiltering"/>
<addaction name="action_Simple_2xAA"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="menuZoom"/> <addaction name="menuZoom"/>
<addaction name="action_Stretch_to_display"/> <addaction name="action_Stretch_to_display"/>