View Single Post
06-25-16, 12:02 AM   #3
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by Tercioo View Post
I'm getting fps drops from 90fps to 7fps when i do use SetTexture() with a .tga file equal or larger than 256x256.
Since it seems a odd issue, I'm wondering if this is happening only for me, may you guys test this too?
I tested your script and got fps drops




But it could indeed be those 10 OnUpdate scripts you're running, isn't that a bit too much?

Lua Code:
  1. for o = 1, 10 do
  2.     local f = CreateFrame("frame")
  3.     f:SetPoint("center")
  4.     f:SetSize(300, 300)
  5.     local t = f:CreateTexture(nil, "overlay")
  6.     t:SetAllPoints()
  7.    
  8.     f:SetScript("OnUpdate", function()
  9.         t:SetTexture("Interface\\1024")
  10.     end)
  11. end