- Joined
- Jul 27, 2015
- Messages
- 29
Hey folks!
In my map I track the remaining duration of summons through their mana bar. When they're created they get added to a group which is checked every second, units with 0 mana are killed.
I give them a duration using max/current mana, and give them -1.00 mana regen to tick the timer down.
This lets me manipulate the timers pretty bug free, adding/subtracting flat amounts of time without some annoying bugs I encountered using the summon timer (Including the ability to make stuff temporarily permanent!)
My questions are - Do you know how efficient it is to have the game cycling through the mana regen on all of these units itself?
A trigger which acts on every unit in the summon group every second, reducing their mana by 1 would still be fit for purpouse for my system, and I feel like it would be more resource efficient - does anyone know for sure?
How often does the engine update mana values from regen? Reason for my assumption above is that I assume it does it every .01 seconds
Thanks for reading!
-Sad
In my map I track the remaining duration of summons through their mana bar. When they're created they get added to a group which is checked every second, units with 0 mana are killed.
I give them a duration using max/current mana, and give them -1.00 mana regen to tick the timer down.
This lets me manipulate the timers pretty bug free, adding/subtracting flat amounts of time without some annoying bugs I encountered using the summon timer (Including the ability to make stuff temporarily permanent!)
My questions are - Do you know how efficient it is to have the game cycling through the mana regen on all of these units itself?
A trigger which acts on every unit in the summon group every second, reducing their mana by 1 would still be fit for purpouse for my system, and I feel like it would be more resource efficient - does anyone know for sure?
How often does the engine update mana values from regen? Reason for my assumption above is that I assume it does it every .01 seconds
Thanks for reading!
-Sad