src/Main/fg_init.cxx: Fixed uneven replay of user aircraft when frame rate changes.
The problem was that we were recording aircraft state before the FDM updated it, which meant that simtime changes were out of step with aircraft position by one frame. The fix is to run the FGReplay subsystem after the FDM subsystem instead of before, which simply requires changing the code to use SGSubsystemMgr::POST_FDM. This makes './flightgear/scripts/python/recordreplay.py --test-motion' pass (it previously failed).
This commit is contained in:
parent
5c76f41743
commit
6b08e31b23
1 changed files with 1 additions and 1 deletions
|
@ -1103,7 +1103,7 @@ void fgCreateSubsystems(bool duringReset) {
|
|||
////////////////////////////////////////////////////////////////////
|
||||
// Initialize the replay subsystem
|
||||
////////////////////////////////////////////////////////////////////
|
||||
globals->add_new_subsystem<FGReplay>(SGSubsystemMgr::GENERAL);
|
||||
globals->add_new_subsystem<FGReplay>(SGSubsystemMgr::POST_FDM);
|
||||
globals->add_subsystem("history", new FGFlightHistory);
|
||||
|
||||
#ifdef ENABLE_AUDIO_SUPPORT
|
||||
|
|
Loading…
Add table
Reference in a new issue