Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-30-23, 02:24 AM   #1
glupikreten
A Theradrim Guardian
Join Date: Apr 2009
Posts: 60
SecondsToTimeAbbrev fps drops

Hi,

Can someone please explain me why this causes fps drops and/or how to prevent it?

Lua Code:
  1. local origSecondsToTimeAbbrev = _G.SecondsToTimeAbbrev
  2. local function SecondsToTimeAbbrevHook(seconds)
  3.     origSecondsToTimeAbbrev(seconds)
  4.  
  5.     local tempTime
  6.     if (seconds >= 86400) then
  7.         tempTime = ceil(seconds / 86400)
  8.         return "|cffffffff%dd|r", tempTime
  9.     end
  10.  
  11.     if (seconds >= 3600) then
  12.         tempTime = ceil(seconds / 3600)
  13.         return "|cffffffff%dh|r", tempTime
  14.     end
  15.  
  16.     if (seconds >= 60) then
  17.         tempTime = ceil(seconds / 60)
  18.         return "|cffffffff%dm|r", tempTime
  19.     end
  20.  
  21.     return "|cffffffff%d|r", seconds
  22. end
  23. SecondsToTimeAbbrev = SecondsToTimeAbbrevHook
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » SecondsToTimeAbbrev fps drops

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