Matt @ MPCS Posted October 28, 2004 Share Posted October 28, 2004 (edited) 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 policyI 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 October 28, 2004 by Matt @ MPCS Link to comment Share on other sites More sharing options...
Developers Jos Posted October 28, 2004 Developers Share Posted October 28, 2004 (edited) 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.iniI 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 October 28, 2004 by JdeB 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 More sharing options...
Matt @ MPCS Posted October 28, 2004 Author Share Posted October 28, 2004 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 Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted October 28, 2004 Author Share Posted October 28, 2004 That did the trick, I did a slight variation of your suggested code but it worked. Thanks alot! *** Matt @ MPCS Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted October 28, 2004 Share Posted October 28, 2004 Is there any way that you could send me the unmodified verion of that script? I am trying to get the laggiest things possible! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now