← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #207273]: Creating an eitherOr method

 

Question #207273 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/207273

RaiMan proposed the following answer:
--- exists(image, 0) waits too long if not found
This is a known "bug".
The standard scan rate for normal searches (observe has its own), is 3, which means a search will take place only 3 times a second.
If you squeeze everything out of Sikuli to get performance (search times even below 0.1 seconds), this will always wait 0.3 seconds (frustrating ;-)

try 
Settings.waitScanRate = 100

But be aware, that this might exhaust your cpu ;-)

Another option is to delegate your searches in the def() to parallel
threads (which in fact will be the case, if you use observe in the
background version, but might be slightly slower than exists())

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.