From: mfranz Date: Sun, 18 May 2008 21:13:25 +0000 (+0000) Subject: - use fireValueChanged() instead of setBoolValue(true) (micro-optimization :-) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c92dcc6b249eb650d10ca6b739bbfa23402126c5;p=flightgear.git - use fireValueChanged() instead of setBoolValue(true) (micro-optimization :-) - comment out rather pointless FDM status message --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 55c5dbad5..29f0d35ab 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -139,7 +139,7 @@ void fgUpdateTimeDepCalcs() { // the aircraft. double range = 1000.0; if (globals->get_scenery()->scenery_available(lat, lon, range)) { - SG_LOG(SG_FLIGHT,SG_ALERT, "Finally initializing fdm"); + //SG_LOG(SG_FLIGHT, SG_INFO, "Finally initializing fdm"); cur_fdm_state->init(); if ( cur_fdm_state->get_bound() ) { cur_fdm_state->unbind(); @@ -218,7 +218,7 @@ static void fgMainLoop( void ) { static SGPropertyNode_ptr frame_signal = fgGetNode("/sim/signals/frame", true); - frame_signal->setBoolValue(true); + frame_signal->fireValueChanged(); SGCloudLayer::enable_bump_mapping = fgGetBool("/sim/rendering/bump-mapping"); bool scenery_loaded = fgGetBool("sim/sceneryloaded");