HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Preloading unit abilities = ridiculous loading time.

04-08-2007, 06:17 AM#1
Kojiro
Alright, at the start of my map, to prevent any future "add ability to unit" lag, I create a unit, then load and remove every ability that it is needed to do so with, in my map.

The result is an incredible loading (read: lag) time at startup.

I have the cinematic mode on and a black mask to cover up the fact that not only is the map lagging at this point, but people start to lag like crazy for a while until the map starts up.

(Other people have complained of disconnects, and I've seen a server split once whilst hosting. I don't know if this is related or not.)

Any help is greatly appreciated.
04-08-2007, 06:22 AM#2
Earth-Fury
Place a unit on the map with all your abilitys, and remove it on map initialization. That will cause WC3 to preload all the abilitys during loading, if i remember right.

if not, add an ocasional wait into your ability loading trigger.
04-08-2007, 06:53 AM#3
Kojiro
Quote:
Originally Posted by Earth-Fury
Place a unit on the map with all your abilitys, and remove it on map initialization. That will cause WC3 to preload all the abilitys during loading, if i remember right.

if not, add an ocasional wait into your ability loading trigger.


Ah, didn't try doing it on Map Initialization, figured it might explode or something.

I'll try it, thanks.
04-08-2007, 09:14 AM#4
Zwan
nope, no explosion. just preplace and remove on init.