Page 1 of 1
LSL4Unity Latency
Posted: Tue May 17, 2022 12:23 pm
by mhadji05
Hello,
I am trying to develop a BCI application using OpenVibe and Unity.
I send markers to Unity via LSL, but it seems there is a latency around 700-800ms and this can be a problem with system accuracy.
Is there anything I can do to eliminate the latency from the Openvibe to Unity?
Thanks in advance.
Re: LSL4Unity Latency
Posted: Wed May 18, 2022 9:05 am
by Thibaut
Hi,
I haven't this latency. So I can't say where is the problem.^^
THe only time I have this latency is when I communicate with other protocol (for example with arduino) and the answer was you must flush buffer but LSL example make that alone.
Thibaut
Re: LSL4Unity Latency
Posted: Wed May 18, 2022 2:04 pm
by mhadji05
I use the arduino-based OpenBCI board and the Unity HelloWorld example (gitlab).
I receive the markers from the StimulationInlet .cs (see below).
Code: Select all
public class StimulationInlet : OVIntInlet
{
protected override void Process(int[] input, double time)
{
}
}
Unfortunately, I receive for example, the stimulation code:769 around 700ms after the presented left arrow in the Openvibe.
Ιs there any strategy in this?
Re: LSL4Unity Latency
Posted: Mon May 30, 2022 8:26 am
by Thibaut
Hi,
When I got bothered with arduino. I did a lot of tests, among other things, sent a burst of information to see what exactly he received and when. and I tested different methods to forcibly flush the buffer.
Thibaut
Re: LSL4Unity Latency
Posted: Fri Jun 10, 2022 8:31 am
by mhadji05
Is there a chance the Process() function in Unity late to get the markers?
Code: Select all
public class StimulationInlet : OVIntInlet
{
protected override void Process(int[] input, double time)
{
}
}
Re: LSL4Unity Latency
Posted: Thu Jun 16, 2022 8:10 am
by Thibaut
Technically no