I noticed something interesting today while walking around in game.
I have one map that extends along a Y axis. Player walks north to south. The bottom half of the map will lag a considerable amount when I start walking around in it. When I walk out the southern exit to the next map, that map lags as well. If I return to the north part of the first map it stops, and when I take the west exit of the second map that lags, it also stops.
Any idea what is causing this?
It might be important to note that there are no scripts or objects that I have placed in these maps, they are just empty worlds with tiles.
They connection script is whats causing it. Larger maps will lag as long as their next connection is a large map. So the way to eliminate this is either reducing the size of your maps, or removing connections and making the transfer through events (sort of like PSP DS does it). Also if you break the maps into smaller maps and then connect them, there will be less lag on each individual map. You might want to consider reducing the number of maps connected to an individual map, that might reduce the lag too. The reason for this problem is that if there is a connection set within the maps, RMXP will load the current map, and its adjacent connections at the same time, along with all that goes with it (events, autotiles, etc).