better FPS calculation