From 0ad534b55d2b6995107bf611af38851f13ef3ce2 Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 6 Nov 2007 12:01:29 +0000 Subject: [PATCH] change update order to fdm -> events -> viewmanager This removes some jitter in cases where Nasal is used to set up view parameters from FDM data, such as position and orientation. (The event subsystem handles Nasal's settimer() calls.) --- src/Main/main.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index ebb0230a8..13ac801ef 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -180,9 +180,6 @@ void fgUpdateTimeDepCalcs() { globals->get_model_mgr()->update(delta_time_sec); globals->get_aircraft_model()->update(delta_time_sec); - // update the view angle - globals->get_viewmgr()->update(delta_time_sec); - // Update solar system globals->get_ephem()->update( globals->get_time_params()->getMjd(), globals->get_time_params()->getLst(), @@ -343,8 +340,6 @@ static void fgMainLoop( void ) { SGTime *t = globals->get_time_params(); - globals->get_event_mgr()->update(delta_time_sec); - SG_LOG( SG_ALL, SG_DEBUG, "Running Main Loop"); SG_LOG( SG_ALL, SG_DEBUG, "======= ==== ===="); @@ -494,6 +489,11 @@ static void fgMainLoop( void ) { "Elapsed time is zero ... we're zinging" ); } + globals->get_event_mgr()->update(delta_time_sec); + + // update the view angle + globals->get_viewmgr()->update(delta_time_sec); + // Do any I/O channel work that might need to be done globals->get_io()->update( real_delta_time_sec ); -- 2.39.5