FPS Counter

Update logic of FPS counter.