Originally Posted by alimjocox
alUI.texture = "Interface\\AddOns\\texture"
--[[ lets say this is going on up here ]]--
very @n4l question here. (hope i'm allowed to say @n4l). gently caress it.
So I've been looking through the code of many minimal UIs (rec, cael, nc, clean, etcc). I'm just wondering what effect on CPU performance does or even memory
Code:
example:SetTexture(alUI.Texture)
in comparison to
Code:
example:SetTexture("Interface\\AddOns\\texture")
Imagine this @ a larger scale ofc. taking in fonts, various integer sizes etc.
hopefully you understand what I mean. But yeah, I'm just wondering, is it simply convenience or are there reasons beyond my noob understanding?
|
Does it matter? alUI.Texture is much much more easy to maintain, because you can change all the textures in one shot in one location, instead of having to find and replace every single "Interface\\AddOns\\texture".
To answer the question, it MIGHT differ a few bytes, so if you that that 1000 times you've saved a kilobyte! YAAAAY!!!!! (srsly, doesn't matter)