Originally Posted by Pseudopod
I'm interested in getting them show without much delay, but without unnecessary updating. I've put it for now in your money/fps/memory/latency script so that "update = 1," but I figure that might not be the best way to do it?
|
It would be possible to RegisterEvent to UNIT_STATS, UNIT_DAMAGE, COMBAT_RATING_UPDATE (tested with /eventtrace, and at least ArP triggers this) in your OnLoad function, then assign your variables and output the string to the text object within the OnEvent function.
I don't think it would be necessary to check if specific stats have changed, since your variable assignments are pretty light already. I imagine that these events may, at times, fire more than a 1 sec timer during a raid scenario, but I don't believe it would make a noticeable impact on performance.