diff --git a/system/ui/lib/application.py b/system/ui/lib/application.py index 3f433e1fcb..dbc4888993 100644 --- a/system/ui/lib/application.py +++ b/system/ui/lib/application.py @@ -72,7 +72,7 @@ class MouseState: self._events: deque[MouseEvent] = deque(maxlen=MOUSE_THREAD_RATE) # bound event list 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._exit_event = threading.Event() self._thread = None @@ -136,6 +136,8 @@ class GuiApplication: self._trace_log_callback = None self._modal_overlay = ModalOverlay() + self._rk = Ratekeeper(60, print_delay_threshold=None) + self._mouse = MouseState(self._scale) self._mouse_events: list[MouseEvent] = [] @@ -304,6 +306,7 @@ class GuiApplication: rl.end_drawing() self._monitor_fps() + self._rk.monitor_time() except KeyboardInterrupt: pass