- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
I have a command which creates a unit at some arbitrary level and accordingly levels up its attributes. I use a home brewed bonus mod system, so I do have to add or remove abilities using powers of 2.
I notice that whenever I run this command, there is noticeable lag/pause before the unit is made.
Is this because of the adding/removing of abilities, or an optimization problem with my code?
I have a command which creates a unit at some arbitrary level and accordingly levels up its attributes. I use a home brewed bonus mod system, so I do have to add or remove abilities using powers of 2.
I notice that whenever I run this command, there is noticeable lag/pause before the unit is made.
Is this because of the adding/removing of abilities, or an optimization problem with my code?