[XP] Continuous map load

Started by monkeydash, January 23, 2011, 01:41:02 pm

Previous topic - Next topic

monkeydash

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.

Blizzard

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.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

monkeydash

I see.

Would there be any way to further reduce the lag? If everythings loaded anyway?

Blizzard

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.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

monkeydash

Hmm, maybe it is just because I know its there

Blizzard

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
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.