![]() |
SGCT master (487fac4)
Simple Graphics Cluster Toolkit
|
Structure with all statistics gathered about different frametimes. More...
#include <sgct/engine.h>

Public Member Functions | |
| double | dt () const |
| double | avgDt () const |
| double | minDt () const |
| double | maxDt () const |
Public Attributes | |
| std::array< double, HistoryLength > | frametimes = {} |
| The times that contain the entire time spending processing the frames. | |
| std::array< double, HistoryLength > | drawTimes = {} |
| The amount of time spend rendering the 2D and 3D components of the frame. | |
| std::array< double, HistoryLength > | syncTimes = {} |
| The amount of time spend synchronizing the state between master and clients. | |
| std::array< double, HistoryLength > | loopTimeMin = {} |
| The lowest time recorded for network communication between master and clients. | |
| std::array< double, HistoryLength > | loopTimeMax = {} |
| The highest time recorded for network communication between master and clients. | |
Static Public Attributes | |
| static constexpr int | HistoryLength = 128 |
| For how many frames are the history values collected before the oldest values are replaced. | |
Structure with all statistics gathered about different frametimes.
The newest value is always at the front of the different arrays, the remaining values being sorted by the frame in which they occured. These values are only collected while the statistics are being shown.
| double sgct::Engine::Statistics::avgDt | ( | ) | const |
| double sgct::Engine::Statistics::dt | ( | ) | const |
| double sgct::Engine::Statistics::maxDt | ( | ) | const |
| double sgct::Engine::Statistics::minDt | ( | ) | const |
| std::array<double, HistoryLength> sgct::Engine::Statistics::drawTimes = {} |
The amount of time spend rendering the 2D and 3D components of the frame.
| std::array<double, HistoryLength> sgct::Engine::Statistics::frametimes = {} |
The times that contain the entire time spending processing the frames.
|
staticconstexpr |
For how many frames are the history values collected before the oldest values are replaced.
| std::array<double, HistoryLength> sgct::Engine::Statistics::loopTimeMax = {} |
The highest time recorded for network communication between master and clients.
| std::array<double, HistoryLength> sgct::Engine::Statistics::loopTimeMin = {} |
The lowest time recorded for network communication between master and clients.
| std::array<double, HistoryLength> sgct::Engine::Statistics::syncTimes = {} |
The amount of time spend synchronizing the state between master and clients.