I have heard that stacking behavior is bad and what i would like to know how it affect the game, does it affect the game even if its a blank behavior that does nothing more then just stacking? At what limit does it affect the game?
Yes, blank behaviors will also affect the games performance.
In general, the less behaviors the better. Try staying below 2000 to be save. That said, there is no reason to have that many behaviors in the game. You should always avoid stack counts > 100 and then instead create stronger versions of the behavior that get applied instead.
For example, you can create an Attack Speed +1%, +10% and +100% behavior and get the desired effect by combining them, example +254% Attack speed would be:
Quote from Mille25:
Yes, blank behaviors will also affect the games performance.
In general, the less behaviors the better. Try staying below 2000 to be save. That said, there is no reason to have that many behaviors in the game. You should always avoid stack counts > 100 and then instead create stronger versions of the behavior that get applied instead.
For example, you can create an Attack Speed +1%, +10% and +100% behavior and get the desired effect by combining them, example +254% Attack speed would be:
This. I do this, after testing and figuring out (and posting in multiple places on this forum) that about 6000 buffs will cause bad lag on a weakish PC, and 12,000 on a top end PC.
As someone else has stated, behaviors with periodics which fire very frequently can be a problem as well; especially if they fire a periodic search; and/or you have too many of these behaviors active at once.
Keep in mind when combining buffs though, that a 5 count of 1 buff may not be the same as a 5X buff. For instance, if I apply a buff which increases the life of a unit with 100 life by 1%, 10 times, I will have 101, 102.1, 103,2, 104.3, 105.5 (roughly) you get the idea. If you do that out 100 times though, you will find that those later 1% increases are a very large increase; potentially giving different stats than if you were to apply 20 stacks of a 5% increase, or 1 stack of a 100% increase.
It actually depends on which stat you modify. Some stats are additive, others multiplicative. This method works very well for most unit stats. For multiplicative stats you will obviously have to use different formulas.
I have heard that stacking behavior is bad and what i would like to know how it affect the game, does it affect the game even if its a blank behavior that does nothing more then just stacking? At what limit does it affect the game?
Yes, blank behaviors will also affect the games performance.
In general, the less behaviors the better. Try staying below 2000 to be save. That said, there is no reason to have that many behaviors in the game. You should always avoid stack counts > 100 and then instead create stronger versions of the behavior that get applied instead.
For example, you can create an Attack Speed +1%, +10% and +100% behavior and get the desired effect by combining them, example +254% Attack speed would be:
2x +100% + 5x + 10% + 4x +1% (11 behaviors) instead of 254x +1%.
Hmm i will just have to use the unit properties then to store values :)
You can use the unit custom values or data tables to store values for specific units efficiently.
Quote from Mille25:
Yes, blank behaviors will also affect the games performance.
In general, the less behaviors the better. Try staying below 2000 to be save. That said, there is no reason to have that many behaviors in the game. You should always avoid stack counts > 100 and then instead create stronger versions of the behavior that get applied instead.
For example, you can create an Attack Speed +1%, +10% and +100% behavior and get the desired effect by combining them, example +254% Attack speed would be:
2x +100% + 5x + 10% + 4x +1% (11 behaviors) instead of 254x +1%.
----
This. I do this, after testing and figuring out (and posting in multiple places on this forum) that about 6000 buffs will cause bad lag on a weakish PC, and 12,000 on a top end PC.
As someone else has stated, behaviors with periodics which fire very frequently can be a problem as well; especially if they fire a periodic search; and/or you have too many of these behaviors active at once.
Keep in mind when combining buffs though, that a 5 count of 1 buff may not be the same as a 5X buff. For instance, if I apply a buff which increases the life of a unit with 100 life by 1%, 10 times, I will have 101, 102.1, 103,2, 104.3, 105.5 (roughly) you get the idea. If you do that out 100 times though, you will find that those later 1% increases are a very large increase; potentially giving different stats than if you were to apply 20 stacks of a 5% increase, or 1 stack of a 100% increase.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418
@Mille25: Go
This is based on a pretty poor understanding of the math. 254 1% behaviors would actually be 1.01^254 = 12.5, rather than 1 + (0.01 * 254) = 2.54.
So it's the difference between a multiplier of 12.5 and a multiplier of 2.54.
It actually depends on which stat you modify. Some stats are additive, others multiplicative. This method works very well for most unit stats. For multiplicative stats you will obviously have to use different formulas.