Results 1 to 8 of 8
  1. #1
    Senior Member
    rikkimartin is offline

    Posts
    184

    Fastest pixel detection

    working on a gunning bot, it works ... when the peices are moving slow, one speeds up i cannot detect the pixels fast enough to respond. at the moment im screenshoting a 30x30 window within the game and making it a bitmap, then getpixel to get a colour of a pixel with in it. the process is on a system timer every 100m/s single thread..

    not sure how to make it more efficient, mayb multithread somehow? or different way of doing it

    any suggestions?
    Skype: blazikin6

  2. #2
    Senior Member
    TheRigger is offline

    Posts
    641
    Maybe some odd use of the Boyer-Moore search algorithm?
    Would be interesting to see done.

  3. #3
    Senior Member
    rikkimartin is offline

    Posts
    184
    that is for strings if i am correct not pro enough to try change it to Image/pixels..anyone else?
    Skype: blazikin6

  4. #4
    Senior Member
    rikkimartin is offline

    Posts
    184
    I have discovered a solution
    Skype: blazikin6

  5. #5
    Senior Member
    TheRigger is offline

    Posts
    641
    Which is...?

  6. #6
    Senior Member
    rikkimartin is offline

    Posts
    184
    Quote Originally Posted by TheRigger View Post
    Which is...?
    working it in with threads :3
    Skype: blazikin6

  7. #7
    Senior Member
    TheRigger is offline

    Posts
    641
    Aww.
    I still think software optimization is better than hardware usage because hardware usage isn't universally available.
    Also software optimization is consistent.

  8. #8
    Senior Member
    rikkimartin is offline

    Posts
    184
    Quote Originally Posted by TheRigger View Post
    Aww.
    I still think software optimization is better than hardware usage because hardware usage isn't universally available.
    Also software optimization is consistent.
    if i knew how to do that i would, but code in its simplest form still could not copelte the task, and there were no functions that i could find to do it faster
    Skype: blazikin6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •