View Single Post
02/27/14, 11:07 AM   #2
Wykkyd
Are you Wykkyd Gaming?
 
Wykkyd's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 107
Far from the truth. Many addons use OnUpdate, yes. Many of those same addons also track individual events very specifically. It greatly depends upon what you're watching and what you're updating. An on-screen clock, for example, needs to update minimum once per second... which is best done in OnUpdate. The toolbar options I have available in Framework mostly update via OnUpdate to grab zone changes, currency changes, xp/vp/ap totals, etc. It does quite a bit every tic so that the data on screen is always fresh without having to peg individual updates onto 3 or 4 dozen specific events.

Still other parts of that same addon, and same feature, track data on specific events like... gaining experience and putting the number into scrolling on-screen text. The initial update to that screen text is done via normal event triggers. The scroll is facilitated via OnUpdate tics with no buffer.

... in other words each kind of event has its purpose.
  Reply With Quote