Peter Völk wrote: > Hi All, > I'm trying to put my own data into FG, with the native fdm and the > generic input protocol at the same time. My problem is, that fdm works > fine, but the data is send via UDP over the generic protocol has some > kind of lag or rather delay. When I pause sending the data, the data in > the property tree (createy by my own script) just keeps changing for 1 > or 2 seconds. When I restart then sending, the variables just begin to > response a few seconds later (and so on...).
I've seen something similar myself, but only when the sender sends the data more frequently than FlightGear is allowed to handle with the refresh parameter (60Hz in your example). > My question is, does FG have any kind of buffer itself? When yes, how No They only buffer that is used it the OS's network buffer (as far as I know) > can I send correct, so that the data arrives at the same time with the > fdm data? When no, what might be the reason for this delay? > The problem is that I need this data to animate my model, so it's > senseless if it doesn't "arrive" at the same time like the fdm data. It sounds to me a mismatch in sender and receiver frequency. Maybe you should throttle the sender to only send data packets at 60Hz also? Erik ------------------------------------------------------------------------------ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel