Added fps counter. Clamped fps to 50.