Jump to content
Sign in to follow this  
Matt @ MPCS

Script Overhauls System

Recommended Posts

Matt @ MPCS

I have a fairly complex script that I have been working on all week and I have finally got the bugs worked out. The problem is that at any time during the execution the script uses anywhere between ~ 85 - 97% of the CPU cycles.

Removed Links to Files per security policy

I would have posted the code except it is almost 350 lines which I believe is too long for a single post on a forum. I hope someone can help.

*** Matt @ MPCS

Edited by Matt @ MPCS

Share this post


Link to post
Share on other sites
Jos

I have a fairly complex script that I have been working on all week and I have finally got the bugs worked out. The problem is that at any time during the execution the script uses anywhere between ~ 85 - 97% of the CPU cycles.

http://www.autoitscript.com/fileman/users/public/Matt%20@%20MPCS/WebCheck.au3 This link will only be available while this topic is open due to security restrictions within my organization.

http://www.autoitscript.com/fileman/users/public/Matt%20@%20MPCS/WebCheck.ini

I would have posted the code except it is almost 350 lines which I believe is too long for a single post on a forum. I hope someone can help.

*** Matt @ MPCS

<{POST_SNAPBACK}>

didn't test the script but looking at it i wonder if it could be this piece and would adding a sleep(10) help ?

;-------------------------------------------------------------------------------------------------------------------------------------
; Begin application loop
;-------------------------------------------------------------------------------------------------------------------------------------
While 1
   If( $tmrStatus ) Then
      If( TimerDiff( $tmrTime ) >= $aTimer ) Then
         RunCheck()
         $tmrTime = TimerInit()
      EndIf
   EndIf
   sleep(10)
Wend
Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Matt @ MPCS

I figured the processing that I do in there was enough but I'll add it and give it a shot. Thanks JdeB!

*** Matt @ MPCS

Share this post


Link to post
Share on other sites
Matt @ MPCS

That did the trick, I did a slight variation of your suggested code but it worked. Thanks alot!

*** Matt @ MPCS

Share this post


Link to post
Share on other sites
Guest Py7|-|[]/\/

Is there any way that you could send me the unmodified verion of that script? I am trying to get the laggiest things possible!

Share this post


Link to post
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
Sign in to follow this  

×