Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Macros | Functions | Variables
fps.inc.c File Reference

Macros

#define SECONDS_PER_CYCLE   0.00000002133f
 
#define FPS_COUNTER_X_POS   24
 
#define FPS_COUNTER_Y_POS   190
 

Functions

void calculate_frameTime_from_OSTime (OSTime diff)
 
void render_fps (void)
 

Variables

OSTime gLastOSTime = 0
 
float gFrameTime = 0.0f
 
u16 gFrames = 0
 
u16 gFPS = 0
 
u8 gRenderFPS = FALSE
 

Macro Definition Documentation

◆ FPS_COUNTER_X_POS

#define FPS_COUNTER_X_POS   24

◆ FPS_COUNTER_Y_POS

#define FPS_COUNTER_Y_POS   190

◆ SECONDS_PER_CYCLE

#define SECONDS_PER_CYCLE   0.00000002133f

Function Documentation

◆ calculate_frameTime_from_OSTime()

void calculate_frameTime_from_OSTime ( OSTime  diff)

◆ render_fps()

void render_fps ( void  )

Variable Documentation

◆ gFPS

u16 gFPS = 0

◆ gFrames

u16 gFrames = 0

◆ gFrameTime

float gFrameTime = 0.0f

◆ gLastOSTime

OSTime gLastOSTime = 0

◆ gRenderFPS

u8 gRenderFPS = FALSE