Thread Tools Display Modes
09-24-19, 12:22 PM   #1
tirafesi
A Murloc Raider
Join Date: Sep 2019
Posts: 8
Energy tick rate

I made a frame to track energy tick rates, but how do I sync it?

I started counting 2s from the first OnUpdate, but that doesn't work.

When does the first energy tick happen?
  Reply With Quote
09-24-19, 03:31 PM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
There is nothing you can use to directly tell you about energy ticks, you can only sync them with the event UNIT_ENERGY. It always fires when you login to a rogue, which should be the start of the tick, so start your OnUpdate count on that event. If it still isn't syncing up, try coding it to resync itself every time it measures an energy increase outside of combat.
  Reply With Quote
09-25-19, 07:16 AM   #3
tirafesi
A Murloc Raider
Join Date: Sep 2019
Posts: 8
Originally Posted by Kanegasi View Post
There is nothing you can use to directly tell you about energy ticks, you can only sync them with the event UNIT_ENERGY. It always fires when you login to a rogue, which should be the start of the tick, so start your OnUpdate count on that event.
I tried this using the events UNIT_POWER_UPDATE and UNIT_POWER_FREQUENT - UNIT_ENERGY no longer exists - but the events don't fire when logging in.
  Reply With Quote
09-25-19, 09:29 AM   #4
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
My bad. I was looking at how IceHUD does their energy tick, which is what I use, and I missed the part of the code that checks for WoW version.
  Reply With Quote

WoWInterface » Classic - AddOns, Compliations, Macros » Classic - AddOn Help/Support » Energy tick rate

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