9#ifndef __SGCT__STATISTICSRENDERER__H__
10#define __SGCT__STATISTICSRENDERER__H__
12#include <sgct/sgctexports.h>
63 std::array<Vertex, Engine::Statistics::HistoryLength>
frametimes;
64 std::array<Vertex, Engine::Statistics::HistoryLength>
drawTimes;
65 std::array<Vertex, Engine::Statistics::HistoryLength>
syncTimes;
66 std::array<Vertex, Engine::Statistics::HistoryLength>
loopTimeMin;
67 std::array<Vertex, Engine::Statistics::HistoryLength>
loopTimeMax;
75 static constexpr int Bins = 128;
105 unsigned int vao = 0;
106 unsigned int vbo = 0;
110 unsigned int vao = 0;
111 unsigned int vbo = 0;
114 Histogram _histogram;
Class for handling compiling, linking and using shader programs.
Definition shaderprogram.h:24
StatisticsRenderer(const Engine::Statistics &statistics)
void setOffset(vec2 offset)
void render(const Window &window, const Viewport &viewport) const
void setScale(float scale)
This class holds and manages viewportdata and calculates frustums.
Definition viewport.h:29
Structure with all statistics gathered about different frametimes.
Definition engine.h:81
Definition statisticsrenderer.h:77
std::array< int, Bins > loopTimeMax
Definition statisticsrenderer.h:82
std::array< int, Bins > drawTimes
Definition statisticsrenderer.h:79
std::array< int, Bins > syncTimes
Definition statisticsrenderer.h:80
std::array< int, Bins > loopTimeMin
Definition statisticsrenderer.h:81
std::array< int, Bins > frametimes
Definition statisticsrenderer.h:78
Definition statisticsrenderer.h:86
std::array< Vertex, 6 *Bins > syncTimes
Definition statisticsrenderer.h:90
std::array< Vertex, 6 *Bins > loopTimeMax
Definition statisticsrenderer.h:92
std::array< Vertex, 6 *Bins > frametimes
Definition statisticsrenderer.h:88
std::array< Vertex, 6 *Bins > drawTimes
Definition statisticsrenderer.h:89
std::array< Vertex, 6 *Bins > loopTimeMin
Definition statisticsrenderer.h:91
Definition statisticsrenderer.h:61
std::array< Vertex, Engine::Statistics::HistoryLength > loopTimeMin
Definition statisticsrenderer.h:66
std::array< Vertex, Engine::Statistics::HistoryLength > syncTimes
Definition statisticsrenderer.h:65
std::array< Vertex, Engine::Statistics::HistoryLength > frametimes
Definition statisticsrenderer.h:63
std::array< Vertex, Engine::Statistics::HistoryLength > drawTimes
Definition statisticsrenderer.h:64
std::array< Vertex, Engine::Statistics::HistoryLength > loopTimeMax
Definition statisticsrenderer.h:67