]> git.mxchange.org Git - flightgear.git/commit
Mathias Fröhlich:
authorehofman <ehofman>
Mon, 30 Jan 2006 10:50:28 +0000 (10:50 +0000)
committerehofman <ehofman>
Mon, 30 Jan 2006 10:50:28 +0000 (10:50 +0000)
commit6bdaa05351fb123cd491a8cfad3b001e6171d764
treee139ddd16313df08b02863472a5327a6c4e48182
parentaec1d580c2c85871076018c0f6b71e1dc410be58
Mathias Fröhlich:

This patch limits the maximum simtime we do simulation computations for.
That is highly sensible if you run flightgear in valgrind or some realy slow
debug build. In such a case it is possible that flightgear gets totally
unresponsible, because simulation time might increase slower than real time.
That patch introduces a maximum simulation time per rendered frame to limit
that effect.

If the property /sim/max-simtime-per-frame is set to something strictly
positive, the simulation time is limited to that value.
The default is unchanged - no limit.

Anyway, from the point of view of gui responsiveness and responsiveness to
realtime controls like joystick inputs it might be a good idea to limit that
by default to say 1 second. If you have less than 1fps, flightgear is
unplayable anyway and I believe we do not longer need to care for realtime
correctness for that case ...
src/Main/main.cxx