Page 1 of 1

How long should it take to search for a pixel in a 800x600

Posted: Wed Dec 08, 2010 6:37 pm
by Exempt
How long should it take to search for a pixel in a 800x600 window if I increment the search at 3-10 pixels? I remember the function used for this was bugged and went extremely slow on my windows 7 pc but I'm going to try and make that code using c++ and scan for a few colors here and there, if it's not way to slow.

Re: How long should it take to search for a pixel in a 800x6

Posted: Wed Dec 08, 2010 10:22 pm
by Administrator
It depends how you read the values. If you use ReadProcessMemory(), it'll still be really slow. If you, instead, inject some code so that you can natively read the information from within the same process, it'll be almost instant.

Re: How long should it take to search for a pixel in a 800x6

Posted: Thu Dec 09, 2010 1:15 pm
by Exempt
Is the pixelSearch function you hae in micromacro super slow or but it be less then 1 sec to scan 800x600? It's wouldn't be a constant thing and most likely it'd much much small areas such as 10x10.

Re: How long should it take to search for a pixel in a 800x6

Posted: Thu Dec 09, 2010 8:12 pm
by Administrator
It is pretty slow. It uses GetPixel() (for compatibility reasons), so it has to make requests to the process and wait for the result for each individual pixel. The speed depends upon the system it is run on, size of the area, and the step size. Still, it should take only one second for 800x600 windows with a small step size (2-4).

Re: How long should it take to search for a pixel in a 800x6

Posted: Mon Dec 13, 2010 8:47 pm
by Exempt
Thats more then quick enough for what i need. I'm going to have to read up on how to do this is c++, thanks.