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:
local group = frame:CreateAnimationGroup()
group.UpdateRate = 60
function group:OnLoop()
print('60 second tick')
end
-- In your OnLoad
group:Play()
-- When you don't need the timer
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