Is it possible to speed up the code?

Asked by rahidyll brito on 2018-08-31

Good evening, I would like to know if there is another such as: Settings.waitScanRate. the truth that code has worked for me, I have noticed that the speed has improved, but I would like more speed while looping. Is this possible?
at the moment of executing my code, my virtual memory does not increase, so I do not understand why it is slow, it is not an exaggerated slowness, but I would like to accelerate it more. I have windows 7 32 bits, maybe it has to do with my operating system?

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
masuo (masuo-ohara) said : #1

The smaller the search range, the shorter the time to finish searching.
Have you read the document on this page?

rahidyll brito (botter) said : #2

I have 10 if, in which I put an exists and a screenshot which I cut to get the area I need, do not use a region, the trick is to do it by region?

Best masuo (masuo-ohara) said : #3

Are you want to shorten the time to return the result of exist ()?
If image is not exist on screen, exists() return result after 3 seconds.
If you specify maximum waiting time to zero as exists, exists() return result immediately even if image is not exist on screen.

If you want to search for multiple images, it's better to use findAny () rather than using exists () multiple times.

rahidyll brito (botter) said : #4

muchas gracias por su tiempo y me disculpa

rahidyll brito (botter) said : #5

Thanks masuo, that solved my question.