Measures the frame rate the engine reaches, averaged over recent frames.
More...
#include <deki/FPSCounter.h>
Measures the frame rate the engine reaches, averaged over recent frames.
◆ FPSCounter()
| Deki::FPSCounter::FPSCounter |
( |
| ) |
|
◆ BeginFrame()
| void Deki::FPSCounter::BeginFrame |
( |
| ) |
|
Call at the start of each frame.
◆ EndFrame()
| void Deki::FPSCounter::EndFrame |
( |
| ) |
|
Call at the end of each frame.
◆ GetAverageFrameTime()
| float Deki::FPSCounter::GetAverageFrameTime |
( |
| ) |
const |
Average frame time in milliseconds.
◆ GetFPS()
| float Deki::FPSCounter::GetFPS |
( |
| ) |
const |
|
inline |
Frames per second, averaged over the last kSampleCount frames.
◆ GetMaxFPS()
| float Deki::FPSCounter::GetMaxFPS |
( |
| ) |
const |
|
inline |
◆ GetMinFPS()
| float Deki::FPSCounter::GetMinFPS |
( |
| ) |
const |
|
inline |
◆ GetTotalFrames()
| uint32_t Deki::FPSCounter::GetTotalFrames |
( |
| ) |
const |
|
inline |
◆ IsEnabled()
| bool Deki::FPSCounter::IsEnabled |
( |
| ) |
const |
|
inline |
◆ PrintStats()
| void Deki::FPSCounter::PrintStats |
( |
| ) |
const |
Writes the statistics to the log.
◆ Reset()
| void Deki::FPSCounter::Reset |
( |
| ) |
|
◆ SetEnabled()
| void Deki::FPSCounter::SetEnabled |
( |
bool | enable | ) |
|
|
inline |
The documentation for this class was generated from the following file: