View Single Post
06-04-18, 02:45 AM   #10
Ammako
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 256
If you wanted (needed?) it to update every frame, wouldn't it be easier to just hook TargetFrame_OnUpdate and CompactUnitFrame_OnUpdate?

Just be careful that your code not be too demanding so that having it run every frame doesn't risk causing performance issues, and it should be okay. It's not usually recommended to hook OnUpdate, and maybe there's a better solution, but if you absolutely need it to run every frame then OnUpdate is your solution (that's what OnUpdate does, after all.)

You could throttle it within the hook function if you needed to, to make it run only every other frame, which may help if performance ever became an issue.

Last edited by Ammako : 06-04-18 at 02:55 AM.
  Reply With Quote