View Single Post
03-03-14, 02:49 PM   #14
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Originally Posted by semlar View Post
Nonblocking means it doesn't make the game wait for the texture to load before it continues doing other things.
Ok.

nonBlocking="true" is the bad guy.

Setting it to nil will fix the problem. Don't know why or what exactly wents wrong ... but the texture does show up.

Just add

Lua Code:
  1. TempEnchant1Icon:SetNonBlocking(nil)
  2. TempEnchant2Icon:SetNonBlocking(nil)
  3. TempEnchant3Icon:SetNonBlocking(nil)
to you global code.

[e]
I think the basic problem is like this:
The code sets the texture on every onupdate - again and again.
And nonBlocking="true" means the interface does not wait for the loading process to be finished. Which means the texture loading starts and before even a single line of the texture is loaded into the texture frame the loading process starts again. Which leads to a "empty" texture.
If the icons texture is cached then the 'loading process' is fast enough to load it within a single onupdate into the texture frame. If it is not cached (if it was not shown before ... like with the actionbar) than it is not fast enough (the icon must be loaded from disk ... which is to slow to finish within a single onupdate timeframe).
At least something like that.

Last edited by Duugu : 03-03-14 at 03:14 PM.
  Reply With Quote