MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / release

Method release

dm_control/viewer/renderer.py:194–202  ·  view source on GitHub ↗

Releases the render context and related resources.

(self)

Source from the content-addressed store, hash-verified

192 self._mujoco_context.ptr)
193
194 def release(self):
195 """Releases the render context and related resources."""
196 if self._mujoco_context:
197 self._mujoco_context.free()
198 self._mujoco_context = None
199 if self._surface:
200 self._surface.decrement_refcount()
201 self._surface.free()
202 self._surface = None
203
204 @property
205 def pixels(self):

Callers

nothing calls this directly

Calls 2

decrement_refcountMethod · 0.80
freeMethod · 0.45

Tested by

no test coverage detected