save the render state to enable resuming