mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-29 19:44:49 +02:00
Graphics.transition FPS counter test
Added test script for Graphics.transition reported FPS
This commit is contained in:
parent
7a12e6ddcf
commit
25b53e38f0
1 changed files with 17 additions and 0 deletions
17
tests/graphics-transition/transition.rb
Normal file
17
tests/graphics-transition/transition.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Test script for mkxp-z Graphics.transition reported FPS bug fix.
|
||||
# Run via the "customScript" field in mkxp.json.
|
||||
|
||||
puts 'No transition. Counter should be normal'
|
||||
normal_duration = 2
|
||||
Graphics.wait(normal_duration * Graphics.frame_rate)
|
||||
|
||||
transition_duration = 10 # Default value used in RGSS
|
||||
num_transitions = 20
|
||||
puts 'Performing transitions. If the FPS counter notably dips, the bug is not fixed.'
|
||||
num_transitions.times do
|
||||
Graphics.freeze
|
||||
Graphics.transition(transition_duration)
|
||||
Graphics.wait(transition_duration)
|
||||
end
|
||||
|
||||
exit
|
Loading…
Add table
Reference in a new issue