add framerate display

added real-time fps updates, and min/avg/max frame time in ms.