On Sun, 27 Feb 2011 16:41:56 +0100, ThorstenB wrote in message 
<4d6a70c4.2070...@gmail.com>:

> On 27.02.2011 15:48, Geoff McLane wrote:
> > On Sun, 2011-02-27 at 14:06 +0100, Roberto Inzerillo wrote:
> >> Well, it works ... but the telnet connection is very slow
> >> and that slows down every intercation, it makes it far less than
> >> realtime
> > I quickly added some 'timing' to my telnet access,
> > through a perl script, and find :-
> >
> > 39 accesses took 15.57 secs, av 0.4 secs per access...
> >
> 
> Hi,
> a look at the sources shows that a fixed polling interval is used for 
> telnet - default is 5Hz. So it cannot process more than 5 commands
> per second. That's why it's slow. There's better methods of
> implementing socket communication instead of polling, but I haven't
> looked into the module and don't know why this was chosen. The
> polling interval is configurable though - so you can speed it up. Use:
>      fgfs ..... --telnet=medium,direction,HZ,localhost,PORT,style
> 
> Use HZ to select the polling frequency (e.g. "100") and PORT for the 
> telnet port (e.g. 9999). The other parameters are unused (it seems)
> when using the telnet protocol. Probably there for historic reasons
> (?). Maybe Curt knows. Remember you have to specify 6 parameters
> separated by a "," - otherwise you cannot configure the polling
> frequency. So call something like
>      fgfs ..... --telnet=foo,bar,100,foo,9999,bar

..depending on what data you drop into or ask for from the fdm, 
speeding up telnet _may_ also make you speed up the fdm so it 
_can_ properly solve the problems you feed it:
--model-hz=n    Run the FDM this rate (iterations per second) 

..movie etc makers on slow irons may also wanna play with: 
--speed=n       Run the FDM 'n' times faster than real time 

-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to