ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
fps_counter.c File Reference

FPS counter implementation using rolling-window timestamp buffer. More...

Go to the source code of this file.

Data Structures

struct  fps_counter_s
 FPS counter state. More...
 

Macros

#define FPS_WINDOW_SIZE   30
 Number of frames to average over.
 

Functions

fps_counter_t * fps_counter_create (void)
 Create a new FPS counter.
 
void fps_counter_destroy (fps_counter_t *counter)
 Destroy FPS counter and free resources.
 
void fps_counter_tick (fps_counter_t *counter)
 Record a frame timestamp.
 
float fps_counter_get (fps_counter_t *counter)
 Get the current FPS value.
 

Detailed Description

FPS counter implementation using rolling-window timestamp buffer.

Definition in file fps_counter.c.

Macro Definition Documentation

◆ FPS_WINDOW_SIZE

#define FPS_WINDOW_SIZE   30

Number of frames to average over.

Definition at line 15 of file fps_counter.c.