update resource
finish frame