Browse Source

remove unused import and unnecessary sleep

Richard Köhl 1 năm trước cách đây
mục cha
commit
58a66f3b98
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      dungeon.py

+ 0 - 2
dungeon.py

@@ -4,7 +4,6 @@ import numpy as np
 from helper import (
     tap,
     look_for_templates,
-    find_template,
     first_template,
     capture_current_screen,
     get_current_screen,
@@ -65,7 +64,6 @@ def read_screen():
 print("watching the screen...")
 is_mixed = False
 while True:
-    time.sleep(0.5)  # Polling interval
     capture_current_screen()
 
     name, locations = look_for_templates(templates)