Jump to content

High CPU Usage...


Dude
 Share

Recommended Posts

Hi,

after starting the script and waiting 1 to 2 Minutes, the CPU usage goes very high. Why?

<{POST_SNAPBACK}>

Didn't test it but looked at the code. You have a big loop to poll all those check boxes. why not use a Treeview with the tvs checkboxes style instead. That should lower cpu usage. here is an example of what one would look like.

Posted Image

(Look in the bottom right corner to see the example.)

Edit: Just realized that that wasn't a loop. it is only called when the ok button is clicked. Sorry for the mistake.

Edited by SolidSnake
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

  • Developers

Hi,

after starting the script and waiting 1 to 2 Minutes, the CPU usage goes very high. Why?

<{POST_SNAPBACK}>

You are using opt("GUIOnEventMode", 1) so GUIGetMsg() fails...

Replace:

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd

with:

While 1
    Sleep(10)
WEnd

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

You are using opt("GUIOnEventMode", 1) so GUIGetMsg() fails...

Replace:

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd

with:

While 1
    Sleep(10)
WEnd

<{POST_SNAPBACK}>

Thanks a lot :(
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...