OPTIMIZATION
This commit is contained in:
parent
03adb651bb
commit
0a45a117e3
|
|
@ -346,7 +346,8 @@ if(DEBUG)
|
||||||
check_option(OPTIONS_DEBUG
|
check_option(OPTIONS_DEBUG
|
||||||
-g3
|
-g3
|
||||||
-fno-omit-frame-pointer
|
-fno-omit-frame-pointer
|
||||||
-Og)
|
-Og
|
||||||
|
-fcheck-new)
|
||||||
add_compile_options(${OPTIONS_DEBUG})
|
add_compile_options(${OPTIONS_DEBUG})
|
||||||
|
|
||||||
if("${ARCH_DEBUG}" STREQUAL "")
|
if("${ARCH_DEBUG}" STREQUAL "")
|
||||||
|
|
@ -356,19 +357,20 @@ if(DEBUG)
|
||||||
add_compile_options(${ARCH_DEBUG_OPTIONS})
|
add_compile_options(${ARCH_DEBUG_OPTIONS})
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
check_option(OPTIONS_RELEASE -O2
|
check_option(OPTIONS_RELEASE -O3
|
||||||
-ffast-math
|
-ffast-math
|
||||||
-fipa-pta
|
|
||||||
-fipa-sra
|
|
||||||
-ftree-vectorize
|
|
||||||
-fstdarg-opt
|
|
||||||
-fomit-frame-pointer
|
|
||||||
-frename-registers
|
|
||||||
-ffunction-sections
|
|
||||||
-fdata-sections
|
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
-fno-asynchronous-unwind-tables
|
-fno-math-errno
|
||||||
-fno-semantic-interposition)
|
-fno-trapping-math
|
||||||
|
-ffunction-sections
|
||||||
|
-fsection-anchors
|
||||||
|
-fdata-sections
|
||||||
|
-fvirtual-function-elimination
|
||||||
|
-fstdarg-opt
|
||||||
|
-frename-registers
|
||||||
|
-fuse-linker-plugin
|
||||||
|
-fipa-pta
|
||||||
|
-fext-dce)
|
||||||
add_compile_options(${OPTIONS_RELEASE})
|
add_compile_options(${OPTIONS_RELEASE})
|
||||||
|
|
||||||
add_link_options(-Wl,-O2
|
add_link_options(-Wl,-O2
|
||||||
|
|
@ -378,14 +380,10 @@ else()
|
||||||
-Wl,--strip-all
|
-Wl,--strip-all
|
||||||
-Wl,--no-copy-dt-needed-entries)
|
-Wl,--no-copy-dt-needed-entries)
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
check_option(OPTIONS_RELEASE_WIN32_FLTO -flto=auto)
|
check_option(OPTIONS_RELEASE_WIN32_FLTO -flto=thin)
|
||||||
add_compile_options(${OPTIONS_RELEASE_WIN32_FLTO})
|
add_compile_options(${OPTIONS_RELEASE_WIN32_FLTO})
|
||||||
add_link_options(${OPTIONS_RELEASE_WIN32_FLTO})
|
add_link_options(${OPTIONS_RELEASE_WIN32_FLTO})
|
||||||
endif()
|
endif()
|
||||||
if(LINUX)
|
|
||||||
check_option(MEOW_OPT -fno-semantic-interposition)
|
|
||||||
add_compile_options(${MEOW_OPT})
|
|
||||||
endif()
|
|
||||||
if("${ARCH_RELEASE}" STREQUAL "")
|
if("${ARCH_RELEASE}" STREQUAL "")
|
||||||
message(STATUS "ARCH_RELEASE empty")
|
message(STATUS "ARCH_RELEASE empty")
|
||||||
else()
|
else()
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ begin
|
||||||
puts count
|
puts count
|
||||||
count = count * count
|
count = count * count
|
||||||
end
|
end
|
||||||
count / 67.1488
|
|
||||||
count = 1
|
count = 1
|
||||||
while count <= 5000 do
|
while count <= 5000 do
|
||||||
Graphics.frame_rate = count
|
Graphics.frame_rate = count
|
||||||
|
|
@ -46,31 +45,14 @@ begin
|
||||||
puts CTime.month
|
puts CTime.month
|
||||||
puts CTime.day
|
puts CTime.day
|
||||||
puts CTime.hour
|
puts CTime.hour
|
||||||
Sunshine.wallpapermode="fallback"
|
|
||||||
Sunshine.wallpapermode="disabled"
|
|
||||||
Sunshine.wallpapermode="normal"
|
|
||||||
puts Sunshine::SDLVersion_major
|
puts Sunshine::SDLVersion_major
|
||||||
puts Sunshine::SDLVersion_minor
|
|
||||||
puts Sunshine::SDLVersion_micro
|
|
||||||
puts Sunshine::SECURITYSTATE
|
puts Sunshine::SECURITYSTATE
|
||||||
puts Sunshine::VERSION
|
|
||||||
puts Sunshine::DEVBUILD
|
puts Sunshine::DEVBUILD
|
||||||
count = 0
|
count = 0
|
||||||
Oneshot.shake
|
while count <= 999999 do
|
||||||
Oneshot.shake
|
|
||||||
Oneshot.shake
|
|
||||||
Oneshot.shake
|
|
||||||
Oneshot.shake
|
|
||||||
while count <= 9999999 do
|
|
||||||
count.clone
|
count.clone
|
||||||
count = count + 1
|
count = count + 1
|
||||||
puts count
|
puts count
|
||||||
Graphics.setVsync(0)
|
|
||||||
Graphics.setVsync(1)
|
|
||||||
Graphics.setVsync(-1)
|
|
||||||
Graphics.smooth = true
|
|
||||||
Graphics.smooth = false
|
|
||||||
Graphics.frame_reset
|
|
||||||
Graphics.update
|
Graphics.update
|
||||||
begin
|
begin
|
||||||
raise 'Boom!'
|
raise 'Boom!'
|
||||||
|
|
@ -82,15 +64,6 @@ begin
|
||||||
rescue
|
rescue
|
||||||
puts "Rescued #{$!.class}"
|
puts "Rescued #{$!.class}"
|
||||||
end
|
end
|
||||||
begin
|
|
||||||
Dir.open('nosuch')
|
|
||||||
rescue Errno::ENOTDIR
|
|
||||||
puts "Rescued #{$!.class}"
|
|
||||||
rescue Errno::ENOENT
|
|
||||||
puts "Rescued #{$!.class}"
|
|
||||||
rescue
|
|
||||||
puts "g"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
rescue Errno::ENOENT
|
rescue Errno::ENOENT
|
||||||
filename = $!.message.sub("No such file or directory - ", "")
|
filename = $!.message.sub("No such file or directory - ", "")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue