Update the model manager after the event manager, so that model
coordinates that were set relative to the aircraft's position are picked up before the view update rather than the next cycle. This avoids ugly fluttering of "passengers" at higher speed.
This commit is contained in:
parent
292d1d52cf
commit
54744f58e0
1 changed files with 4 additions and 1 deletions
|
@ -177,7 +177,6 @@ void fgUpdateTimeDepCalcs() {
|
|||
// do nothing, fdm isn't inited yet
|
||||
}
|
||||
|
||||
globals->get_model_mgr()->update(delta_time_sec);
|
||||
globals->get_aircraft_model()->update(delta_time_sec);
|
||||
|
||||
// Update solar system
|
||||
|
@ -538,6 +537,10 @@ static void fgMainLoop( void ) {
|
|||
// run Nasal's settimer() loops right before the view manager
|
||||
globals->get_event_mgr()->update(delta_time_sec);
|
||||
|
||||
// pick up model coordidnates that Nasal code may have set relative to the
|
||||
// aircraft's
|
||||
globals->get_model_mgr()->update(delta_time_sec);
|
||||
|
||||
// update the view angle as late as possible, but before sound calculations
|
||||
globals->get_viewmgr()->update(delta_time_sec);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue