![]() |
VR-Forces 5.0.2 Developer's Guide
|
Set of performance statistics for display.
Public Member Functions | |
| void | addStats (const std::string &name) |
| void | startFrame () |
| void | endFrame (double frameDuration) |
| void | addTime (unsigned int index, double t) |
Public Attributes | |
| std::vector< DtTimeStat > | myStats |
| double | myTotalTime |
| std::vector< double > | myPerFrameStats |
| DtPerformanceStats | myStatsTimer |
| std::string | myName |
| 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
Add time to the statistic at the specified index.
Time is accumulated per frame to calculate percentages
| 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 |