VXAce Yanfly Ace Battle Core Popup Change- Help Needed

I'm working on my game and I wanted to make a simple change that will impact how everything flows in my opinion. Whenever there is a skill that uses a lot of repeats, the game will lag behind and then show all the damage proper. In the game on the left side some how they managed to slow down the popups and I personally couldn't figure out how to do it for myself. Is there a way I can do this with Battle Core?
If you can provide images of the code I would need to modify, it would be much appreciated, my version of battle core has a few things I have modified personally, so line XYZ may not line up with my version.

I only just noticed the audio being duplicated on my game wile recording, apologies.
Video of Comparison
Hello, I tried Yanfly's Battle Engine Script on an empty project, with a skill with 9 repeats and <one animation>.
1763588029939.png

I did not experience any lag or sound bug and my result is a bit slow but it's closer to your left-side game, maybe your modified version did create this issue?

To handle the time between the popups, look for method perform_collapse_check in Yanfly Battle Engine (line 3028 in original script), it should have this code:
Ruby:
class Scene_Battle
  #--------------------------------------------------------------------------
  # new method: perform_collapse_check
  #--------------------------------------------------------------------------
  def perform_collapse_check(target)
    return if YEA::BATTLE::MSG_ADDED_STATES
    target.perform_collapse_effect if target.can_collapse?
    @log_window.wait #this method will slow down the popus arrival
    @log_window.wait_for_effect #this one too
  end
end #Scene_Battle

If it does, then you must check the code from WIndow_BattleLog, especially:
Ruby:
#Vanilla code for the following methods:
class Window_BattleLog
  def message_speed
    return 20
  end
    
  def wait
    @num_wait += 1
    @method_wait.call(message_speed) if @method_wait
  end

  def wait_for_effect
    @method_wait_for_effect.call if @method_wait_for_effect
  end
end #Window_BattleLog

Finally you can check in your Scene_Battle methods wait and wait_for_effect to check if their code was modified.
I suggest you try to preserve as much as possible the original code for them, but you can modify message_speed to get a lower number, which can then help you get faster popups without freezing your game (5 frames for instance seems fast and good in my test).



As a side note, if you know enough about scripting, I suggest you try not to modify scripts but rather write small scripts below them that alias or overwrite preexisting methods whenever possible, this helps you keep track of your modifications and also can help other people see what you've changed if you ask for help.
I am comparing the two games and I'm not seeing any difference, I am seeing some stuff to yoink like changing the window oppacity for menus, but just not this.
It wouldn't surprise me if somethin was overwriting it somewhere.


As a side note, if you know enough about scripting, I suggest you try not to modify scripts but rather write small scripts below them that alias or overwrite preexisting methods whenever possible, this helps you keep track of your modifications and also can help other people see what you've changed if you ask for help.
I am comparing the two games and I'm not seeing any difference, I am seeing some stuff to yoink like changing the window oppacity for menus, but just not this.
It wouldn't surprise me if somethin was overwriting it somewhere.
Please tell if you happen to find the source of your issue.

It's also possible that your log window does not have its attributes activated, look for modifications of method create_log_windowfrom Scene_Battle, it should look like this:

Ruby:
  def create_log_window
    @log_window = Window_BattleLog.new
    @log_window.method_wait = method(:wait)
    @log_window.method_wait_for_effect = method(:wait_for_effect)
  end

Also make sure that the create_log_window method is called (though if it wasn't any reference to the log window would crash I guess).

If there is nothing out of the ordinary, you can try to add print calls and check your game console to find if the methods are properly called.


Also, if you just take your version Yanfly's battle script, put it in an empty project and add this scriptlet after it:
Ruby:
class Window_BattleLog
  def message_speed
    return 5
  end
end
Would you still get your issue? (Same question if instead you take Yanfly's unmodified script)

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-ace-battle-core-popup-change-help-needed.181096/