HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Caster System Q: Will too many casters result in lag?

05-11-2006, 09:55 AM#1
poz
I'm making a skill that entangle all the non-hero units around the caster, so I'll be using the function CasterCastAbilityAOELoc and notice a problem that is: If I put instant = true the caster caster won't get the money and exp from killing the creeps with that entangle. So I put the recycledelay to 15 secs(the duration of entangle) and it works.

But if I'm correct by doing that it will create alot of caster because they are occupied when the entangle takes effect and I'd like to know if there is a massive of units get entangled by this spell will it cause serious lag because of high amount of caster(Especially when multiple heroes' has such skill)?
05-11-2006, 01:19 PM#2
Vexorian
Too many of anything will result in lag.

But it is hard to define how much is too many. I would say that even 200 casters wouldn't hurt and if there is a moment where this mass entangling roots is affecting 200 units at the same time then your map already has too many units and it will lag with or without the mass entangling roots spell

The biggest reason for unit lag are models, and more likelly polys. The caster unit model is really small in memory and doesn't require drawing. Sometimes my map was bugged and I was not able to notice that 400 casters were created
05-11-2006, 02:33 PM#3
poz
Erm.. So if there's only around 20 unit get entangled it shouldnt cause massive lag right? If yes then it should be something else that cause the lag.
05-11-2006, 02:36 PM#4
Vexorian
you already tested and there is lag? 20 units is less than nothing so if you notice the lag at the moment you cast entangling roots it might be that you are not preloading the spell. If the lag persists during the entangling roots casting, then it could be model lag. Err many things can cause lag so I would have to see the map before giving a result
05-11-2006, 03:24 PM#5
poz
Oh I forgot the preload, it's ok now.

Thanks