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:
Mat R 2021-05-06 19:35:06 -06:00 committed by GitHub
parent c86e86b901
commit c6654ade4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)