FrameCounter

Utility class which gives time delta between frames, and logs some framerate statistics. Useful for a variable timestep application.

Constructors

this
this(SDL2 sdl)

Creates a FrameCounter, SDL must be initialized.

Members

Aliases

tick
deprecated alias tick = tickSecs

Marks the beginning of a new frame.

Functions

elapsedTime
double elapsedTime()
elapsedTimeMs
ulong elapsedTimeMs()
getFPSString
string getFPSString()
tickMs
ulong tickMs()

Marks the beginning of a new frame.

tickSecs
double tickSecs()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta