Updating the framerate so it doesn't use 100% cpu.