News:

LATEST RELEASE:  FPP 7.0 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/7.0

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 15932
Latest: pavit66767
New This Month: 21
New This Week: 1
New Today: 0
Stats
Total Posts: 129677
Total Topics: 15991
Most Online Today: 122
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 55
Total: 56

Weird latency over artnet

Started by dsg123456789, April 21, 2023, 11:13:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dsg123456789

I just started setting up my system, which has an F48V4-NS connected to an SRx1-PSU. I haven't touched any switches or knobs on the boards.

I am using SK6812 RGBW LEDs. My configurations are screenshot below.

When I try to push an animation from pyartnet, I can see it's sending the sacn/e131 packets at the rate I expect. However, it takes 3-6 seconds before the frame appears on the pixels, but I expect to be able to push at least 20fps. Is something misconfigured, or is there something else I need to do? I included my basic code listing below too, just in case it's helpful.



import asyncio
import logging
from pyartnet import SacnNode
import sys

logging.basicConfig(level=logging.DEBUG)

async def main():
    i = int(sys.argv[1])
    x = int(sys.argv[2])

    # Run this code in your async function
    node = SacnNode('192.168.20.119', 5568, max_fps=30)
    node.set_output_correction(None)


    channels = []
    NUM_UNI = 3
    NUM_CHANS = int(384 * 3/4 / NUM_UNI)
    for u in range(NUM_UNI):
        universe = node.add_universe(u+1)
        for l in range(NUM_CHANS):
            channel = universe.add_channel(start = l * 4+1, width=4)
            channels.append((universe, channel))

    t = 0
    dt = 0.01
    while True:
        val = [0,0,0,0]
        val[i] = int(x * t)
        for (u,c) in channels:
            #c.add_fade(val, 100)
            c.set_values(val)
        t += dt
        if t > 1 or t < 0:
            dt = -dt
            t += dt
        # GRBW
        print(f"value is {int(x*t)}")
        await asyncio.sleep(0.2)

asyncio.run(main())


MikeKrebs


Support FPP

+- Recent Topics

Matrix audio issue by MikeKrebs
September 25, 2023, 09:11:08 PM

Music and models out of sync by MikeKrebs
September 25, 2023, 09:08:25 PM

Is the Pi 3B still supported on 7.1? by MikeKrebs
September 25, 2023, 08:50:49 PM

Anybody know what this is or who made it? by JonD
September 25, 2023, 05:23:21 AM

Differential expansion question by cjrobin27
September 24, 2023, 08:07:02 PM

ColorLight LEDVISION V9.0 compatibility? by kenoman742
September 24, 2023, 11:28:42 AM

Kulp K8Pi Issues by JonD
September 24, 2023, 10:00:18 AM

eseq speed issue by dkulp
September 24, 2023, 07:41:19 AM

F48v3 with a dead network jack by tbone321
September 23, 2023, 10:36:13 PM

Wifi Antenna by rayster
September 23, 2023, 05:07:40 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod