mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
banchmrask bullshit
This commit is contained in:
parent
9ccc499941
commit
a458573a84
6 changed files with 68 additions and 4 deletions
|
|
@ -53,7 +53,6 @@ static VALUE int_times(VALUE self) {
|
|||
}
|
||||
|
||||
void SunshineBindingInit(){
|
||||
printf("[SunshineBindingInit] Initializing Sunshine binding\n");
|
||||
VALUE module = rb_define_module("Sunshine");
|
||||
//SDL versions, for debug info in main menu and other shi idkkkkkkkk
|
||||
rb_const_set(module, rb_intern("SDLVersion_major"), INT2NUM(SDL_MAJOR_VERSION));
|
||||
|
|
|
|||
|
|
@ -565,7 +565,6 @@ RB_METHOD(wallpaperReset){
|
|||
}
|
||||
|
||||
void wallpaperBindingInit(){
|
||||
printf("[wallpaperBindingInit] Initialing Wallpaper binding\n");
|
||||
VALUE module = rb_define_module("Wallpaper");
|
||||
|
||||
// Functions
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ DEF_PROP_I(Window, ContentsOpacity)
|
|||
|
||||
|
||||
void windowBindingInit(){
|
||||
printf("[windowBindingInit] Initialing Window binding\n");
|
||||
VALUE klass = rb_define_class("Window", rb_cObject);
|
||||
rb_define_alloc_func(klass, classAllocate<&WindowType>);
|
||||
|
||||
|
|
|
|||
66
scripts_benchmark/Main.rb
Normal file
66
scripts_benchmark/Main.rb
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
# Engine benchmark idk, check speed via linux time utility
|
||||
|
||||
begin
|
||||
RPG::Mod.exec_hooks("test", binding)
|
||||
Audio.bgm_play("Audio/BGM/MyBurdenIsLight.ogg", Audio.bgm_volume, 100)
|
||||
|
||||
count = 0
|
||||
while count <= 500000 do
|
||||
puts count
|
||||
count += 1
|
||||
end
|
||||
while count >= 1 do
|
||||
puts count
|
||||
count -= 1
|
||||
end
|
||||
|
||||
count = 1.5
|
||||
while count <= 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 do
|
||||
puts count
|
||||
count = count * count
|
||||
end
|
||||
|
||||
count = 2
|
||||
while count <= 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 do
|
||||
puts count
|
||||
count = count * count
|
||||
end
|
||||
count / 67.1488
|
||||
count = 1
|
||||
while count <= 5000 do
|
||||
Graphics.frame_rate = count
|
||||
count += 1
|
||||
end
|
||||
|
||||
count = 1
|
||||
while count <= 60 do
|
||||
Font.default_size = count
|
||||
count += 1
|
||||
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
|
||||
Wallpaper.reset
|
||||
Input.set_led(255, 150, 30)
|
||||
Graphics.freeze
|
||||
Wallpaper.reset
|
||||
File.exist?("oneshot")
|
||||
Oneshot.exiting false
|
||||
Oneshot.exiting true
|
||||
Audio.bgm_fade(800)
|
||||
Audio.bgs_fade(800)
|
||||
Audio.me_fade(800)
|
||||
Audio.se_play('Audio/SE/title_decision.wav')
|
||||
|
||||
rescue Errno::ENOENT
|
||||
filename = $!.message.sub("No such file or directory - ", "")
|
||||
print("Unable to find file #{filename}.")
|
||||
end
|
||||
1
scripts_benchmark/_scripts.txt
Normal file
1
scripts_benchmark/_scripts.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
Main
|
||||
|
|
@ -444,7 +444,7 @@ void EventThread::process(RGSSThreadData &rtData){
|
|||
break;
|
||||
|
||||
SDL_snprintf(buffer, sizeof(buffer), "%s - %d FPS", rtData.config.windowTitle.c_str(), event.user.code);
|
||||
|
||||
Debug() << event.user.code;
|
||||
/* Updating the window title in fullscreen
|
||||
* mode seems to cause flickering */
|
||||
if (fullscreen){
|
||||
|
|
|
|||
Loading…
Reference in a new issue