Elitist Jerks
Register
Blogs
Chat
Forums
New Posts


Go Back   Elitist Jerks > Public Discussion > User Interface and AddOns

Welcome to Elitist Jerks
If this is your first visit, please be sure to check out the FAQ and the forum rules. Users must register to post and new registrations are subject to a one day "mute" period to get acquainted with the community. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
 
LinkBack Thread Tools
Old 05/24/07, 10:33 PM   #1 (permalink)
Still alive
 
Antiarc's Avatar
 
Human Rogue
 
Cenarion Circle
Kill your extraneous KTM CPU usage

So, with the advent of the new addon profiling tools in 2.1, it's become pretty obvious that KTM is spending a TON of time processing all its onupdate handlers per frame. This is due to KTM's design, which uses a brute force polling system, rather than an event-driven system, so there's a lot of additional overhead incurred when there's no work to be done.

So, on a whim, I banged out this mod this afternoon. What it does, basically, is disable KTM any time there's nothing interesting going on, reclaiming valuable CPU-per-frame time.

You can get it at http://files.wowace.com/KTMCPUManager/KTMCPUManager.zip or through WowAceUpdater

It's basically about as fire-and-forget as they come. Install it and it does the rest. No config or anything to worry about.

On my machine, KTM consumes between 6% and 8% of my UI time per frame while CPU profiling is enabled. With the mod enabled, that drops to under 0.01%. This doesn't do anything to improve performance in combat, but you won't be wasting cycles sitting around Shattrath anymore, either.

Try it out, let me know what you think. Feedback is welcomed!
 
User is offline.
Reply With Quote
Old 05/24/07, 10:52 PM   #2 (permalink)
Don Flamenco
 
Miaxi's Avatar
 
Troll Shaman
 
Al'Akir (EU)
Wow, that's awesome. Thanks a lot.
 
User is offline.
Reply With Quote
Old 05/24/07, 10:54 PM   #3 (permalink)
Spiral out
 
Intermission's Avatar
 
Orc Hunter
 
Frostmourne
Just to clarify, there is no chance this will lead to bugs / missing data in combat?

Trying it now
 
User is offline.
Reply With Quote
Old 05/24/07, 10:58 PM   #4 (permalink)
Still alive
 
Antiarc's Avatar
 
Human Rogue
 
Cenarion Circle
There is always that chance, but I believe it's solid. I erred on the side of caution, so if anyone in your raid as much as targets a hostile target, KTM will kick on. The idea is to keep it off when you're in situations that aren't anywhere near needing it.

Please do watch for discrepancies, but I do expect that it's safe.
 
User is offline.
Reply With Quote
Old 05/25/07, 1:54 AM   #5 (permalink)
Spiral out
 
Intermission's Avatar
 
Orc Hunter
 
Frostmourne
Fair enough. Seems to work fine for me so far!
 
User is offline.
Reply With Quote
Old 05/25/07, 2:15 AM   #6 (permalink)
Von Kaiser
 
Sinzar's Avatar
 
Human Death Knight
 
Greymane
So I'm just curious, since I don't fully understand CPU cycles and such. Is there something bad about a mod processing stuff while in town, etc? I read the description, saw that KTM runs code constantly while idle, immediately thought it sounds bad, but realized I don't really understand the inner workings of that kind of stuff.

I use KTM, and am always looking for ways to improve my UI. This mod won't improve any performance while in combat, which is about the only time performance matters very much. So, are there any negatives to more code running in town such as miniscule wear and tear on your CPU or something? I know, I sound noob, but I like to understand this kind of stuff, and the best way to learn is to ask
 
User is offline.
Reply With Quote
Old 05/25/07, 2:31 AM   #7 (permalink)
Still alive
 
Antiarc's Avatar
 
Human Rogue
 
Cenarion Circle
There's nothing inherently bad about it, other than that it slows everything else down, including your framerate. Obviously, the ideal case would be increased combat performance, but this was "low hanging fruit", as it were, so I went for it.
 
User is offline.
Reply With Quote
Old 05/25/07, 6:48 AM   #8 (permalink)
Von Kaiser
 
Mech0z's Avatar
 
Gnome Hunter
 
Magtheridon (EU)
It sounds like it disables KTM when your not in combat but would it be possible (maybe a toggle) to make it only active in party/raids ?

 
User is offline.
Reply With Quote
Old 05/25/07, 12:40 PM   #9 (permalink)
Still alive
 
Antiarc's Avatar
 
Human Rogue
 
Cenarion Circle
It does that already, Mech0z.
 
User is offline.
Reply With Quote
Old 05/25/07, 1:19 PM   #10 (permalink)
Spiral out
 
Intermission's Avatar
 
Orc Hunter
 
Frostmourne
Raided with it tonight and worked fine.

Seemed to do pretty much what Antiarc said, just turns it off (window is still there, but nothing happening) until you're about to start the boss/trash. When people select a mob it kicks in I guess.

Thanks Antiarc! anything for a bit better performance running around Shattrath or GY running, etc.
 
User is offline.
Reply With Quote
Reply

Go Back   Elitist Jerks > Public Discussion > User Interface and AddOns

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Warrior] - Potion Usage Toabo Class Mechanics 21 06/23/07 2:53 AM
Holy Priest usage in raids Idefix Public Discussion 247 06/20/07 3:17 PM
Addon resource usage? Groglox User Interface and AddOns 29 04/17/07 4:37 PM
[Tank] Consumable Usage Post 2.1 Riot Class Mechanics 10 04/16/07 6:59 PM