Changing the length of the post-battle fade.

Whenever I start a battle with an event, and put something after that battle, something very janky happens when the battle is over. After the battle is finished, the game does a fade out from the battle scene and fades back in to the map, but the problem is that the event waits until after the fade to do what the next lines in the event say to do.
Due to this, if you want to have an event disappear after a battle, the game fades in, and there's a brief period where that event is still visible, before it suddenly blinks away.

I've tried doing things like telling the event itself to fade out after the battle, then performing the map changes, and then fading back in. Unfortunately there's still that pesky period where the map is visible, before then fading out and fading in again. I'm wondering if there's a way I can fix this within the RPGMaker VXAce code, maybe by extending the length of the fade, or by telling the game to reload the map before fading in.

I've searched throughout the script editor for where the post-battle fadeout/fadein is performed, but as I am new to RPGMaker, I don't know where to look. Can someone help me find the script that tells the game to perform that fade? Or maybe help me find an alternative solution? I'm at my wit's end.
What I do is use this script command before the battle:
Ruby:
Graphics.freeze
This will prevent the screen from being updated until there is some kind of transition. (It was a proper event command in RPGXP, they might have removed it because of people using it carelessly.)

So you can set the scene up the way it is supposed to look after the battle, and the player won't get to see it until they have indeed gone to the battle screen and back.
I actually ended up finding a fix for this problem, which was to switch over to a parallel process to start the battle, and do things after the battle. Parallel processes will run before the game fades in, which solves my problem completely. I appreciate the help though, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-length-of-the-post-battle-fade.147449/