VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
makVrv::DtStatsSet Class Reference

Set of performance statistics for display. More...

Public Member Functions

void addStats (const std::string &name)
 Add a time stat to the set. More...
 
void startFrame ()
 Start a timing frame. More...
 
void endFrame (double frameDuration)
 End a timing frame. More...
 
void addTime (unsigned int index, double t)
 Add time to the statistic at the specified index. More...
 

Public Attributes

std::vector< DtTimeStatmyStats
 
double myTotalTime
 
std::vector< doublemyPerFrameStats
 
DtPerformanceStats myStatsTimer
 
std::string myName
 

Detailed Description

Set of performance statistics for display.

Member Function Documentation

void makVrv::DtStatsSet::addStats ( const std::string &  name)

Add a time stat to the set.

void makVrv::DtStatsSet::startFrame ( )

Start a timing frame.

Called by the stats manager at the beginning of each tick

void makVrv::DtStatsSet::endFrame ( double  frameDuration)

End a timing frame.

Called by the stats manager at the end of each tick

void makVrv::DtStatsSet::addTime ( unsigned int  index,
double  t 
)

Add time to the statistic at the specified index.

Time is accumulated per frame to calculate percentages

Member Data Documentation

std::vector<DtTimeStat> makVrv::DtStatsSet::myStats
double makVrv::DtStatsSet::myTotalTime
std::vector<double> makVrv::DtStatsSet::myPerFrameStats
DtPerformanceStats makVrv::DtStatsSet::myStatsTimer
std::string makVrv::DtStatsSet::myName

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)