Trace Engine
A Raycaster Engine in C
Loading...
Searching...
No Matches
delta_time_counter_t Struct Reference

#include <delta_time.h>

Data Fields

float actual_frame
 
float last_frame
 
float delta_time
 

Detailed Description

A counter for delta time, the difference between every frame

Parameters
actual_frameThe total time elapsed, in miliseconds
last_frameThe last registered frame, in miliseconds
delta_timeThe difference between actual_frame and last_frame

Field Documentation

◆ actual_frame

float delta_time_counter_t::actual_frame

Time of the current frame (the one being calculated)

◆ delta_time

float delta_time_counter_t::delta_time

actual_frame - last_frame

◆ last_frame

float delta_time_counter_t::last_frame

Time of the last frame (the one being shown)


The documentation for this struct was generated from the following file: