View Single Post
01-22-13, 06:59 PM   #15
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Phanx has been known to have a stick up his ass on some things, but at times, does make valid points. This entire topic is really a judgement call on how many indexing operations are made overall. While function calls do have an impact on CPU usage, so does executing any code in Lua versus C code. On the argument of whether having one function loop to update 20 frames or have those 20 frames run the same handler, I have seen no proof to claim which is more efficient. As for what I do myself, that would depend on if the features I intend to implement require 20 frames or if I could just get by on one container frame with 20 sets of Textures and FontStrings. A lot of things depend on what you want the code to do overall and no one solution is viable for everything.
__________________
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)
  Reply With Quote