Index: src/main.cpp =================================================================== --- src/main.cpp (revision 97) +++ src/main.cpp (working copy) @@ -77,8 +77,17 @@ int running = 1; + int old_ticks = 0; while (running) { + if(gameConfig.getString("fps") == "true") + { + int ticks = SDL_GetTicks(); + int fps = 1000 / (ticks-old_ticks); + printf ("FPS: %i\n", fps); + old_ticks = ticks; + } + inputmgr->updateInput(); running = inputmgr->running(); Index: data/config.xml =================================================================== --- data/config.xml (revision 97) +++ data/config.xml (working copy) @@ -2,19 +2,20 @@ - - + + + - + - +