unity-experiment-framework icon indicating copy to clipboard operation
unity-experiment-framework copied to clipboard

Thread safety of Trackers

Open soelderer opened this issue 6 months ago • 3 comments

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

soelderer avatar Jul 01 '25 13:07 soelderer