Timestamp & Latency NatNet
Posted: Tue Mar 24, 2015 11:31 am
Hi,
We are using NatNet 2.7 and want to get an idea of the latency that is related with every packet that we receive. We don't have an eSync hub so I guess we cannot use the TimeCodes.
To test out the Timestamp and Latency information that are in the NatNet packets, we simply logged the timestamp + latency information when the dataCallback is called. We also observed the time interval in between every call of the dataCallback function.
This is a sample of what we log:
Time between previous call (ms): 10
Timestamp : 47108.39
Latency : 47108.39
---------------------------------------------------
Time between previous call (ms): 0
Timestamp : 47108.40
Latency : 47108.40
---------------------------------------------------
Time between previous call (ms): 10
Timestamp : 47108.41
Latency : 47108.41
---------------------------------------------------
Time between previous call (ms): 10
Timestamp : 47108.42
Latency : 47108.42
---------------------------------------------------
Time between previous call (ms): 10
Timestamp : 47108.43
Latency : 47108.43
---------------------------------------------------
Time between previous call (ms): 10
Timestamp : 47108.43
Latency : 47108.43
---------------------------------------------------
Time between previous call (ms): 0
Timestamp : 47108.44
Latency : 47108.44
---------------------------------------------------
Time between previous call (ms): 10
Timestamp : 47108.45
Latency : 47108.45
---------------------------------------------------
I don't get the meaning (unit) of the timstamp and latency information. 10 milliseconds passed by and the Timestamp is incremented with 0.01? In most of the cases the latency information is the same as the timestamp, sometimes it differs by 1 from the timestamp.
In other posts I found that the timestamp is the absolute timestamp related to the frame. But still the unit does not make sense to me. Normally timestamps should be in milliseconds.
Also the strange thing is that in many cases 10ms are in between callback functions. Sometimes however (as you can see from the sample data), there are 0 milliseconds in between the calls. Strangely enough, if I look at the position data of a rigidbody it changed e.g. 1.0cm (fast moving object).
Thanks in advance.
We are using NatNet 2.7 and want to get an idea of the latency that is related with every packet that we receive. We don't have an eSync hub so I guess we cannot use the TimeCodes.
To test out the Timestamp and Latency information that are in the NatNet packets, we simply logged the timestamp + latency information when the dataCallback is called. We also observed the time interval in between every call of the dataCallback function.
This is a sample of what we log:
Time between previous call (ms): 10
Timestamp : 47108.39
Latency : 47108.39
---------------------------------------------------
Time between previous call (ms): 0
Timestamp : 47108.40
Latency : 47108.40
---------------------------------------------------
Time between previous call (ms): 10
Timestamp : 47108.41
Latency : 47108.41
---------------------------------------------------
Time between previous call (ms): 10
Timestamp : 47108.42
Latency : 47108.42
---------------------------------------------------
Time between previous call (ms): 10
Timestamp : 47108.43
Latency : 47108.43
---------------------------------------------------
Time between previous call (ms): 10
Timestamp : 47108.43
Latency : 47108.43
---------------------------------------------------
Time between previous call (ms): 0
Timestamp : 47108.44
Latency : 47108.44
---------------------------------------------------
Time between previous call (ms): 10
Timestamp : 47108.45
Latency : 47108.45
---------------------------------------------------
I don't get the meaning (unit) of the timstamp and latency information. 10 milliseconds passed by and the Timestamp is incremented with 0.01? In most of the cases the latency information is the same as the timestamp, sometimes it differs by 1 from the timestamp.
In other posts I found that the timestamp is the absolute timestamp related to the frame. But still the unit does not make sense to me. Normally timestamps should be in milliseconds.
Also the strange thing is that in many cases 10ms are in between callback functions. Sometimes however (as you can see from the sample data), there are 0 milliseconds in between the calls. Strangely enough, if I look at the position data of a rigidbody it changed e.g. 1.0cm (fast moving object).
Thanks in advance.