From 1f608b2498a08ff146ba0e961edf726e602db091 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 15 Dec 2018 19:41:12 -0500 Subject: [PATCH] Even less latent --- piker/ui/kivy/mouse_over.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/piker/ui/kivy/mouse_over.py b/piker/ui/kivy/mouse_over.py index 8b472ce7..c9ad149b 100644 --- a/piker/ui/kivy/mouse_over.py +++ b/piker/ui/kivy/mouse_over.py @@ -97,9 +97,8 @@ class MouseOverBehavior(object): MouseOverBehavior.remove(self) @classmethod - # try throttling to 1ms latency (doesn't seem to work - # best I can get is 0.01 ?) - @triggered(timeout=0.015, interval=False) + # throttle at 10ms latency + @triggered(timeout=0.01, interval=False) def _on_mouse_pos(cls, *args): log.debug(f"{cls} time since last call: {time.time() - cls._last_time}") cls._last_time = time.time()