Found solution to pixelsearch and pixelgetcolor being slow in windows 7, 8 and 10

Helpful script writing tricks and HowTo's
leosouza85
Posts: 2
Joined: 22 Jul 2016, 16:28

Found solution to pixelsearch and pixelgetcolor being slow in windows 7, 8 and 10

22 Jul 2016, 16:35

I was suffering with pixelsearch and pixelgetcolor being very very slow in windows 7 and 10. So I did some research, tests and benchmarks and found that the cause is windows desktop theme effects...

Performance improves in the same script from 1300 ms to 15 ms


Solution for Windows Vista. and 7
Open the script in compatibility mode with windows XP. Or use windows classic theme.

Windows 8 and 10:

Since is not possible to use windows classic theme if you install the classic shell app and use classic style you are good to go.
Last edited by leosouza85 on 23 Jul 2016, 12:37, edited 1 time in total.
User avatar
Xtra
Posts: 763
Joined: 02 Oct 2015, 12:15

Re: Found solution to pixelsearch and pixelgetcolor being slow in windows 7, 8 and 10

23 Jul 2016, 12:13

leosouza85 wrote:
Performance improves in the same script from 1.300 ms to 15 ms


That would make it slower? 1.3000 < 15
leosouza85
Posts: 2
Joined: 22 Jul 2016, 16:28

Re: Found solution to pixelsearch and pixelgetcolor being slow in windows 7, 8 and 10

23 Jul 2016, 12:38

Xtra wrote:
leosouza85 wrote:
Performance improves in the same script from 1.300 ms to 15 ms


That would make it slower? 1.3000 < 15


Sorry I used the wrong notation, I mean 1300 vs 15 ms.
HugoSr
Posts: 1
Joined: 01 Mar 2017, 06:55

Re: Found solution to pixelsearch and pixelgetcolor being slow in windows 7, 8 and 10

01 Mar 2017, 07:11

leosouza85 wrote:I was suffering with pixelsearch and pixelgetcolor being very very slow in windows 7 and 10. So I did some research, tests and benchmarks and found that the cause is windows desktop theme effects...

Performance improves in the same script from 1300 ms to 15 ms


Solution for Windows Vista. and 7
Open the script in compatibility mode with windows XP. Or use windows classic theme.

Windows 8 and 10:

Since is not possible to use windows classic theme if you install the classic shell app and use classic style you are good to go.


Sorry, but it doesn't work for me with Windows 10 and Classic Theme in Classic Shell.

Return to “Tutorials”

Who is online

Users browsing this forum: sv270190 and 1 guest