HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

2 Questions about performance traps

08-10-2003, 07:20 PM#1
Gozai
I make heavy use of special effects in my map. E.g. for visualizing an AoE of a continous groundattack by creating 2-3 Special Effects (of the same kind) per second at random places in a region moved to the target point of the groundattack.

Does this have any impact on the performance ? I heard that special effects are stored in the memory and therefore decrease performance overtime. If this is true, how can I avoid that, especially when using an effect multiple times (For each Integer 1-3 create <Special Effect> ...)

Are there any other triggers/actions/things, that decrease performance in such a way ?

Thx
Gozai
08-10-2003, 08:34 PM#2
FyreDaug
Just use an arrayed variable with only 1 slot or something, then everytime you create one, make sure you destroy it. As long as it is in an array, it will only have 1 memory location.
08-10-2003, 09:31 PM#3
Gozai
Quote:
Originally posted by FyreDaug
Just use an arrayed variable with only 1 slot or something, then everytime you create one, make sure you destroy it. As long as it is in an array, it will only have 1 memory location.


Why use an array when using only 1 slot ?

I could set a variable for "last created special effect" and then destroy it. Or do you mean: set a special effect as variable and refer to that variable everytime an effect shall be placed ?

Thx
Gozai