unity-experiment-framework
unity-experiment-framework copied to clipboard
Thread safety of Trackers
Hello! I have to sample the position of an I/O device with 1kHz during the trials. Decreasing the fixed timestep causes lag spikes because the hardware plugin chokes.
I'm therefore trying to implement a dedicated sampling thread. Is it safe to call RecordRow() from another thread if the Tracker's UpdateType is set to Manual or does this interfere with some internal data wrangling?
If it's not safe, I'd be super glad if you could give a hint on the critical parts that I should take a look at.
Thanks in advance! Best, Paul