| View previous topic :: View next topic |
| Author |
Message |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Thu Jul 01, 2004 11:29 pm Post subject: Faster default for SetBatchLines and other settings |
|
|
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 |
|
 |
MikeG
Joined: 23 Apr 2004 Posts: 34 Location: Adelaide, South Australia
|
Posted: Fri Jul 02, 2004 5:48 am Post subject: Suits me |
|
|
| 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 |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Fri Jul 02, 2004 7:34 am Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Jul 02, 2004 1:09 pm Post subject: |
|
|
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 |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Fri Jul 02, 2004 4:21 pm Post subject: |
|
|
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 |
|
 |
|