I'm using Blizzards Continuous Maps. This request is more for an add on than a complete script I guess.
When using the script I noticed that it works best if all connected maps have the same tileset, else you get odd squares appearing on the maps you arent directly on.
So each of my connected maps uses the same tileset to avoid the odd look. But, annoyingly whenever you go between maps there is some amount of lag while it reloads the tileset.
Would it be possible in some way to have the tileset preloaded so it neednt reload the same thing over and over?
The trick here would also be that non connected maps use different tilesets, so it cant be loaded the entire time.
Actually the tileset stays in memory after the first time it has been loaded. It's not the tileset loading that is causing the lag, but the loading of all other maps that are connected. Those are actually cached as well, that's how I made the system work.
I see.
Would there be any way to further reduce the lag? If everythings loaded anyway?
Not really, no. There's not much that can be done. You could only try to keep your maps reasonably small and not to have too many events on them if not really necessary. But trust me, feeling a short moment of lag when changing maps won't be really noticed by the player except if it takes more than half a second.
Hmm, maybe it is just because I know its there
I usually noticed it, too, even though it was probably 0.1-0.2 seconds. It's just because I knew it was there. xD