[SOLVED]Question about "Screen Refresh" when Exiting the Main Menu

Whenever I exit the Main menu either by using Right Click or pressing X, there always seem to occur a "Screen Refresh"
Which always seem to update the screen, and some plugins benefit from this refresh. (In Galv Event Shadows, missing event shadows gets fixed, In Terrax Lighting, the lag seems to disappear almost entirely on heavy lighting maps.)


Could anyone share me the code so I can turn this into a common event?
When you open the menu the map is unloaded and when you close it everything is loaded back as if you had just loaded the game, it's not a simple refresh.
Would SceneManager.goto(Scene_Map) or SceneManager.push(Scene_Map) replicate the effect, then? I think the first of those is called when you exit a menu.
SceneManager.push(Scene_Map)
Yes, they both replicate the effect. I have tried them in separate events in a script call.
thank you!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-question-about-screen-refresh-when-exiting-the-main-menu.124454/