mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
Add a 100ms sleep to semifisher loop
While the main monitor loop runs we are constantly rechecking, which drives a lot of CPU usage. By sleeping for 100ms we can significantly reduce this without significantly impacting the bot.
This commit is contained in:
parent
c86e86b901
commit
c6654ade4f
@ -51,6 +51,7 @@ class SemiFisherEngine(IEngine):
|
||||
|
||||
self.fishPixWindow.crop = PixelLoc.val
|
||||
fishing_mode.loop(capture[0][0])
|
||||
time.sleep(0.1)
|
||||
|
||||
logging.info("Fishing engine stopped")
|
||||
self.gui.bot_started(False)
|
||||
|
Loading…
Reference in New Issue
Block a user