• World of Warcraft Addons
  • World of Warcraft
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

RangeColors

 

Project Updated:
Files Updated: Tue, Aug 11 2009
Supports Game Version: 3.2.0
Category: Action Bars
Tags:

[Edit Tags]

Project Manager: Yarko
Additional Authors: No additional authors
Current Version: 2.1.2
License: All Rights Reserved
Development Site: CurseForge
Avg Daily DL (last 30 days): 49
Downloads Total: 10,068
Favorites: 58
Comments: 4
  • About RangeColors
  •  

A World of Warcraft add-on that provides more obvious action button coloring for out of mana/rage/energy and out of range conditions.

Configure colors through the RangeColors interface options panel.

  • Downloads (2)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  RangeColors 2.1.2 Release 3.2.0 6,152 8/11/2009
  RangeColors 2.1.1 Release 3.1.0 3,914 5/3/2009
  • 1 page(s)
  • Screenshots (1)
  •  
  • Comments

Add Comment  

Add

You need to login or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • Where in the lua do I put the following code to throttle the _onupdate event?

    function RangeColors.ActionButtonOnUpdate(self, elapsed)
    if not self.rangecolors_elapsed then
    self.rangecolors_elapsed = 0
    end
    self.rangecolors_elapsed = self.rangecolors_elapsed + elapsed

    -- Update every 0.2 seconds max (5 times a second)
    if self.rangecolors_elapsed > 0.2 then
    self.rangecolors_elapsed = 0
    -- Do stuff here
    end

    Reply Report Permalink
  • HunterZ said 

    How does this compare to RedRange?

    Reply Report Permalink
  • They do the same thing, essemtially. Its just that they both tear a new ass in your CPU

    Reply Report Permalink
  • Yarko said 

    OK, before people start running screaming from my add-on (not that I'm all that concerned that people use it), I want to make it clear: On both my really, really old laptop, and on my sort of old desktop, I see no difference in fps whether or not I have this add-on loaded. And I don't mean that the frame rate sort of feels the same. I mean that the fps number that WoW reports is exactly the same. I sat up on Ironwall Dam soloing Pustulant Horrors with my boomkin and WoW consistently reported fps from 27 to 30 with and without the add-on loaded. Granted this test was not extremely graphics intensive, but I do raid pretty frequently with this add-on loaded and during raids, my framerate is never much worse than that.

    Now, I do not CPU profiling, so I really can't speak to how the CPU is being used when the add-on is loaded. However, I will take another look at the add-on to see if there is anything I can do to optimize it. If there is any change I want to try, I will post a beta version at some point, and hopefully, MarcAntony can run it with his profiler.

    However, I am not terribly optimistic. I run a ton of other add-ons that I KNOW are more CPU intensive and more poorly written than this one, and my framerate doesn't change at all even if I disable all of them. :)

    Reply Report Permalink
  • HunterZ said 

    They both do? What are the advantages/disadvantages of RangeColors versus RedRange?

    Reply Report Permalink
  • Yarko said 

    I don't know for sure since I have never used redrange. I used ActionButtonColors back when Cosmos was still alive. When Cosmos died, I wrote this one. I tried to make it as simple as I could. redrange might have more options. All you can do with this one is change the two colors. :)

    Reply Report Permalink
  • RedRange does not have any options at all, I think :D
    And two Posts below, I citated a Explanation, why these AddOns seem to be CPU-Killers ;)

    Reply Report Permalink
  • Okay, my friend, I am very much happy that you are working on this addon because I'm addicted to it - but we have a problem.

    I've been raiding since UBRS and being a DPS caster, I fell in love with Redrange a couple years ago. Even though it stopped updating, Ive been using it anyway since I figured a simple lil thing like this can't harm anything and I run 80 addons and have zero errors.

    But then I decided to profile CPU useage and to my dismay, Redrange was using an obscene amount of CPU cycle and power. I mean obscene - 10x as much as #2 on the list, Power Auras.

    So I went on a search for an updated type of Redrange and found this (scorrrre!). I login and CPU profile and aaaaaack! Still using insane amount of CPU time. I turn it off to raid tonight and notice my FPS is noticably higher in combat and when Frapsing (especially when Frapsing).

    This is a shame because these addons are so helpful, but I wanted you to be aware of the problem and maybe something can be done to fix it.

    Thanks for the great addon - lets hope it can be made to work w/o killing processors =p

    Reply Report Permalink
  • Well, the answer is quite simple. I'll just citate Tuller, author of the actionbar mod "Dominos". He explains ist very well:

    "Do you notice any discernible difference in performance with redrange enabled versus when its disabled?

    Basically, every time a frame is rendered, RedRange asks each visible action button:
    * Is it time to check my status again?
    * Should I be red or not?
    * Is this a change from last time?
    If all of those conditions are true, then the action button's redness is updated. Otherwise, RedRange does nothing.

    Now, the blizzard CPU profiler sees that check and says, "hey this addon is doing something, I better record its time" So it then increment's red range's CPU count. Now, what I suspect happens here is that, even though its a very very tiny amount of CPU work being done, the CPU profiler can only insert a value greater than say 0.05, and nothing lower than that. So the redrange addon may just be doing 0.00001 work, but is counted as 0.05. and thus you see the inflated number for CPU usage.

    It is within my ability to write a more efficient version, but unless red range is really killing someone's FPS, I do not think there's a need to."

    So, RedRange or RangeColors are "forced" to update with all these "ActionButton_OnUpdate" events, that means, every frame.

    Reply Report Permalink
  • It's really not that difficult to throttle the ActionButton_OnUpdate event...


    function RangeColors.ActionButtonOnUpdate(self, elapsed)
    if not self.rangecolors_elapsed then
    self.rangecolors_elapsed = 0
    end
    self.rangecolors_elapsed = self.rangecolors_elapsed + elapsed

    -- Update every 0.2 seconds max (5 times a second)
    if self.rangecolors_elapsed > 0.2 then
    self.rangecolors_elapsed = 0
    -- Do stuff here
    end

    Reply Report Permalink
  • MrPel said 

    TY MUCH!

    Reply Report Permalink
  • 1 page(s)
  • Similar Addons
  •  

Average downloads per day

  1. 3,427 Bartender4 Action Bars
  2. 3,161 Dominos Action Bars
  3. 1,788 ButtonFacade Action Bars
  4. 1,326 AutoBar Bags & Inventory, Action Bars...
  5. 453 SpellFlash Combat, Action Bars, Hunter...