fix to FPS counter when framerate is very low or program has been suspended.