I'm pulling some data via RequestDataOnSimObject every visual frame. I'd like to know the exact time the data was "synthesized" within FSX to be able to interpolate between values (to both normalize and precisely calculate certain behaviors).
Locally timing arrival is the simplest method, but this may not always provide the correct results (network jitter etc.). SimConnect variables seem only to provide one second granularity (e.g. absolute time) which is useless when I'm getting 30+ events per second.
Pulling lat/lon and speed, and then calculating time between frames is also a possibility, but without knowing precisely when these are populated internally, it likely won't provide enough precision.
I also noticed SubscribeToSystemEvent Frame, which provides frame rate data, but again, it can arrive at delayed intervals and no guarantee to be in sync. with other SimConnect data. Also, the FPS measurement details are missing, so it's not known whether it is instantaneous (thus measuring the elapsed time from the last frame - which would be great) or averaged.
Has anyone looked at this problem and found a solution?
Locally timing arrival is the simplest method, but this may not always provide the correct results (network jitter etc.). SimConnect variables seem only to provide one second granularity (e.g. absolute time) which is useless when I'm getting 30+ events per second.
Pulling lat/lon and speed, and then calculating time between frames is also a possibility, but without knowing precisely when these are populated internally, it likely won't provide enough precision.
I also noticed SubscribeToSystemEvent Frame, which provides frame rate data, but again, it can arrive at delayed intervals and no guarantee to be in sync. with other SimConnect data. Also, the FPS measurement details are missing, so it's not known whether it is instantaneous (thus measuring the elapsed time from the last frame - which would be great) or averaged.
Has anyone looked at this problem and found a solution?
