Download
(5Kb)
Download
Updated: 09-01-12 11:42 PM
Pictures
File Info
Updated:09-01-12 11:42 PM
Created:10-12-10 01:21 PM
Downloads:7,184
Favorites:35
MD5:

GreenRange  Popular! (More than 5000 hits)

Version: v1.0.3
by: Morsker [More]

Description

GreenRange turns your buttons RED when abilities are out of range. Several addons do this, but GreenRange is very efficient at it. It's "green" because it's modern and efficient, not because of the color. :P If you really like green though, you can configure it for green!

GreenRange actually has a negative performance cost, because it replaces some really inefficient code in the default UI. It's not going to increase your framerate by more than 1, but still, it works so well that it actually improves performance vs. not having it.

Profiling

If you profile range-checking addons like this, you want to look at CPU usage, not memory usage. OptionHouse can profile CPU, but its "%" metric isn't that meaningful because it's relative to the other addons you have running. "CPU/Sec" is the easiest metric to use. "CPU" is meaningful only if you a) do the timing yourself, say 60 seconds, and compare equivalent times or divide to make them equivalent, and b) /run ResetCPUUsage() first so the counting starts at zero.

Options

There's no config UI yet, but you can use /run commands to change the colors, and the setting will be saved. These are the defaults:

/run GreenRange:SetOOR_Color(1.0, 0.2, 0.2)
/run GreenRange:SetOOM_Color(0.2, 0.2, 1.0)

v1.0.2
- TOC bump for patch 4.2.

v1.0.1
- TOC bump for patch 4.1.

v1.0
- First release.
Optional Files (0)


Post A Reply Comment Options
Unread 07-03-11, 02:49 AM  
Frayol
A Deviate Faerie Dragon
 
Frayol's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 127
Uploads: 4
Very nice addon, simple and does exactly what is supposed to. My only suggestion would be not to add a config UI at all, but to simply have the config as a couple of lines at the top of the GreenRange.lua to set the OOR & OOM colours. That way you could also do away with the saved variables. Just a personal opinion, but someone using this would either not bother to change the colours or would only do it the once so why have extra code for it?
Report comment to moderator  
Reply With Quote
Unread 12-05-10, 02:42 AM  
Barjack
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 89
File comments: 58
Uploads: 7
Great addon. My old range checking addon (which used quite a bit of CPU already) broke, and converting it to secure hooks made the CPU problem even worse again. Then I tried this and found that instead of increasing my CPU significantly to fix my taint issues, this fix them and reduced it by 90%. Really nice work.
Last edited by Barjack : 12-05-10 at 05:10 AM.
Report comment to moderator  
Reply With Quote
Unread 10-12-10, 01:23 PM  
Morsker
A Fallenroot Satyr
 
Morsker's Avatar
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 89
Uploads: 8
Very many addons do this already, but I was having so much fun writing it that I couldn't stop, even when I kept finding out about more range-coloring addons I hadn't heard of.

I like mine the most but I'm biased. :P It does profile very well though!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: