David Megginson wrote:
> 
> Christian Mayer writes:
> 
>  > > Modified FGSubsystem::update() to take an int parameter for delta time
>  > > (i.e. multiloop).  Most subsystems currently ignore the parameter, but
>  > > eventually, it will allow all subsystems to update by time rather than
>  > > by framerate.
>  >
>  > This is a good idea, but why do you want a int? IMHO a float would make
>  > *much* more sense (and is compatible with the current FDMs)!
> 
> FGInterface was already set up to use ints.

(I'm writing this w/o checking the code)

IIRC multiloop tells you how often the FDM is called between drawing the
results via OpenGL. This is a int and in terms of fps.

What we should do, is to tell the fdm the elapsed time since the last
call (the dt) in seconds (or milliseconds or days or years or whatever;
seconds would be best as it's SI). This has to be a float value.

This dt could get calculated by the elapsed time bewteen the last
redraws divided by the multiloop. Then the FDM get's calld multiloop
times.

CU,
Christian

--
The idea is to die young as late as possible.        -- Ashley Montague

Whoever that is/was; (c) by Douglas Adams would have been better...

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to