Hi guys
While thinking about how to improve the buff counters for nkThings I became unsure if I'm doing the right thing.
There's an add and a remove event for buffs which I'm using. However the change event only fires if the buff fundamentally changes. Either I'm blind or I didn't find any event which fires if the remaining duration of a buff changes.
This means that I had to implement an event.upate.begin routine which checks for new buff duration and updates the timers. In order to not have a to big impact on performance I throttle these checks. Only once per second the check for updated remaining times is done.
Isn't there any better way to do this? The problem with a fixed check interval is that the remaining starts as soon as a buff is cast. Currently I'm rounding the remaining time to the full second. This of course means therefore it's remaining will always be slighty incorrect.
Anybody got a better idea? I really hope someone can tell me that I missing something fundamentally
Cheers
N.




Reply With Quote

Bookmarks