Sign in to follow this  
Followers 0
Vicate

PixelGetColor slower at higher resolutions?

7 posts in this topic

Greetings,

I have a paint utility that utilizes PixelGetColor to send a mouseclick.

It works fine on my 1024 x 768 resolution and works on my friend's 1920 x 1080 resolution, however my friend has a 0.5 to 0.7-second delay between the PixelGetColor occurance and sending the mouseclick. My question is that even though it is still looking at one individual pixel, does a higher resolution yield slower reaction time? If so, is there a way to fix it?

Both are running Windows7 and his specs are much better than mine, yet it runs slower on his.

Thank you in advance,

-Chris

Share this post


Link to post
Share on other sites



He is using aero, and you are not. Right?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Oh I'm not sure, I haven't checked into that. That may be the difference, I'll ask him.

I'm sorry, I forgot to mention that when he puts his resolution down to 1024 x 768 like mine, it runs fine.

Edit:But he would like to run at his native resolution.

Thank you for your reply,

-Chris

Edited by Vicate

Share this post


Link to post
Share on other sites

In my experience dwm.exe (the process that is responsible for the fancy effects of aero), slows down all sorts of display interaction commands. I ran into it again with _ScreenCapture_Capture() yesterday and I believe PixelGetColor is also affected by this.

While it makes sense that a lower resolution would improve things I would expect that it still makes a large difference to turn off dwm.exe.

Share this post


Link to post
Share on other sites

In my experience dwm.exe (the process that is responsible for the fancy effects of aero), slows down all sorts of display interaction commands. I ran into it again with _ScreenCapture_Capture() yesterday and I believe PixelGetColor is also affected by this.

While it makes sense that a lower resolution would improve things I would expect that it still makes a large difference to turn off dwm.exe.

Nice to know that. thanks

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Well yeah that's what I was wondering, if PixelGetColor is doing much more than looking at one individual pixel, if it is actually looking at the resolution as a whole, in which case the search process would take considerably longer. (there is a 1mil+ pixel count difference in the resolutions)

When I get home I'll try it on my own computer (with Aero disabled) at a high resolution and come back with results.

Thanks guys,

-Chris

Edit: You were spot-on, Tvern. It seems Aero is what slowed it down for my friend. I run Windows in classic mode so noticed no difference at any resolution. I then told my friend to disable Aero and it works like a charm!

Edited by Vicate

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0