AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Faster default for SetBatchLines and other settings

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Jul 01, 2004 11:29 pm    Post subject: Faster default for SetBatchLines and other settings Reply with quote

For the next release, I'm considering changing the default of SetBatchLines from 10 to 10ms. This would make scripts run much faster by default, while still being cooperative with games, video playback, etc. However, there is a slight chance that the change would break a few scripts, especially those that rely on split-second timing.

The reasons for this idea are that:
1) The "ms" method for SetBatchLines did not exist at the time of the 1.0.00 release, otherwise it would probably have been made the default then.
2) Certain tasks run very slowly with the default setting, most notably loops that involve thousands of iterations (for files, lines, fields, etc.)
3) It seems best to get this change done sooner rather than later because more and more scripts are being written every day, and so the level of impact will only get worse as time goes on.

I'd also consider reducing the default KeyDelay to 0 and WinDelay to 50 or less, though I'm less enthusiastic about those because the relatively small benefit does not seem to justify the compatibility impact.

Anyway, I'd like to hear any thoughts about whether and why this should be done now, later, or never.

Thanks,
Chris
Back to top
View user's profile Send private message Send e-mail
MikeG



Joined: 23 Apr 2004
Posts: 34
Location: Adelaide, South Australia

PostPosted: Fri Jul 02, 2004 5:48 am    Post subject: Suits me Reply with quote

I've always included SetBatchLines,-1 in every script as a matter of course and it's never caused me a problem, but then I don't use it for any gaming stuff.
Back to top
View user's profile Send private message AIM Address
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Fri Jul 02, 2004 7:34 am    Post subject: Reply with quote

I also use SetBatchLines, -1 most of the time. I would hesitate on changing KeyDelay and WinDelay because I have seen problems with timing on slower PC's if these settings are changed to run too fast.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Jul 02, 2004 1:09 pm    Post subject: Reply with quote

Just to clarify what the 10ms settings does. From the help file:
The "ms" method is recommended for scripts whenever speed and cooperation are important. For example, on most systems a setting of 10ms will prevent the script from using any more than 50% of an idle CPU's time. This allows scripts to run quickly while still maintaining a high level of cooperation with CPU sensitive tasks such as games and video capture/playback.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Fri Jul 02, 2004 4:21 pm    Post subject: Reply with quote

I agree Chris, its better done now than later. and I set batchlines to 10ms in 90 % of my scripts so thats better made default.

the other settings (i think) should be left as-is to maintain key-send & window-recognition reliability, but if at faster settings too these are reliable (with other intensive tasks running) then maybe they can be changed.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group