Announcement

Collapse
No announcement yet.

Fastest pixel detection

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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
    Maybe some odd use of the Boyer-Moore search algorithm?
    Would be interesting to see done.

    Comment


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

      Comment


        #4
        I have discovered a solution
        Skype: blazikin6

        Comment


          #5
          Which is...?

          Comment


            #6
            Originally posted by TheRigger View Post
            Which is...?
            working it in with threads :3
            Skype: blazikin6

            Comment


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

              Comment


                #8
                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

                Comment

                Working...
                X