Page 1 of 1

Script Performance

Posted: 16 Feb 2019, 18:37
by fischgeek
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?

Re: Script Performance

Posted: 16 Feb 2019, 18:43
by gregster
Hard to say. A different anti-virus?

Re: Script Performance

Posted: 16 Feb 2019, 18:45
by safetycar
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?

Re: Script Performance

Posted: 16 Feb 2019, 18:51
by fischgeek
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.

Re: Script Performance

Posted: 16 Feb 2019, 18:59
by SL5
i dont know.

ListLines Off
SetBatchLines, -1
SetKeyDelay, -1, -1
SetWinDelay, -1
SetControlDelay, -1
Process, Priority,, H
Critical , On

Re: Script Performance

Posted: 16 Feb 2019, 19:04
by fischgeek
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?

Re: Script Performance

Posted: 16 Feb 2019, 21:54
by coffee
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

Re: Script Performance

Posted: 17 Feb 2019, 03:00
by just me
SSD vs. HDD?

Re: Script Performance

Posted: 17 Feb 2019, 11:00
by fischgeek
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.

Re: Script Performance

Posted: 18 Feb 2019, 08:59
by nnnik
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

Re: Script Performance

Posted: 18 Feb 2019, 12:46
by Nextron
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?

Re: Script Performance

Posted: 25 Feb 2019, 08:45
by fischgeek
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.