]> git.mxchange.org Git - flightgear.git/commitdiff
move event_mgr and view_mgr bundle right before the requestRedraw()
authormfranz <mfranz>
Tue, 6 Nov 2007 21:05:38 +0000 (21:05 +0000)
committermfranz <mfranz>
Tue, 6 Nov 2007 21:05:38 +0000 (21:05 +0000)
This fixes the last jitter problems with views attached to MP/AI
objects, and doesn't seem to cause any new ones.

src/Main/main.cxx

index 13ac801ef0a26cf282558d365be5c95445a6e759..531bd71ef73672864eda6d9aa474b6a961d58230 100644 (file)
@@ -489,11 +489,6 @@ 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 );
 
@@ -665,6 +660,12 @@ static void fgMainLoop( void ) {
         globals->get_soundmgr()->set_volume(init_volume);
     }
 
+    // run Nasal's settimer() loops right before the view manager
+    globals->get_event_mgr()->update(delta_time_sec);
+
+    // update the view angle
+    globals->get_viewmgr()->update(delta_time_sec);
+
     fgRequestRedraw();
 
     SG_LOG( SG_ALL, SG_DEBUG, "" );