Frame time and average FPS calculator interface class.
More...
#include <IFrameTimer.h>
|
virtual | ~IFrameTimer () |
|
virtual unsigned long int | totalNumberFrames () const =0 |
| Returns the total number of frames rendered since the application started.
|
|
virtual float | lastFrameTime () const =0 |
|
virtual float | currentFrameTime () const =0 |
| Returns the elapsed time in seconds since current frame started.
|
|
virtual float | averageFps () const =0 |
| Returns the average FPS during the update interval.
|
|
virtual float | averageFrameTime () const =0 |
| Returns the average frame time in seconds during the update interval.
|
|
virtual bool | averageEnabled () const =0 |
| Returns true if the average FPS calculation is enabled.
|
|
virtual bool | loggingEnabled () const =0 |
| Returns true if logging of averages is enabled.
|
|
virtual float | averageInterval () const =0 |
| Returns the number of seconds between two average FPS calculations.
|
|
virtual void | setAverageInterval (float averageInterval)=0 |
| Sets the number of seconds between two average FPS calculations.
|
|
virtual float | loggingInterval () const =0 |
| Returns the number of seconds between two logging events.
|
|
virtual void | setLoggingInterval (float loggingInterval)=0 |
| Sets the number of seconds between two logging events.
|
|
virtual ILogger::LogLevel | logLevel () const =0 |
| Returns the level for the logging events.
|
|
virtual void | setLogLevel (ILogger::LogLevel logLevel)=0 |
| Sets the level for the logging events.
|
|
Frame time and average FPS calculator interface class.
◆ ~IFrameTimer()
ncine::IFrameTimer::~IFrameTimer |
( |
| ) |
|
|
virtual |
- Note
- Defined here to avoid emitting its vtable in every translation unit
◆ lastFrameTime()
virtual float ncine::IFrameTimer::lastFrameTime |
( |
| ) |
const |
|
pure virtual |
Returns the time in seconds that last frame took to complete
- Note
- Also called delta time. */
◆ loggingInterval()
virtual float ncine::IFrameTimer::loggingInterval |
( |
| ) |
const |
|
pure virtual |
Returns the number of seconds between two logging events.
- Note
- A different and independent average is calculated over this time interval
The documentation for this class was generated from the following files: