What exactly happens when a map is loaded?

In testing a solution for someone in another thread I came upon a funny interaction between Galv Event Spawner https://galvs-scripts.com/2016/05/14/mv-event-spawner/ and Mog Event Indicators https://atelierrgss.wordpress.com/rmv-event-indicators/

At first I didn't believe they worked together. I created an event with comments for the event indicator and when placed on the map it worked. But when spawned in it didn't. Then I left the map and returned, to find the same spawned event now working. I repeated the test with Yanfly's and got the same results. Both tests were done with a new project, and no additional plugins.

So my question is, what exactly the is the process that happens when a map is loaded?
mostly, it refreshes the map and events where needed, dont know any other thing.
if the spawned events dont show the indicator unless you move in and out.

than there is a refresh compability or not added in the indicator or spawned event.
you can try to make an aliasing plugin where it spawn and the indicator to refresh.
there was also something to force a refresh map for the events, but not sure where
I saw than or remember that scriptcall.

not really sure if that refresh can indicate the spawn event directly though.
When a map is done loading, the relevant display objects (sprites, windows, etc) get initialised.

It seems that MOG's plugin initialises the event indicator sprites immediately after the lower layer map sprites, rather than on event creation. This means that spawned events will not have their indicators until the map is reloaded. 😔

There might be some kind of script call you can use to add the indicator sprite on demand when an event is spawned, but I'm not certain how to approach it... 😅
I don't know what those plugins do, but loading a map will make the game load the appropriate $dataMap file and store the information in $gameMap. Then it refreshes the map sprite with the correct tileset, and then loads events. That's what I remember from the top of my head, but the order or process might be slightly different.
Thanks to everybody in the thread. What I learned here led me towards the answers to simply build my own plugin using Pixi. Time to refine that, add in sprite support and eventually go so overboard that I replace all of my Interface and messaging with it. Thanks again!:LZScheeze:

Original thread: https://forums.rpgmakerweb.com/threads/what-exactly-happens-when-a-map-is-loaded.118890/