mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
JOIADPJOG
This commit is contained in:
parent
527cb1a9d1
commit
4e0769d0ff
3 changed files with 71 additions and 30 deletions
|
|
@ -354,13 +354,16 @@ else()
|
||||||
check_option(OPTIONS_RELEASE -O2
|
check_option(OPTIONS_RELEASE -O2
|
||||||
-ffast-math
|
-ffast-math
|
||||||
-fipa-pta
|
-fipa-pta
|
||||||
|
-fipa-sra
|
||||||
-ftree-vectorize
|
-ftree-vectorize
|
||||||
-fstdarg-opt
|
-fstdarg-opt
|
||||||
-fomit-frame-pointer
|
-fomit-frame-pointer
|
||||||
-frename-registers
|
-frename-registers
|
||||||
-ffunction-sections
|
-ffunction-sections
|
||||||
-fdata-sections
|
-fdata-sections
|
||||||
-fvisibility=hidden)
|
-fvisibility=hidden
|
||||||
|
-fno-asynchronous-unwind-tables
|
||||||
|
-fno-semantic-interposition)
|
||||||
add_compile_options(${OPTIONS_RELEASE})
|
add_compile_options(${OPTIONS_RELEASE})
|
||||||
|
|
||||||
add_link_options(-Wl,-O2
|
add_link_options(-Wl,-O2
|
||||||
|
|
@ -370,10 +373,14 @@ 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)
|
check_option(OPTIONS_RELEASE_WIN32_FLTO -flto=auto)
|
||||||
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()
|
||||||
check_option(ARCH_RELEASE_OPTIONS ${ARCH_RELEASE})
|
check_option(ARCH_RELEASE_OPTIONS ${ARCH_RELEASE})
|
||||||
add_compile_options(${ARCH_RELEASE_OPTIONS})
|
add_compile_options(${ARCH_RELEASE_OPTIONS})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
# Engine benchmark idk, check speed via linux time utility
|
# Engine benchmark idk, check speed via linux time utility
|
||||||
|
|
||||||
begin
|
begin
|
||||||
RPG::Mod.exec_hooks("test", binding)
|
RPG::Mod.exec_hooks("test", binding)
|
||||||
Audio.bgm_play("Audio/BGM/MyBurdenIsLight.ogg", Audio.bgm_volume, 100)
|
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
while count <= 500000 do
|
while count <= 500000 do
|
||||||
puts count
|
puts count
|
||||||
|
|
@ -38,15 +35,6 @@ begin
|
||||||
count += 1
|
count += 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
Graphics.setVsync(0)
|
|
||||||
Graphics.setVsync(1)
|
|
||||||
Graphics.setVsync(-1)
|
|
||||||
Graphics.smooth = true
|
|
||||||
Graphics.smooth = false
|
|
||||||
Graphics.frame_reset
|
|
||||||
Graphics.update
|
|
||||||
Oneshot.shake
|
|
||||||
Sunshine.crashprivacy=true
|
Sunshine.crashprivacy=true
|
||||||
Wallpaper.reset
|
Wallpaper.reset
|
||||||
Input.set_led(255, 150, 30)
|
Input.set_led(255, 150, 30)
|
||||||
|
|
@ -55,11 +43,55 @@ begin
|
||||||
File.exist?("oneshot")
|
File.exist?("oneshot")
|
||||||
Oneshot.exiting false
|
Oneshot.exiting false
|
||||||
Oneshot.exiting true
|
Oneshot.exiting true
|
||||||
Audio.bgm_fade(800)
|
puts CTime.month
|
||||||
Audio.bgs_fade(800)
|
puts CTime.day
|
||||||
Audio.me_fade(800)
|
puts CTime.hour
|
||||||
Audio.se_play('Audio/SE/title_decision.wav')
|
Sunshine.wallpapermode="fallback"
|
||||||
|
Sunshine.wallpapermode="disabled"
|
||||||
|
Sunshine.wallpapermode="normal"
|
||||||
|
puts Sunshine::SDLVersion_major
|
||||||
|
puts Sunshine::SDLVersion_minor
|
||||||
|
puts Sunshine::SDLVersion_micro
|
||||||
|
puts Sunshine::SECURITYSTATE
|
||||||
|
puts Sunshine::VERSION
|
||||||
|
puts Sunshine::DEVBUILD
|
||||||
|
count = 0
|
||||||
|
Oneshot.shake
|
||||||
|
Oneshot.shake
|
||||||
|
Oneshot.shake
|
||||||
|
Oneshot.shake
|
||||||
|
Oneshot.shake
|
||||||
|
while count <= 9999999 do
|
||||||
|
count.clone
|
||||||
|
count = count + 1
|
||||||
|
puts count
|
||||||
|
Graphics.setVsync(0)
|
||||||
|
Graphics.setVsync(1)
|
||||||
|
Graphics.setVsync(-1)
|
||||||
|
Graphics.smooth = true
|
||||||
|
Graphics.smooth = false
|
||||||
|
Graphics.frame_reset
|
||||||
|
Graphics.update
|
||||||
|
begin
|
||||||
|
raise 'Boom!'
|
||||||
|
rescue
|
||||||
|
puts 'Rescued an exception.'
|
||||||
|
end
|
||||||
|
begin
|
||||||
|
1 / 0 # Raises ZeroDivisionError, a subclass of StandardError.
|
||||||
|
rescue
|
||||||
|
puts "Rescued #{$!.class}"
|
||||||
|
end
|
||||||
|
begin
|
||||||
|
Dir.open('nosuch')
|
||||||
|
rescue Errno::ENOTDIR
|
||||||
|
puts "Rescued #{$!.class}"
|
||||||
|
rescue Errno::ENOENT
|
||||||
|
puts "Rescued #{$!.class}"
|
||||||
|
rescue
|
||||||
|
puts "g"
|
||||||
|
end
|
||||||
|
end
|
||||||
rescue Errno::ENOENT
|
rescue Errno::ENOENT
|
||||||
filename = $!.message.sub("No such file or directory - ", "")
|
filename = $!.message.sub("No such file or directory - ", "")
|
||||||
print("Unable to find file #{filename}.")
|
print("Unable to find file #{filename}.")
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,7 @@ set(ARCH_COMMON "")
|
||||||
set(ARCH_RELEASE
|
set(ARCH_RELEASE
|
||||||
-mnoreturn-no-callee-saved-registers
|
-mnoreturn-no-callee-saved-registers
|
||||||
-mrelax-cmpxchg-loop
|
-mrelax-cmpxchg-loop
|
||||||
-momit-leaf-frame-pointer)
|
-momit-leaf-frame-pointer
|
||||||
|
-mgather
|
||||||
|
-mscatter)
|
||||||
set(ARCH_DEBUG "")
|
set(ARCH_DEBUG "")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue