ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
fps_counter_s Struct Reference

FPS counter state. More...

Data Fields

uint64_t frame_times [30]
 Circular buffer of timestamps (ns)
 
int head
 Current write position (0 to FPS_WINDOW_SIZE-1)
 
int count
 Number of valid entries in buffer (0 to FPS_WINDOW_SIZE)
 

Detailed Description

FPS counter state.

Maintains a circular buffer of frame timestamps for rolling-window FPS calculation.

Definition at line 23 of file fps_counter.c.

Field Documentation

◆ count

int fps_counter_s::count

Number of valid entries in buffer (0 to FPS_WINDOW_SIZE)

Definition at line 26 of file fps_counter.c.

Referenced by fps_counter_create(), fps_counter_get(), and fps_counter_tick().

◆ frame_times

uint64_t fps_counter_s::frame_times[30]

Circular buffer of timestamps (ns)

Definition at line 24 of file fps_counter.c.

Referenced by fps_counter_create(), fps_counter_get(), and fps_counter_tick().

◆ head

int fps_counter_s::head

Current write position (0 to FPS_WINDOW_SIZE-1)

Definition at line 25 of file fps_counter.c.

Referenced by fps_counter_create(), fps_counter_get(), and fps_counter_tick().


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