Even less latent

kivy_mainline_and_py3.8
Tyler Goodlet 2018-12-15 19:41:12 -05:00
parent a13b13e144
commit 1f608b2498
1 changed files with 2 additions and 3 deletions

View File

@ -97,9 +97,8 @@ class MouseOverBehavior(object):
MouseOverBehavior.remove(self) MouseOverBehavior.remove(self)
@classmethod @classmethod
# try throttling to 1ms latency (doesn't seem to work # throttle at 10ms latency
# best I can get is 0.01 ?) @triggered(timeout=0.01, interval=False)
@triggered(timeout=0.015, interval=False)
def _on_mouse_pos(cls, *args): def _on_mouse_pos(cls, *args):
log.debug(f"{cls} time since last call: {time.time() - cls._last_time}") log.debug(f"{cls} time since last call: {time.time() - cls._last_time}")
cls._last_time = time.time() cls._last_time = time.time()