From: mfranz Date: Tue, 6 Nov 2007 12:01:29 +0000 (+0000) Subject: change update order to fdm -> events -> viewmanager X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ad534b55d2b6995107bf611af38851f13ef3ce2;p=flightgear.git 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.) --- 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 );