OpenTTD Source
20241121-master-g67a0fccfad
|
Private declarations for performance measurement implementation. More...
Data Structures | |
struct | PerformanceData |
Variables | |
const int | NUM_FRAMERATE_POINTS = 512 |
Number of data points to keep in buffer for each performance measurement. | |
const TimingMeasurement | TIMESTAMP_PRECISION = 1000000 |
Units a second is divided into in performance measurements | |
static const double | GL_RATE = 1000.0 / MILLISECONDS_PER_TICK |
Game loop rate, cycles per second | |
PerformanceData | _pf_data [PFE_MAX] |
Storage for all performance element measurements. More... | |
Private declarations for performance measurement implementation.
PerformanceData anonymous_namespace{framerate_gui.cpp}::_pf_data[PFE_MAX] |
Storage for all performance element measurements.
Elements are initialized with the expected rate in recorded values per second.
Definition at line 191 of file framerate_gui.cpp.
Referenced by PerformanceMeasurer::Paused(), PerformanceAccumulator::Reset(), PerformanceMeasurer::SetExpectedRate(), PerformanceMeasurer::SetInactive(), FrametimeGraphWindow::UpdateScale(), PerformanceAccumulator::~PerformanceAccumulator(), and PerformanceMeasurer::~PerformanceMeasurer().