Closed apaks closed 2 years ago
Hello,
I hadn't measured the lag so far, but 0.4s sounds like a lot of lag. If you experienced this lag with the SerialPort class then that's likely the culprit as Ardity uses that class under the hood.
I don't see a way around it using Ardity as the SerialPort class is the heart of it.
Regards.
Thanks for a quick reply. It seems that the issue is specific to my configuration (heavy project). When I use a sample scene on a different computer it works fine. However, the MessageListener
is required, otherwise it actually lags.
Hey,
Firstly, thanks for developing the package. I am trying to send strings from unity to Arduino at 60 Hz with a very small lag (ms level). However, when I use
SendSerialMessage
I see a lag of 0.4s.If I type directly into the Serial Monitor the lag is not there, suggesting it is due to the communication between Unity and Arduino. I also tried native C# SerialPort class but it gives me the same lag.
I also tried wrmhl package. It works well for reading but cannot send data to the Arduino.
Do you expect to have a 0.4 s delay for unity to send data to Arduino?
The code I use:
Thanks,