added the FPS capping