Fixed a bug where the FPS counter stops being updated after app resume.