org.rajawali3d.view / TextureView / renderModeInternal

renderModeInternal

protected var renderModeInternal: Int

The rendering mode.

When renderMode is ISurface.RENDERMODE_CONTINUOUSLY, the renderer is called repeatedly to re-render the scene. When renderMode is ISurface.RENDERMODE_WHEN_DIRTY, the renderer only rendered when the surface is created, or when .requestRenderUpdate is called. Defaults to ISurface.RENDERMODE_CONTINUOUSLY.

Using ISurface.RENDERMODE_WHEN_DIRTY can improve battery life and overall system performance by allowing the GPU and CPU to idle when the view does not need to be updated.

This method can only be called after setSurfaceRenderer

See Also

ISurface.RENDERMODE_CONTINUOUSLY

ISurface.RENDERMODE_WHEN_DIRTY