From: <mk...@us...> - 2002-12-19 17:11:51
|
Update of /cvsroot/csp/APPLICATIONS/CSPFlightSim/Source In directory sc8-pr-cvs1:/tmp/cvs-serv3963 Modified Files: CSPFlightSim.cpp Log Message: Fix for first frame statistical anomaly. Index: CSPFlightSim.cpp =================================================================== RCS file: /cvsroot/csp/APPLICATIONS/CSPFlightSim/Source/CSPFlightSim.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** CSPFlightSim.cpp 19 Dec 2002 08:56:37 -0000 1.7 --- CSPFlightSim.cpp 19 Dec 2002 17:01:23 -0000 1.8 *************** *** 210,213 **** --- 210,214 ---- void CSPFlightSim::Run() { + bool first = true; CSP_LOG(CSP_APP, CSP_DEBUG, "CSPFlightSim::Run..." ); m_bFreezeSim = false; *************** *** 248,252 **** // Do fps and other stuff. ! if (m_bShowStats) { ShowStats(frameRate()); --- 249,253 ---- // Do fps and other stuff. ! if (m_bShowStats && !first) { ShowStats(frameRate()); *************** *** 259,262 **** --- 260,265 ---- // remove marked objects, this should be done at the end of the main loop. g_pBattlefield->removeObjectsMarkedForDelete(); + + first = false; } |