changeset 2253:7ca29efbdca3

update loop rates
author drewp@bigasterisk.com
date Sat, 27 May 2023 17:56:49 -0700
parents 2b8a2a25b154
children b0be0315426d
files light9/collector/service.py light9/effect/sequencer/service.py
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/light9/collector/service.py	Sat May 27 17:56:28 2023 -0700
+++ b/light9/collector/service.py	Sat May 27 17:56:49 2023 -0700
@@ -31,6 +31,7 @@
 
 STAT_SETATTR = Summary('set_attr', 'setAttr calls')
 
+RATE=20
 
 class Updates(WebSocketEndpoint, UiListener):
 
@@ -84,7 +85,7 @@
             #           port=6445,
             #           rate=rate),
             #sudo chmod a+rw /dev/bus/usb/003/021
-            Udmx(L9['output/dmxA/'], bus=3, address=21, lastDmxChannel=200),
+            Udmx(L9['output/dmxA/'], bus=3, address=21, lastDmxChannel=200, rate=RATE),
         ]
     except Exception:
         log.error("setting up outputs:")
--- a/light9/effect/sequencer/service.py	Sat May 27 17:56:28 2023 -0700
+++ b/light9/effect/sequencer/service.py	Sat May 27 17:56:49 2023 -0700
@@ -22,7 +22,7 @@
 from light9.metrics import metrics
 from light9.run_local import log
 
-RATE = 30
+RATE = 20
 
 
 async def changes():