R-Type  2
Doom but in better
Loading...
Searching...
No Matches
Time Namespace Reference

Namespace containing time-related utilities for the game. More...

Variables

float deltaTime = 0
 The time difference between the current frame and the last frame.
 

Detailed Description

Namespace containing time-related utilities for the game.

The Time namespace provides access to time-related functionality, including tracking the time between frames or updates. It contains the deltaTime variable, which stores the time elapsed between two frames.

Variable Documentation

◆ deltaTime

float Time::deltaTime = 0

The time difference between the current frame and the last frame.

deltaTime represents the time elapsed since the last frame was rendered or processed. This value is used to ensure smooth and consistent gameplay, independent of the frame rate.

Note
This value is typically updated each frame and used for time-dependent actions, such as movement. The time elapsed between the current and previous frame (in seconds).

Definition at line 4 of file Time.cpp.