瀏覽代碼

remove unused import and unnecessary sleep

Richard Köhl 1 年之前
父節點
當前提交
58a66f3b98
共有 1 個文件被更改,包括 0 次插入2 次删除
  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)