Skip to content

Commit

Permalink
fix laggy ui
Browse files Browse the repository at this point in the history
  • Loading branch information
hdavid committed Nov 6, 2023
1 parent bb3f092 commit 156939d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DeviceControllerStripServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def run(self):
self._request_handler(funct_name, token, *args,
**kwargs)
roundtrip_time = time.time() - self.roundtrip_start
time.sleep(max(0.0, self.roundtrip_target - roundtrip_time))
time.sleep(max(0.0, self.roundtrip_target/10 - roundtrip_time))
if self._request_queue.empty() or roundtrip_time > self.roundtrip_target:

self.roundtrip_end = time.time()
Expand Down

0 comments on commit 156939d

Please sign in to comment.