Fix tint transition bug with high end monitor
How to test:
psdk debug skip_title --util=emulate_240hz
Script to put in plugins emulate_240Hz.rb
ScriptLoader.load_tool('GameLoader/Z_main')
def PSDK_CONFIG.vsync_enabled
return false
end
module Graphics
module_function
def emulate_144Hz
if @last_emulation_time
d = Time.new - @last_emulation_time
wait = 0.004166666666666667 - d
sleep(wait) if wait > 0
end
@last_emulation_time = Time.new
end
end
Graphics.on_start do
win = Graphics.window
def win.update
super
Graphics.emulate_144Hz
end
def win.update_no_input
super
Graphics.emulate_144Hz
end
end
What's expected:
- When loading save in 240Hz, we should never see black map with no only event when transition is proceeding
- When warping with special transition (directed, circular, etc...) to a map with tint, we should not see the map before the transition actually display & finish