before i got something done to have it tunes automaticaly someday, the lag setting can be done this way:
- start fg with 127.0.0.1 as mpserver (--multiplay=out,10,127.0.0.1,5000), you'll see your plane, and the same as mp player (better disable mp collision
)
- be sure you have checked the master switch and apply to close mp switch in the lag settings
- fly at high speed on autopilot, go external view, then go in the properties to /sim/multiplay/lag/offset, and adjust it to have the planes in sync.
keep this value in mind (beware atm it depend a bit on framerate, so depending fg load, the planes will be more or less in sync).
here i get 0.004 or 0.005 for the offset
next, ping the mp server you want to use eg (on linux):
- Code: Select all
for i in mpserver{01,02,03,04,14}.flightgear.org; do echo $i; ping -c4 $i | grep rtt; echo; done
mpserver01.flightgear.org
rtt min/avg/max/mdev = 45.499/46.003/47.129/0.688 ms
mpserver02.flightgear.org
rtt min/avg/max/mdev = 169.278/170.512/171.639/1.099 ms
mpserver03.flightgear.org
rtt min/avg/max/mdev = 45.872/45.928/45.988/0.218 ms
mpserver04.flightgear.org
rtt min/avg/max/mdev = 49.517/51.228/54.890/2.161 ms
mpserver14.flightgear.org
rtt min/avg/max/mdev = 62.930/63.021/63.107/0.194 ms
add the ping converted in seconds with the offset found in the first step, and put this for the offset, using the property is more precise than the slider, and allow you higher values.
here i've got 3 mpservers with nearly the same ping (01,03, 04) wich will be used preferably, but you have to consider all the pilots in case of a formation flight. (and you need to be on the same mpserver, i don't have a way to add interserver lag compensation for now)
last, try and report if that work well this way
, the mpserver choice is something critical, if you want to avoid some pilots to have a huge ping.
jano