Simply fps calculation.
This commit is contained in:
parent
2ed569e475
commit
61a10c4ab6
|
@ -870,9 +870,7 @@ int main(int argc, char ** argv) {
|
||||||
|
|
||||||
if ( fps_frame_counter == NUM_FRAMES_TO_TIME) {
|
if ( fps_frame_counter == NUM_FRAMES_TO_TIME) {
|
||||||
char win_title[20];
|
char win_title[20];
|
||||||
float fps = (float)fps_timing;
|
float fps = NUM_FRAMES_TO_TIME * 1000.f / fps_timing;
|
||||||
fps /= NUM_FRAMES_TO_TIME * 1000.f;
|
|
||||||
fps = 1.0f / fps;
|
|
||||||
|
|
||||||
fps_frame_counter = 0;
|
fps_frame_counter = 0;
|
||||||
fps_timing = 0;
|
fps_timing = 0;
|
||||||
|
|
Loading…
Reference in New Issue