Queue specialization for calculating frame rate.
More...
#include <kanzi/core.ui/legacy/kzu_frame_time_queue.hpp>
Queue specialization for calculating frame rate.
kanzi::FrameTimeQueue::FrameTimeQueue |
( |
| ) |
|
|
explicit |
void kanzi::FrameTimeQueue::update |
( |
unsigned int |
frameTime | ) |
|
Updates the frame time queue with a new frame time.
- Parameters
-
frameTime | Duration of the new frame in milliseconds. |
float kanzi::FrameTimeQueue::getFPS |
( |
| ) |
const |
|
inline |
Returns the current FPS.
- Returns
- Current frame rate in frames per second.
unsigned int kanzi::FrameTimeQueue::getLastFrameTime |
( |
| ) |
const |
|
inline |
Returns the last frame time.
- Returns
- Last frame duration in milliseconds.
unsigned int kanzi::FrameTimeQueue::m_firstFrame |
|
protected |
Frame time queue front index.
unsigned int kanzi::FrameTimeQueue::m_frameCount |
|
protected |
unsigned int kanzi::FrameTimeQueue::m_milliseconds |
|
protected |
Frame time queue content sum cache.
unsigned int kanzi::FrameTimeQueue::m_latestFrameTime |
|
protected |
Duration of last frame in milliseconds.
float kanzi::FrameTimeQueue::m_fps |
|
protected |
The documentation for this class was generated from the following file: