Results 1 to 6 of 6

Thread: plugins for simba

  1. #1
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default plugins for simba

    Hello, i have a problem

    i want to search through 64 images 50 times to see if they are on the screen

    unfortunately simba isnt fast enough, so i thought i would do it in a plugin, but what sort of functions can i use in the plugin?

    can i use FindBitmap?
    can i use LoadBitmap?

    this will be a private DLL for myself to do something personally

    ~shut

  2. #2
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    The source of those function is available, so you can just include them in your project. I doubt you will gain much speed, though. The slow part is searching, which is already done by Simba. Moving the loop to a plugin probably wont help much.
    Hup Holland Hup!

  3. #3
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    Moving the loop to a plugin probably wont help much.
    Agree, The only speed increase you would see would be from C and that is only ms.

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

  4. #4
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  5. #5
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    A loop in pascal script doesn't take that long (definitely not in the seconds when you're not talking about millions of iterations); the time it takes to loop 3500 times is negligible if you take into account the time FindBitmap takes. The only way to speed it up is to adjust your algorithm. For example, it would help to decrease the search area or decrease the number of bitmaps (prefiltering?).
    Hup Holland Hup!

  6. #6
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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