Jump to content

Multithreading support?


Recommended Posts

Posted (edited)

That sounds like a pain, you'd be better off synchronizing it.

 

Should be possible tho

 

EDIT:

could do something like..

use separate thread to interrupt current loop, and set some variable. Next loop the main thread looks at that variable and performs whatever action it suggests?

Edited by FrostBug
  • Like 1
Posted (edited)

Hmm... yeah can try this way.

Executing all input in bot thread should be better than executing in different threads.

Is enumerating objects / reading game states thread-safe?

I'm worried mostly about possibility of interrupting input calls and thread safety of querying objects / game data.

Edited by darkxor
Posted (edited)

facep.gif


Before. I try to write rs13, is to use multiple threads, the effect is very good, (using another language). I really like osbot, but I do not know how to implement multiple threads in osbot, I was soon to learn

 

 

For example, in the process of taking, you must go event handling, rather than go through the whole process, was carried out, the next mouse plan can be achieved,

Edited by hansen19498

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...