Update is called after every window specified by measure_fps