The idea can be taken from the answer: http://stackoverflow.com/questions/9455146/sdl-c-frame-rate-counter There should be a button showing/hiding FPS.