write before the "ready" thing "fps_max=60;" and everything will work fine