SGCT master (487fac4)
Simple Graphics Cluster Toolkit
Loading...
Searching...
No Matches
sgct::Engine::Statistics Struct Reference

Structure with all statistics gathered about different frametimes. More...

#include <sgct/engine.h>

Collaboration diagram for sgct::Engine::Statistics:

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.

Detailed Description

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.

Member Function Documentation

◆ avgDt()

double sgct::Engine::Statistics::avgDt ( ) const
Returns
The average frame time (delta time) in seconds

◆ dt()

double sgct::Engine::Statistics::dt ( ) const
Returns
The frame time (delta time) in seconds

◆ maxDt()

double sgct::Engine::Statistics::maxDt ( ) const
Returns
The maximum frame time (delta time) in the averaging window (seconds)

◆ minDt()

double sgct::Engine::Statistics::minDt ( ) const
Returns
The minimum frame time (delta time) in the averaging window (seconds)

Member Data Documentation

◆ drawTimes

std::array<double, HistoryLength> sgct::Engine::Statistics::drawTimes = {}

The amount of time spend rendering the 2D and 3D components of the frame.

◆ frametimes

std::array<double, HistoryLength> sgct::Engine::Statistics::frametimes = {}

The times that contain the entire time spending processing the frames.

◆ HistoryLength

int sgct::Engine::Statistics::HistoryLength = 128
staticconstexpr

For how many frames are the history values collected before the oldest values are replaced.

◆ loopTimeMax

std::array<double, HistoryLength> sgct::Engine::Statistics::loopTimeMax = {}

The highest time recorded for network communication between master and clients.

◆ loopTimeMin

std::array<double, HistoryLength> sgct::Engine::Statistics::loopTimeMin = {}

The lowest time recorded for network communication between master and clients.

◆ syncTimes

std::array<double, HistoryLength> sgct::Engine::Statistics::syncTimes = {}

The amount of time spend synchronizing the state between master and clients.


The documentation for this struct was generated from the following file: