Repository navigation
Slow down screen scan rate - optimize battery life #826
|
Is there a way to use timers to scan every 1 second? |
Replies: 3 comments 2 replies
|
Hi, You can easily control the execution rate of the ImageEvent list computation (iow, the "scan" rate) by using a Wait action placed strategically. As nothing is parallel in Klick'r processing, waiting for a Wait action will pause the processing until the wait time of this action is complete. You can read this if you want to learn more about the algorithm behaviour and lifecycle. You want ot achieve this behaviour: 50ms image processing | 1s wait | 50ms image processing | 1s wait ... The easiest way to achieve your behaviour is by using this simple TriggerEvent in your Scenario: Condition: Timer Reached Action: Wait Hope this helps ! |
|
I have a lot of scenarios where I klick'r push a button from time to time. Because I know the button (an ad to claim a reward in the game) is active every 5 minutes, I just put a wait step of 4:30. |
|
The exact implementation you wanted has been added through v4.0.0 now. Currently in beta, but the Execution Limiter feature will suit you well. |
Hi,
You can easily control the execution rate of the ImageEvent list computation (iow, the "scan" rate) by using a Wait action placed strategically. As nothing is parallel in Klick'r processing, waiting for a Wait action will pause the processing until the wait time of this action is complete. You can read this if you want to learn more about the algorithm behaviour and lifecycle.
You want ot achieve this behaviour: 50ms image processing | 1s wait | 50ms image processing | 1s wait ...
The easiest way to achieve your behaviour is by using this simple TriggerEvent in your Scenario:
Condition: Timer Reached
|-- Duration: 1s50ms <- You want to scan for 50ms and wait for 1s, so this condition …