Trace Engine
A Raycaster Engine in C
Loading...
Searching...
No Matches
fps_counter.c File Reference
#include "fps_counter.h"
#include "game_state.h"
#include "trc_timer.h"

Data Structures

struct  FPS_counter_t
 

Functions

void init_fps_counter (void)
 
void update_fps_counter (void)
 

Variables

FPS_counter_t FPS_counter = {0}
 

Function Documentation

◆ init_fps_counter()

void init_fps_counter ( void  )

The struct that tracks current FPS

◆ update_fps_counter()

void update_fps_counter ( void  )

Update the current counter for the FPS

Note
This NEEDS to be called every frame, in the main loop

Variable Documentation

◆ FPS_counter

FPS_counter_t FPS_counter = {0}