25 #ifndef GRAPHICS_FPSCOUNTER_H 26 #define GRAPHICS_FPSCOUNTER_H 66 #endif // GRAPHICS_FPSCOUNTER_H size_t _seconds
Number of seconds over which to average the FPS.
size_t _currentSecond
Current second we measure.
Common::ScopedArray< uint32 > _frames
All frame counters.
void calculateFPS()
Calculate the average FPS value.
A simple scoped smart pointer template.
A class counting frames per second.
FPSCounter(size_t secs)
Average the FPS over that many seconds.
void reset()
Reset the counter.
Low-level type definitions to handle fixed width types portably.
uint32 _fps
The current FPS value.
bool _hasFullSeconds
Got all samples?
uint32 getFPS() const
Get the current FPS value.
uint32 _lastSampled
The last time a finished frame was signaled.
void finishedFrame()
Signal a finished frame.