Script Performance

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
fischgeek
Posts: 435
Joined: 29 Jan 2014, 21:39

Script Performance

16 Feb 2019, 18:37

I know this has been explored in the past, but I'm at a loss as what to do here an was hoping someone could help me.

I have a 2k line script that I run on a daily basis. It has about 11 SetTimer's running. The script runs very smooth on my old HP (Win10 16GB RAM i5). I recently purchased a new sager (Win10 32GB RAM i7) and the script performs terribly. Lags on every hotkey/hotstring.

I have tried using the 64 bit version
I have tried setting batch lines to -1
I have tried setting process priority to high
I have tried to "refresh this pc" (basically reinstalls windows)

Seriously, at a loss here. Anyone have any thoughts that might help?
gregster
Posts: 9073
Joined: 30 Sep 2013, 06:48

Re: Script Performance

16 Feb 2019, 18:43

Hard to say. A different anti-virus?
safetycar
Posts: 435
Joined: 12 Aug 2017, 04:27

Re: Script Performance

16 Feb 2019, 18:45

I think it would be good to make sure that there aren't some important drivers missing.
And maybe take a look on the BIOS to see if you see something weird?
User avatar
fischgeek
Posts: 435
Joined: 29 Jan 2014, 21:39

Re: Script Performance

16 Feb 2019, 18:51

gregster wrote:
16 Feb 2019, 18:43
Hard to say. A different anti-virus?
No. No anto-virus installed on either machine other than Win10's default protection. Thanks.
safetycar wrote:I think it would be good to make sure that there aren't some important drivers missing.
And maybe take a look on the BIOS to see if you see something weird?
Good suggestion. I'll take a look. Thanks.
User avatar
SL5
Posts: 879
Joined: 12 May 2015, 02:10
Contact:

Re: Script Performance

16 Feb 2019, 18:59

i dont know.

ListLines Off
SetBatchLines, -1
SetKeyDelay, -1, -1
SetWinDelay, -1
SetControlDelay, -1
Process, Priority,, H
Critical , On
User avatar
fischgeek
Posts: 435
Joined: 29 Jan 2014, 21:39

Re: Script Performance

16 Feb 2019, 19:04

All good suggestions. Am I the only one who finds it weird that a bigger better badder computer performs worse than the older, not so crappy, but not as good computer?
coffee
Posts: 133
Joined: 01 Apr 2017, 07:55

Re: Script Performance

16 Feb 2019, 21:54

Far fetched, but wouldn't be the first time I've seen a high DPC latency create a chain reaction. Check it if you want to make sure.
Example of something you can use.
https://www.thesycon.de/eng/latency_check.shtml
just me
Posts: 9511
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Script Performance

17 Feb 2019, 03:00

SSD vs. HDD?
User avatar
fischgeek
Posts: 435
Joined: 29 Jan 2014, 21:39

Re: Script Performance

17 Feb 2019, 11:00

coffee wrote:
16 Feb 2019, 21:54
Far fetched, but wouldn't be the first time I've seen a high DPC latency create a chain reaction. Check it if you want to make sure.
Example of something you can use.
https://www.thesycon.de/eng/latency_check.shtml
Thanks! I will.

just me wrote:SSD vs. HDD?
Both are SSD.
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: Script Performance

18 Feb 2019, 08:59

Without any hint as to what your script is doing it will be hard to tell where the performance is lost.
e.g. when you use a lot of FileAppends this topic might be interesting:
https://www.autohotkey.com/boards/viewtopic.php?f=74&t=61853
Recommends AHK Studio
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: Script Performance

18 Feb 2019, 12:46

I would expect debugging would be easy if you can immediately determine whether the script performs poorly or not? What happens when you disable all timers? Do stand alone scripts with a single test hotkey performs bad as well?
User avatar
fischgeek
Posts: 435
Joined: 29 Jan 2014, 21:39

Re: Script Performance

25 Feb 2019, 08:45

I had the same thought too. Even a simple script with 1 hotstring took almost a second (in some cases more) to execute. I tried different versions as well. That along with other issues not related to AHK, I have decided to return the machine. Thanks everyone for your input.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Dobbythenerd1, krl and 107 guests