rk monitor debug for now

pull/36039/head
Shane Smiskol 6 days ago
parent ebd32a7cd1
commit bc3ad6feb5
  1. 5
      system/ui/lib/application.py

@ -72,7 +72,7 @@ class MouseState:
self._events: deque[MouseEvent] = deque(maxlen=MOUSE_THREAD_RATE) # bound event list self._events: deque[MouseEvent] = deque(maxlen=MOUSE_THREAD_RATE) # bound event list
self._prev_mouse_event: list[MouseEvent | None] = [None] * MAX_TOUCH_SLOTS self._prev_mouse_event: list[MouseEvent | None] = [None] * MAX_TOUCH_SLOTS
self._rk = Ratekeeper(MOUSE_THREAD_RATE) self._rk = Ratekeeper(MOUSE_THREAD_RATE, print_delay_threshold=None)
self._lock = threading.Lock() self._lock = threading.Lock()
self._exit_event = threading.Event() self._exit_event = threading.Event()
self._thread = None self._thread = None
@ -136,6 +136,8 @@ class GuiApplication:
self._trace_log_callback = None self._trace_log_callback = None
self._modal_overlay = ModalOverlay() self._modal_overlay = ModalOverlay()
self._rk = Ratekeeper(60, print_delay_threshold=None)
self._mouse = MouseState(self._scale) self._mouse = MouseState(self._scale)
self._mouse_events: list[MouseEvent] = [] self._mouse_events: list[MouseEvent] = []
@ -304,6 +306,7 @@ class GuiApplication:
rl.end_drawing() rl.end_drawing()
self._monitor_fps() self._monitor_fps()
self._rk.monitor_time()
except KeyboardInterrupt: except KeyboardInterrupt:
pass pass

Loading…
Cancel
Save