Share via


MeshHelper.OptimizeForCache Method

Reorders the indices and vertices of the mesh for optimal GPU cache performance.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public static void OptimizeForCache (
         MeshContent mesh
)

Parameters

  • mesh
    Mesh to be optimized.

See Also

Reference

MeshHelper Class
MeshHelper Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows XP SP2, Windows Vista