View Single Post
01-26-12, 04:27 PM   #17
Xuerian
A Fallenroot Satyr
 
Xuerian's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 27
So this thread is relevant to my interests.

Using animations instead of throttling OnUpdate seems to be a pretty straightforward way of reducing wasted cycles, since they are handled natively - not free, but faster in C.

A example inspired by NPCScan would be
lua Code:
  1. local group = frame:CreateAnimationGroup()
  2. group.UpdateRate = 60
  3. function group:OnLoop()
  4.   print('60 second tick')
  5. end
  6. -- In your OnLoad
  7. group:Play()
  8. -- When you don't need the timer
  9. group:Stop()
Has anyone put together general information on Animations documentation-wise, beyond api docs? I haven't found any good reading on them until this thread. Benchmarks would be interesting too, though redundant if it is a improvement at all.

Just what I needed. More things to putz with and change instead of working on what I need to =P

Last edited by Xuerian : 01-26-12 at 04:38 PM.
  Reply With Quote