Jump to content

Multithreading support?


darkxor

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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