added a bool to control display of the framerate