Quantcast WoWInterface - View Single Post - How do I make this options list faster?
View Single Post
06-03-19, 04:31 PM   #8
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,821
Originally Posted by jeruku View Post
Use GetTime() before and after the call/loop to dissuade everyone.
Unless they changed it again, GetTime() only updates its value when a new frame is drawn. You should use debugprofilestart() and debugprofilestop(). It's debatable whether the former is even necessary as you could just compare the timestamps from the later. Also other addons could be using this to precisely keep track of time. Lua is a single-thread environment, but keep this in mind when calling functions from other addons.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 06-03-19 at 04:44 PM.
  Reply With Quote