Public Member Functions |
| virtual | ~DtFrameTimer () |
| | Virtual DTOR.
|
| virtual void | markFrameStart () |
| | Tells the timer that a frame is beginning.
|
| virtual void | markFrameEnd () |
| | Tells the timer that a frame is ending.
|
| virtual void | markStart (FrameSectionType section) |
| | Tells the timer that a frame section is starting.
|
| virtual void | markEnd (FrameSectionType section) |
| | Tells the timer that a frame section is ending.
|
| virtual void | generateReport () |
| | Generates a report based on the recorded statistics since the last report.
|
| virtual void | printFrameStatistics () |
| | Prints the statistics from the last report to DtInfo.
|
| virtual const SectionInfoMap & | sectionInfo () const |
| | Accessor for the section info map (read-only).
|
| virtual double | fps () const |
| | Accessor for the FPS.
|
Member Typedef Documentation
Member Enumeration Documentation
Enumerates the default frame section types.
- Enumerator:
| FRAME |
|
| INTERNAL |
|
| EXTERNAL |
|
| MESSAGE_PROC |
|
| TRANSLATION |
|
| OUT_OF_FRAME |
|
| EXTERNAL_OTHER |
|
| FRAME_OTHER |
|
| USER_START |
|
Constructor & Destructor Documentation
| virtual MAKVrExchange::DtFrameTimer::~DtFrameTimer |
( |
| ) |
|
|
virtual |
Member Function Documentation
Default creation method for instantiating frame timers.
| virtual void MAKVrExchange::DtFrameTimer::markFrameStart |
( |
| ) |
|
|
virtual |
Tells the timer that a frame is beginning.
| virtual void MAKVrExchange::DtFrameTimer::markFrameEnd |
( |
| ) |
|
|
virtual |
Tells the timer that a frame is ending.
Tells the timer that a frame section is starting.
Tells the timer that a frame section is ending.
| virtual void MAKVrExchange::DtFrameTimer::generateReport |
( |
| ) |
|
|
virtual |
Generates a report based on the recorded statistics since the last report.
Frame and section times and percentages are averaged over the number of frames elapsed since the last report was generated.
| virtual void MAKVrExchange::DtFrameTimer::printFrameStatistics |
( |
| ) |
|
|
virtual |
Prints the statistics from the last report to DtInfo.
| virtual const SectionInfoMap& MAKVrExchange::DtFrameTimer::sectionInfo |
( |
| ) |
const |
|
virtual |
Accessor for the section info map (read-only).
Note: Should only be called after a generateReport() call and before the next frame start.
| virtual double MAKVrExchange::DtFrameTimer::fps |
( |
| ) |
const |
|
virtual |
Accessor for the FPS.
Note: Should only be called after a generateReport() call and before the next frame start.
| virtual DtString MAKVrExchange::DtFrameTimer::roundPercent |
( |
double |
percent | ) |
|
|
protectedvirtual |
Converts fraction to percent, rounds to int, & appends %.
Member Data Documentation
Storage for the method used to create the frame timer.
Overridden frame timer creators can be set here in order to use a customized frame timer. Make sure the creator is set here before the broker begins processing messages to ensure it is used.
| unsigned int MAKVrExchange::DtFrameTimer::myFrameCounter |
|
protected |
| unsigned int MAKVrExchange::DtFrameTimer::myLastFrameCount |
|
protected |
| DtTime MAKVrExchange::DtFrameTimer::myLastReportTime |
|
protected |
| double MAKVrExchange::DtFrameTimer::myFps |
|
protected |
The documentation for this class was generated from the following file: