Using double buffering for the camera frames.