Open CASCADE Technology 7.8.0
|
Temporary data frame definition. More...
#include <Graphic3d_FrameStatsData.hxx>
Public Member Functions | |
Graphic3d_FrameStatsDataTmp () | |
Empty constructor. | |
void | FlushTimers (Standard_Size theNbFrames, bool theIsFinal) |
Compute average data considering the amount of rendered frames. | |
void | Reset () |
Reset data. | |
void | operator= (const Graphic3d_FrameStatsData &theOther) |
Assignment operator (skip copying irrelevant properties). | |
Standard_Real & | ChangeFrameRate () |
Returns FPS (frames per seconds, elapsed time). | |
Standard_Real & | ChangeFrameRateCpu () |
Returns CPU FPS (frames per seconds, CPU time). | |
Standard_Real & | ChangeImmediateFrameRate () |
Returns FPS for immediate redraws. | |
Standard_Real & | ChangeImmediateFrameRateCpu () |
Returns CPU FPS for immediate redraws. | |
OSD_Timer & | ChangeTimer (Graphic3d_FrameStatsTimer theTimer) |
Return a timer object for time measurements. | |
Standard_Size & | ChangeCounterValue (Graphic3d_FrameStatsCounter theIndex) |
Get counter value. | |
Standard_Size & | operator[] (Graphic3d_FrameStatsCounter theIndex) |
Modify counter value. | |
Standard_Real & | ChangeTimerValue (Graphic3d_FrameStatsTimer theIndex) |
Modify timer value. | |
Standard_Real & | operator[] (Graphic3d_FrameStatsTimer theIndex) |
Modify timer value. | |
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. | |
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). | |
Standard_Real | ImmediateFrameRate () const |
Returns FPS for immediate redraws. | |
Standard_Real | ImmediateFrameRateCpu () const |
Returns CPU FPS for immediate redraws. | |
Standard_Size | CounterValue (Graphic3d_FrameStatsCounter theIndex) const |
Get counter value. | |
Standard_Size | operator[] (Graphic3d_FrameStatsCounter theIndex) const |
Get counter value. | |
Standard_Real | TimerValue (Graphic3d_FrameStatsTimer theIndex) const |
Get timer value. | |
Standard_Real | operator[] (Graphic3d_FrameStatsTimer theIndex) const |
Get timer value. | |
Graphic3d_FrameStatsData () | |
Empty constructor. | |
Graphic3d_FrameStatsData (const Graphic3d_FrameStatsData &theOther) | |
Copy constructor. | |
Graphic3d_FrameStatsData (Graphic3d_FrameStatsData &&theOther) noexcept | |
Move constructor. | |
Graphic3d_FrameStatsData & | operator= (const Graphic3d_FrameStatsData &theOther) |
Assignment operator. | |
Graphic3d_FrameStatsData & | operator= (Graphic3d_FrameStatsData &&theOther) noexcept |
Assignment with move operator. | |
void | Reset () |
Reset data. | |
void | FillMax (const Graphic3d_FrameStatsData &theOther) |
Fill with maximum values. | |
Protected Attributes | |
std::vector< OSD_Timer > | myOsdTimers |
precise timers for time measurements | |
std::vector< Standard_Real > | myTimersPrev |
previous timers values | |
Protected Attributes inherited from Graphic3d_FrameStatsData | |
std::vector< Standard_Size > | myCounters |
counters | |
std::vector< Standard_Real > | myTimers |
timers | |
std::vector< Standard_Real > | myTimersMin |
minimal values of timers | |
std::vector< Standard_Real > | myTimersMax |
maximum values of timers | |
Standard_Real | myFps |
FPS meter (frames per seconds, elapsed time) | |
Standard_Real | myFpsCpu |
CPU FPS meter (frames per seconds, CPU time) | |
Standard_Real | myFpsImmediate |
FPS meter for immediate redraws. | |
Standard_Real | myFpsCpuImmediate |
CPU FPS meter for immediate redraws. | |
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 |
Returns FPS for immediate redraws.
|
inline |
Returns CPU FPS for immediate redraws.
|
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