From 25b53e38f078b02d3c65b6334497ab5dc14d739b Mon Sep 17 00:00:00 2001 From: Eblo <7004497+Eblo@users.noreply.github.com> Date: Tue, 31 Oct 2023 10:30:14 -0400 Subject: [PATCH] Graphics.transition FPS counter test Added test script for Graphics.transition reported FPS --- tests/graphics-transition/transition.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/graphics-transition/transition.rb diff --git a/tests/graphics-transition/transition.rb b/tests/graphics-transition/transition.rb new file mode 100644 index 0000000..b7fb580 --- /dev/null +++ b/tests/graphics-transition/transition.rb @@ -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