Changing the camera settings each frame is possible however not generally recommended, considering the possible latency issues of a non real-time OS. In other words there is no guarantee that exposure changes will happen on exactly every frame.