Open CASCADE Technology
7.5.0
|
Data frame definition. More...
#include <Graphic3d_FrameStatsData.hxx>
Public Member Functions | |
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_Real | ImmediateFrameRate () const |
Returns FPS for immediate redraws. More... | |
Standard_Real | ImmediateFrameRateCpu () const |
Returns CPU FPS for immediate redraws. 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< 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... | |
Standard_Real | myFpsImmediate |
FPS meter for immediate redraws. More... | |
Standard_Real | myFpsCpuImmediate |
CPU FPS meter for immediate redraws. More... | |
Data frame definition.
Graphic3d_FrameStatsData::Graphic3d_FrameStatsData | ( | ) |
Empty constructor.
|
inline |
Get counter value.
void Graphic3d_FrameStatsData::FillMax | ( | const Graphic3d_FrameStatsData & | theOther | ) |
Fill with maximum values.
|
inline |
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.
|
inline |
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).
|
inline |
Returns FPS for immediate redraws.
|
inline |
Returns CPU FPS for immediate redraws.
Graphic3d_FrameStatsData& Graphic3d_FrameStatsData::operator= | ( | const Graphic3d_FrameStatsData & | theOther | ) |
Assignment operator.
|
inline |
Get counter value.
|
inline |
Get timer value.
void Graphic3d_FrameStatsData::Reset | ( | ) |
Reset data.
|
inline |
Get timer value.
|
protected |
counters
|
protected |
FPS meter (frames per seconds, elapsed time)
|
protected |
CPU FPS meter (frames per seconds, CPU time)
|
protected |
CPU FPS meter for immediate redraws.
|
protected |
FPS meter for immediate redraws.
|
protected |
timers
|
protected |
maximum values of timers
|
protected |
minimal values of timers