Skip to content
Discussion options

You must be logged in to vote

Use McodeForGCC.
https://github.com/joedf/MCode4GCC
You may need to enable SSE2 flags to compile for x86.

The ImageSearch you're editing happens to be outdated. This one is currrent (it's a comment in ImagePut.ahk).
https://godbolt.org/z/cKxrrT4ss

The difference between the two versions is that this one essentially does a parallel pixel search of 2 pixels, where the first is the top left, and the 2nd pixel is specified by an (x, y) coordinate. This approach minimizes time spent in the subimage loop.

I never got around to optimizing the above code using SSE2 128-bit wide intrinsics. If you browse through the current approach for PixelSearch, you can see just how much work is needed.

Feel f…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@wind0204
Comment options

@iseahound
Comment options

@wind0204
Comment options

Answer selected by wind0204
Comment options

You must be logged in to vote
5 replies
@wind0204
Comment options

@iseahound
Comment options

@iseahound
Comment options

@iseahound
Comment options

@martona
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants