Quantcast Classic: UnitHealth() has large delay - how to avoid? - WoWInterface
Thread Tools Display Modes
09-04-19, 04:59 PM   #1
Basil2
A Deviate Faerie Dragon
Join Date: Feb 2015
Posts: 17
Classic: UnitHealth() has large delay - how to avoid?

It looks like that player's HP returned by UnitHealth() are updated with delay about 500 ms.

So when I handle UNIT_SPELLCAST_STOP event after succefull heal, UnitHealth() still returns old hp value for half second after cast!

My WoW ping is 40ms, and I have no such problem with actual WoW.

Any ways to avoid this problem?
  Reply With Quote
09-05-19, 02:38 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,739
Maybe the unit does not have frequent health updates registered?
UNIT_HEALTH triggering not so often has always been the case.

If you have access to the unitframe adding UNIT_HEALTH_FREQUENT might help.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 09-05-19 at 02:40 AM.
  Reply With Quote
09-05-19, 10:41 AM   #3
Basil2
A Deviate Faerie Dragon
Join Date: Feb 2015
Posts: 17
Actually the unit is the player, so I expected that player's health updates are extremely frequent.

I tried UNIT_HEALTH_FREQUENT but it doesn't help I just receive it with delay over 200ms, even for a player.

I also tried to calculate health manually right after cast, but UNIT_HEAL_PREDICTION doesn't exist
__________________
Levelbuddy - super easy multibox software for DUO leveling.

Last edited by Basil2 : 09-05-19 at 11:00 AM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Classic: UnitHealth() has large delay - how to avoid?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off