1
0
Fork 0
flightgear/src/Time
Richard Harrison 7795ba60ff Added time statistics for the simulation host.
These are the time statistics that are the simulation code, which is basically everything except the rendering.

For a while I've wondered how efficient each of my JSBSim models are, and how much of our valuable frame time is spent on simulation modules.

Ideally the simulation modules should be taking 2-3ms, anything longer indicates a need to consider optimising things more.

These are the new properties that are added by this change:

/sim/rendering/sim-frame-count        Number of frames since start (or last time
/sim/rendering/sim-frame-count-reset  Reset statistics. Can be useful to reset monitoring after a slow startup
/sim/rendering/sim-host-avg-ms        Average amount of time spent in the "simulation" rather than rendering. This attempts to take into consideration the
                                      frame rate throttling but when throttled this figure is less reliable.
/sim/rendering/sim-host-total-ms      Total milliseconds since reset
/sim/time/frame-wait-ms               Current frame wait to meet throttling rate.
2018-09-02 13:47:55 +02:00
..
bodysolver.cxx Time: The sun solver has been generalised to to handle any solar system body. 2016-11-08 11:16:24 +01:00
bodysolver.hxx Time: The sun solver has been generalised to to handle any solar system body. 2016-11-08 11:16:24 +01:00
CMakeLists.txt Time: Renamed the sunsolver.cxx to bodysolver.cxx. 2016-11-08 11:16:24 +01:00
light.cxx Time: Calculation and exposure of the moon vector from the local position. 2016-11-08 11:16:24 +01:00
light.hxx Time: Calculation and exposure of the moon vector from the local position. 2016-11-08 11:16:24 +01:00
TimeManager.cxx Added time statistics for the simulation host. 2018-09-02 13:47:55 +02:00
TimeManager.hxx Added time statistics for the simulation host. 2018-09-02 13:47:55 +02:00