I am using both FSUIPC and wide FS.
I am reading the lat lon and height of MSFS airplane and displaying/updating it on another PC/monitor.
FSUIPC_Read(0x5B0, 36, buf, &dwResult)
........
FSUIPC_Process(&dwResult)
The FSUIPC_Process seems to take up most of the time see below log file
it takes only less than 10ms to return. But sometimes it talkes more than 30 40 ms to return a value. Why is this so? I need to refresh the display every 20 or 30ms with the position so there is no jerkiness/pause in the display.Is it possible to read the values every 20 or 30 ms update?
Time reading FSUIPC = 0.01 ms
Time processing FSUIPC = 9.15 ms
Time reading FSUIPC = 0.00 ms
Time processing FSUIPC = 0.39 ms
Time reading FSUIPC = 0.00 ms
Time processing FSUIPC = 0.46 ms
Time reading FSUIPC = 0.01 ms
Time processing FSUIPC = 0.23 ms
Time reading FSUIPC = 0.00 ms
Time processing FSUIPC = 52.92 ms <----------------------takes a while
Time reading FSUIPC = 0.00 ms
Time processing FSUIPC = 157.71 ms <----------------------takes a while
Time reading FSUIPC = 0.00 ms
Time processing FSUIPC = 0.30 ms
Time reading FSUIPC = 0.00 ms
Time processing FSUIPC = 0.39 ms