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

Discuss, ask for help, share ideas, give suggestions, read tutorials, and tell us about bugs you have found with MicroMacro in here.

Do not post RoM-Bot stuff here. There is a subforum for that.
Forum rules
This is a sub-forum for things specific to MicroMacro.

This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
Post Reply
Message
Author
Exempt
Posts: 197
Joined: Wed Jan 20, 2010 9:55 am

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

#1 Post by Exempt » Wed Dec 08, 2010 6:37 pm

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.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

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

#2 Post by Administrator » Wed Dec 08, 2010 10:22 pm

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.

Exempt
Posts: 197
Joined: Wed Jan 20, 2010 9:55 am

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

#3 Post by Exempt » Thu Dec 09, 2010 1:15 pm

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.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

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

#4 Post by Administrator » Thu Dec 09, 2010 8:12 pm

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).

Exempt
Posts: 197
Joined: Wed Jan 20, 2010 9:55 am

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

#5 Post by Exempt » Mon Dec 13, 2010 8:47 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests