Thread Tools Display Modes
04-25-10, 05:27 AM   #1
alimjocox
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 96
i have yet another question ( best title i could think of )

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?
  Reply With Quote
04-25-10, 05:54 AM   #2
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 716
Originally Posted by alimjocox View Post
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)
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
  Reply With Quote
04-25-10, 06:02 AM   #3
alimjocox
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 96
Originally Posted by nightcracker View Post
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)
cool thx. I was under the impression since its a global thing it might make the CPU work a nano of a fraction harder (I DONT KNOW lol). especially if the 'sed' texture is declared often.

If that is totally wrong - glad to be learning
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » i have yet another question ( best title i could think of )

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off