Simply fps calculation.

This commit is contained in:
riccardom 2010-03-02 16:47:49 +00:00
parent 2ed569e475
commit 61a10c4ab6
1 changed files with 1 additions and 3 deletions

View File

@ -870,9 +870,7 @@ int main(int argc, char ** argv) {
if ( fps_frame_counter == NUM_FRAMES_TO_TIME) {
char win_title[20];
float fps = (float)fps_timing;
fps /= NUM_FRAMES_TO_TIME * 1000.f;
fps = 1.0f / fps;
float fps = NUM_FRAMES_TO_TIME * 1000.f / fps_timing;
fps_frame_counter = 0;
fps_timing = 0;