Open CASCADE Technology
7.4.0
|
Temporary data frame definition. More...
#include <Graphic3d_FrameStatsData.hxx>
Public Member Functions | |
Graphic3d_FrameStatsDataTmp () | |
Empty constructor. More... | |
void | FlushTimers (Standard_Size theNbFrames, bool theIsFinal) |
Compute average data considering the amount of rendered frames. More... | |
void | Reset () |
Reset data. More... | |
void | operator= (const Graphic3d_FrameStatsData &theOther) |
Assignment operator (skip copying irrelevant properties). More... | |
Standard_Real & | ChangeFrameRate () |
Returns FPS (frames per seconds, elapsed time). More... | |
Standard_Real & | ChangeFrameRateCpu () |
Returns CPU FPS (frames per seconds, CPU time). More... | |
OSD_Timer & | ChangeTimer (Graphic3d_FrameStatsTimer theTimer) |
Return a timer object for time measurements. More... | |
Standard_Size & | ChangeCounterValue (Graphic3d_FrameStatsCounter theIndex) |
Get counter value. More... | |
Standard_Size & | operator[] (Graphic3d_FrameStatsCounter theIndex) |
Modify counter value. More... | |
Standard_Real & | ChangeTimerValue (Graphic3d_FrameStatsTimer theIndex) |
Modify timer value. More... | |
Standard_Real & | operator[] (Graphic3d_FrameStatsTimer theIndex) |
Modify timer value. More... | |
Public Member Functions inherited from Graphic3d_FrameStatsData | |
Standard_Real | FrameRate () const |
Returns FPS (frames per seconds, elapsed time). This number indicates an actual frame rate averaged for several frames within UpdateInterval() duration, basing on a real elapsed time between updates. More... | |
Standard_Real | FrameRateCpu () const |
Returns CPU FPS (frames per seconds, CPU time). This number indicates a PREDICTED frame rate, basing on CPU elapsed time between updates and NOT real elapsed time (which might include periods of CPU inactivity). Number is expected to be greater then actual frame rate returned by FrameRate(). Values significantly greater actual frame rate indicate that rendering is limited by GPU performance (CPU is stalled in-between), while values around actual frame rate indicate rendering being limited by CPU performance (GPU is stalled in-between). More... | |
Standard_Size | CounterValue (Graphic3d_FrameStatsCounter theIndex) const |
Get counter value. More... | |
Standard_Size | operator[] (Graphic3d_FrameStatsCounter theIndex) const |
Get counter value. More... | |
Standard_Real | TimerValue (Graphic3d_FrameStatsTimer theIndex) const |
Get timer value. More... | |
Standard_Real | operator[] (Graphic3d_FrameStatsTimer theIndex) const |
Get timer value. More... | |
Graphic3d_FrameStatsData () | |
Empty constructor. More... | |
Graphic3d_FrameStatsData & | operator= (const Graphic3d_FrameStatsData &theOther) |
Assignment operator. More... | |
void | Reset () |
Reset data. More... | |
void | FillMax (const Graphic3d_FrameStatsData &theOther) |
Fill with maximum values. More... | |
Protected Attributes | |
std::vector< OSD_Timer > | myOsdTimers |
precise timers for time measurements More... | |
std::vector< Standard_Real > | myTimersPrev |
previous timers values More... | |
Protected Attributes inherited from Graphic3d_FrameStatsData | |
std::vector< Standard_Size > | myCounters |
counters More... | |
std::vector< Standard_Real > | myTimers |
timers More... | |
std::vector< Standard_Real > | myTimersMin |
minimal values of timers More... | |
std::vector< Standard_Real > | myTimersMax |
maximum values of timers More... | |
Standard_Real | myFps |
FPS meter (frames per seconds, elapsed time) More... | |
Standard_Real | myFpsCpu |
CPU FPS meter (frames per seconds, CPU time) More... | |
Temporary data frame definition.
Graphic3d_FrameStatsDataTmp::Graphic3d_FrameStatsDataTmp | ( | ) |
Empty constructor.
|
inline |
Get counter value.
|
inline |
Returns FPS (frames per seconds, elapsed time).
|
inline |
Returns CPU FPS (frames per seconds, CPU time).
|
inline |
Return a timer object for time measurements.
|
inline |
Modify timer value.
void Graphic3d_FrameStatsDataTmp::FlushTimers | ( | Standard_Size | theNbFrames, |
bool | theIsFinal | ||
) |
Compute average data considering the amount of rendered frames.
|
inline |
Assignment operator (skip copying irrelevant properties).
|
inline |
Modify counter value.
|
inline |
Modify timer value.
void Graphic3d_FrameStatsDataTmp::Reset | ( | ) |
Reset data.
|
protected |
precise timers for time measurements
|
protected |
previous timers values