![]() |
nCine
2025.04.r498-9d36345
A cross-platform 2D game engine
|
Frame time and average FPS calculator interface class. More...
#include <IFrameTimer.h>
Public Member Functions | |
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. More... | |
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.
|
virtual |
|
pure virtual |
Returns the time in seconds that last frame took to complete
|
pure virtual |
Returns the number of seconds between two logging events.