Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
frame.hpp File Reference

Go to the source code of this file.

Functions

void resetfpshistory ()
 clear fps history array More...
 
int get_current_max_fps ()
 The current fps limit. More...
 
void updatefpshistory (int millis)
 add current frames per seconds score to fps history array More...
 
void getfps (int &fps, int &bestdiff, int &worstdiff)
 get average fps, best fps and worst fps (see command fpsrange) More...
 

Variables

bool inbetweenframes
 
bool renderedframe
 

Function Documentation

int get_current_max_fps ( )
void getfps ( int &  fps,
int &  bestdiff,
int &  worstdiff 
)

get average fps, best fps and worst fps (see command fpsrange)

References fpshistory, loopi(), and MAXFPSHISTORY.

Referenced by getfps_(), gl_drawhud(), and recorder::start().

void resetfpshistory ( )

clear fps history array

References fpshistory, fpspos, loopi(), and MAXFPSHISTORY.

Referenced by main().

void updatefpshistory ( int  millis)

add current frames per seconds score to fps history array

References fpshistory, fpspos, inexor::rpc::max(), MAXFPSHISTORY, and inexor::rpc::min().

Referenced by main().

Variable Documentation

bool inbetweenframes
bool renderedframe