C# Serial Communication Lag

Hi, I am currently working on a project where my computer controlls my RGB fans using fastled. I currently have a command system via the serial port, with a program made in c# controlling the leds. This system works fine when just setting a static color. However, when I try to do any kind of animation, there is visible lag with the led strip, even with the serial at 2,000,000 baud. So, my question is, is it possible to have a c# app control the leds with no lag?

Arduino code: #include <RGBConverter.h>#include <FastLED.h>String msg_raw = "";String - Pastebin.com

Thanks for reading.

Please post both programs (Arduino and C#) in the forum with tags

is it possible to have a c# app control the leds with no lag?

No - there we always be some lag!

Yes - the lag should be so small that the humans can not see it

Mark

Lax__:
even with the serial at 2,000,000 baud

Wait a sec, are you using a Teensy uC? Normal Arduinos don’t support such a high baud.

Thank you so much. A friend told me the max for the uno was 2 million. It works fine at 23040 baud. Sorry for such a bad question. I had only tried 9600 and 2 million, so i just assumed that all of them lagged

It may have something to do with your FastLED code as well though. You should post that.