Changeset 1256


Ignore:
Timestamp:
08/22/06 13:19:27 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp

    r1238 r1256  
    742742        { 
    743743                mTimeFrameEnded = mTimer->getMilliseconds(); 
    744                 //Ogre::LogManager::getSingleton().logMessage("Frame ended"); 
    745744        } 
    746745 
     
    749748        if (mRecordVideo) // record current frame 
    750749        { 
    751                 //Ogre::LogManager::getSingleton().logMessage("taking video frame"); 
    752750                takeVideoFrame(video_out); 
    753                 //Ogre::LogManager::getSingleton().logMessage("finished"); 
    754         } 
     751        } 
     752 
    755753        //-- IMPORTANT: must be set, otherwise terrain is not rendered correctly 
    756754        mSceneMgr->endFrame(); 
     
    11141112 
    11151113                //-- culling stats 
     1114 
    11161115                mSceneMgr->getOption("NumFrustumCulledNodes", &opt); sprintf(str,": %d", opt);  
    11171116                mFrustumCulledNodesInfo->setCaption(str); 
     
    11401139                mTraversedNodesInfo->setCaption(str); 
    11411140 
    1142                 // update stats for demo 
    1143                 mMyStatsAlgorithmInfo->setCaption(msApprevAlgorithmCaptions[mCurrentAlgorithm]); 
    1144                 sprintf(str,": %d", (int)currentFps);  
    1145                 mMyStatsFpsInfo->setCaption(str); 
     1141                if (mRecordVideo) 
     1142                { 
     1143                        // update stats for demo 
     1144                        mMyStatsAlgorithmInfo->setCaption(msApprevAlgorithmCaptions[mCurrentAlgorithm]); 
     1145                        sprintf(str,": %d", (int)currentFps);  
     1146                        mMyStatsFpsInfo->setCaption(str); 
     1147                } 
    11461148 
    11471149        } 
Note: See TracChangeset for help on using the changeset viewer.