What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Help » CPU usage

CPU usage
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: CPU usage
quote:
Originally posted by Chris4
I'm sure it can be done.

Computer Details can find how much memory is being used, so I can't see it will be that hard to make your status change to busy if it goes over a certain amount.
Memory and cpu usage are two completely different things...

Memory is in no way a good status indicator. As for cpu usage, that can be very tricky to properly detect. Especially the method used in the ComputerDetails script; it doesn't always work for all processors and is slow (too slow for decent monitoring).

------

Anyways, cpu usage isn't the best thing to base your status on either (it's better than memory, but still). On a normal computer your CPU usage fluctuates a hell of a lot and a cpu usage of close to 100% does not mean you can't do anything else.

Moreover, in many cases the cpu usage only stays high a very short time (eg: starting up programs). Do you want your status changed each time because you simply start a program?

This could be solved by monitoring the cpu usage over a period of time, and when it stays above a certain treshold trigger the status change. But.... this wont work properly, because in order to monitor the cpu load constantly (aka polling; which is in almost all cases not a good thing todo) you need to use the cpu constantly, so you'd actually create some cpu load with the script itself...

So, not impossible to make, but very tricky to get it right (eg: polling too much and you actually will change your status the moment you start the script, polling too little and you wont be able to detect a constant cpu load) and it's probably very highly computer dependant (what works decent on one pc, wont work decent on the other). Not to mention you need a fast and reliable way to detect cpu load (wmi isn't very reliable in this context, seeing the ComputerDetails script where the cpu related variables wont work in 3/4 pc's here).

This post was edited on 06-22-2007 at 05:27 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-22-2007 04:58 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
CPU usage - by Workin on 06-21-2007 at 04:44 PM
RE: CPU usage - by Chris4 on 06-21-2007 at 06:10 PM
RE: CPU usage - by absorbation on 06-22-2007 at 04:08 PM
RE: CPU usage - by CookieRevised on 06-22-2007 at 04:58 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On