Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
frame.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // FPS: Frames per second.
4 
5 extern bool inbetweenframes, renderedframe;
6 
7 extern void resetfpshistory();
8 
10 extern int get_current_max_fps();
11 
12 extern void updatefpshistory(int millis);
13 
14 extern void getfps(int &fps, int &bestdiff, int &worstdiff);
void resetfpshistory()
clear fps history array
Definition: frame.cpp:27
bool renderedframe
Definition: frame.cpp:17
bool inbetweenframes
Definition: frame.cpp:17
void getfps(int &fps, int &bestdiff, int &worstdiff)
get average fps, best fps and worst fps (see command fpsrange)
Definition: frame.cpp:41
void updatefpshistory(int millis)
add current frames per seconds score to fps history array
Definition: frame.cpp:34
int get_current_max_fps()
The current fps limit.
Definition: frame.cpp:22