Even less latent
parent
a13b13e144
commit
1f608b2498
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue