(self, params)
Performs the deferred part of initialization related to Physics reload.

    Args:
      params: Deferred reload parameters, an instance of ReloadParams.
Performs the deferred part of initialization related to Physics reload.
Performs the deferred part of initialization related to Physics reload .
def _perform_deferred_reload(self, params):
    """Performs the deferred part of initialization related to Physics reload.

    Args:
      params: Deferred reload parameters, an instance of ReloadParams.
    """
    if self._render_surface:
      self._render_surface.free()
    if self._renderer:
      self._renderer.release()
    self._render_surface = _render.Renderer(
        max_width=_MAX_FRONTBUFFER_SIZE, max_height=_MAX_FRONTBUFFER_SIZE)
    self._renderer = renderer.OffScreenRenderer(
        self._environment.physics.model, self._render_surface)
    self._renderer.components += self._viewer_layout
    self._viewer.initialize(
        self._environment.physics, self._renderer, touchpad=False)
    self._status.set_camera(self._viewer.camera)
    if params.zoom_to_scene:
      self._viewer.zoom_to_scene()
def _perform_deferred_reload ( self , params ) : if self . _render_surface : self . _render_surface . free ( ) if self . _renderer : self . _renderer . release ( ) self . _render_surface = _render . Renderer ( max_width = _MAX_FRONTBUFFER_SIZE , max_height = _MAX_FRONTBUFFER_SIZE ) self . _renderer = renderer . OffScreenRenderer ( self . _environment . physics . model , self . _render_surface ) self . _renderer . components += self . _viewer_layout self . _viewer . initialize ( self . _environment . physics , self . _renderer , touchpad = False ) self . _status . set_camera ( self . _viewer . camera ) if params . zoom_to_scene : self . _viewer . zoom_to_scene ( )