# NNS_G2dOptimizeRenderer

## Syntax

      #include <nnsys/g2d/g2d_Renderer.h>

      void NNS_G2dOptimizeRenderer( NNSG2dRendererInstance* pRend );

## Arguments

pRend | [OUT] Renderer entity

## Return Values

None.

## Description

Optimizes the renderer entity according to the current renderer status. Specifically, it checks the type of graphics engine the renderer is targeting, and ignores code for unused graphics engines. Run this function after changing the surface type of a rendered surface.
This function has been eliminated.
If this function is called, a warning will appear.
Instead of this function, `NNS_G2dBeginRenderingEx` is provided.

## See Also

`NNS_G2dBeginRenderingEx
`

## Revision History

2004/11/10 Eliminated function.

2004/09/01 Initial version.

CONFIDENTIAL