I'd still prefer to limit the while loop to run only, say, 10 times per second, rather than every new frame. Comparing two numbers (to check if enough time has elapsed) is likely far more efficient CPU-wise than looking up a frame in _G.
Btw, I pulled these posts from the MoP topic.
Last edited by Haleth : 07-26-12 at 06:18 PM.
Reason: Misread
|