Hi Jaka,
thanks for your response!
I put the Oak camera loop into a separate thread, which improved things massively (I think you have some kind of buffer in place which causes the high latency). It's still not optimal, and I'm even thinking of running in it in a separate process and stream to Python over socket (just to continue to stream via socket to Unity), but this seems very complicated. If the UVC feature would work together with the IMU, that would simplify things by a bit, but probably I can't load just the IMU via your SDK and the video feed via UVC, could I?
Removing the syncing didn't improve things by a lot.
On another note: At some point, I experienced the Xlink error (I think this one: [BUG] error message: X_LINK_DEVICE_NOT_FOUND · Issue #518 · luxonis/depthai (github.com)). This only appeared after using the camera for a couple of hours (on/off). I think it's critical from a reliability aspect since I'm looking to deploy a dozen of these cameras in a remote location without having access to it (unplugging and plugging in again is not an option).
The cable seems to be fine (USB-4). Are there any other best practises to avoid that?
In any way, thanks again!
-Benjamin